You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "dirrao (via GitHub)" <gi...@apache.org> on 2024/01/03 08:23:02 UTC

[I] Airflow Python 3.12 support [airflow]

dirrao opened a new issue, #36546:
URL: https://github.com/apache/airflow/issues/36546

   ### Description
   
   Right now, airflow is not officially supporting the Python 3.12 version
   
   ### Use case/motivation
   
   Python software stack update.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1877214748

   Oh yeah.
   
   1) I just solved the first one by pushing copy of 3.11 constraints which are "good enough" to start with - this should be fixed now
   2)  the second is I think the result of the build optimilsation we have for the build to use `main` for our. I opened PR https://github.com/apache/airflow/pull/36595 to remove the limt from main and once merged this problem should be gone.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "Taragolis (via GitHub)" <gi...@apache.org>.
Taragolis commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875141571

   This kind of task not a straight forward, required to someone check what kind of core / providers dependencies not ready for 3.12 yet, or we use outdated dependencies or some deprecated stuff:
   
   At current moment we know at lest incompatible with that pendulum 2 doesn't support of python 3.12, but this one could be solved by https://github.com/apache/airflow/pull/36281


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "bolkedebruin (via GitHub)" <gi...@apache.org>.
bolkedebruin closed issue #36546: Airflow Python 3.12 support
URL: https://github.com/apache/airflow/issues/36546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1877217235

   For 1:  see this commit https://github.com/apache/airflow/commit/3f3ed8118aaf3630e986d98c7015eaa6073caded
   
   (and generally main constraints history is here https://github.com/apache/airflow/commits/constraints-main/)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1879977417

   Re: old dependencies: This is no problem. You should always build your image with `--upgrade-to-newer-dependencies` locally - this will autoamatically get your dependencies upgraded to latest matching Airflow specification.
   
   What you also want, is to make single modification (might be an added coomment) to setup.py or pyproject.toml  and open a PR with your changes (and 3.12 support added) . What this will cause is that your PR will get the image built with `--upgrade-to-newer-dependencies` flag automatically.
   
   I think once you open such PR, you can easier share the problems you will experience.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "Froskekongen (via GitHub)" <gi...@apache.org>.
Froskekongen commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1948208989

   Any progress on this @dirrao?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1954039837

   Rebsed and runnning the PR https://github.com/apache/airflow/actions/runs/7972889219 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-2000408354

   Fixed in https://github.com/apache/airflow/pull/38025


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "dirrao (via GitHub)" <gi...@apache.org>.
dirrao commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1877143912

   I can run after making the changes in Breeze. However, I faced two problems as follows. 
   1. The build is looking for the remote constraints file. I can resolve it by using a local constraints file.
   https://raw.githubusercontent.com/apache/airflow/constraints-3.12.txt/constraints-source-providers-3.12.txt
   2. Pip is not able to resolve the remote apache airflow package version. 
   #0 22.01 ERROR: Package 'apache-airflow' requires a different Python: 3.12.1 not in '<3.12,~=3.8'


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1948215321

   > Any progress on this @dirrao?
   
   Python 3.12 is currently being worked on in https://github.com/apache/airflow/pull/36755 . There is one thing left in order to merge it - namely converting universal_pathlib to use the new Python 3.12 ready 0.2.0 version (you can see detail and links in the PR). Would you like to help with that @Froskekongen ? It waits for someone to do it.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "dirrao (via GitHub)" <gi...@apache.org>.
dirrao commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875651103

   > > At current moment we know at lest incompatible with that pendulum 2 doesn't support of python 3.12, but this one could be solved by #36281
   > 
   > Yeah. I believe this is the only "serious" blocker. We have option to exclude certain providers if they turn out to be incompatible ("excluded-python-versions" flag in provider.yaml) and we've done that in the past. So I'd say @dirrao if you want to take the lead on that - open a PR with added Python 3.12 in Breeze and we can keep it open and rebased until all the tests pass (might need to exclude some providers).
   > 
   > I think it's about the right time to attempt it - usually it takes 3-4 months for most important dependencies to catch up. We might also need to bump some more deps, not only Pendulum, but yeah - Pendulum is the "hard" blocker.
   
   Yes. I started looking into updating Breeze.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "dirrao (via GitHub)" <gi...@apache.org>.
dirrao commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875663778

   I have updated the breeze. However when I run this test with 3.12. The base image is missing. How to publish this image? 
   
   `Error response from daemon: No such image: ghcr.io/apache/airflow/main/ci/python3.12:latest`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #36546: Airflow Python 3.12 support
URL: https://github.com/apache/airflow/issues/36546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875708269

   You might see some missing cache etc. but they should be just warnings - and you can always disable cache with `build` command flags (use --help to see the flags)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875706242

   You should be able to build it locally with `breeze ci-image build`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "dirrao (via GitHub)" <gi...@apache.org>.
dirrao commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1879934143

   Now, I can make progress. However, the 3.12 uploaded dependency constraint files are old as compared to 3.11. 
   For the time being I am continuing with 3.11 as the base. As of now, I am stuck at the below error. Looks like I am facing the below error mentioned in the below stack overflow thread.
   ` AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?`
   https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1954036286

   Well. It's going to be closed when the PR adding Python 3.12 is merged :) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1875304673

   > At current moment we know at lest incompatible with that pendulum 2 doesn't support of python 3.12, but this one could be solved by https://github.com/apache/airflow/pull/36281 
   
   Yeah. I believe this is the only "serious" blocker. We have option to exclude certain providers if they turn out to be incompatible ("excluded-python-versions" flag in provider.yaml) and we've done that in the past. So I'd say @dirrao if you want to take the lead on that - open a PR with added Python 3.12 in Breeze and we can keep it open and rebased until all the tests pass (might need to exclude some providers).
   
   I think it's about the right time to attempt it - usually it takes 3-4 months for most important dependencies to catch up. We might also need to bump some more deps, not only Pendulum, but yeah - Pendulum is the "hard" blocker.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Airflow Python 3.12 support [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #36546:
URL: https://github.com/apache/airflow/issues/36546#issuecomment-1877604552

   Merged. You can continue your quest @dirrao 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org