-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Package Request] - Python 3.12 #483
Comments
There's chatter over on aws/elastic-beanstalk-roadmap#174 about Beanstalk and up to date Python support. By having Python 3.12 packaged in AL2023, adding this as a Beanstalk platform is less work for the Beanstalk team. |
Adding a note from my accidental duplicate ticket: Lambda now supports Python 3.12 using the AL2023 base image. |
would this be switching the default python from 3.9 to 3.12, or is it simply adding support to install 3.12 (similar to 3.11)? I'd like to use just one python installation in the AL2023 minimal container image, ideally 3.12 due to the performance improvements |
It's for having it as an option, not replacing the system Python. The good news is that the minimal container image doesn't have any version of Python in it due to it having |
Unable to install python 3.12.1 from source on AmazonLinux-2023 (2023.3.20231218.0) here are the steps from my dockerfile
Error on step
I also tried using just
Has anyone run into similar issues? Any help would be greatly appreciated |
If you get core dumped or killed process try assigning more RAM to docker builder and try again. I didn't try building it on al2023, but we used Python 3.12 from official lambda repository. Its not perfect but does the job for now. I would really like to have it in al2023 instead.
|
I tried your command running on docker minimal and got ir built without any problems on 8gb docker machine.
|
Sidenote: I doesn't seem to be available as a package in the base image itself judging by https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.3.html Edit: If you do not rely on AL2023, you might directly reference the runtime via https://hub.docker.com/r/amazon/aws-lambda-python |
Having this package would help me bundling python libs like cryptography which include native code. We'd like to build for 3.12 on AL2023. |
@maunzCache No it is not availabe as a package yet. In docker you can just add docker layer but for EC2 you are out of luck currently (unless you build it yourself). Really hope to have 3.12 available soon in AL2023. |
Given the lambda python3.12 runtime is the only one based on AL2023 it'd be useful to have a common EC2 base for testing outside of lambda. Presumably it must already be in codified in repos in some form to be available via dnf and maintained in the lambda docker images? |
Any update on the python 3.12 when avaialable? |
I stumbled upon release notes for RHEL 9.4 (https://developers.redhat.com/articles/2024/05/01/whats-new-red-hat-enterprise-linux-94). I tried installed python 3.12 via AlmaLinux packages :
And got it working. Too bad still no official release in AL3. |
Chiming in here as well, anyone building packages (with OS lib deps) on Amazon Linux for python on Lambda are kinda stuck on 3.8 right now unless they build Python from source:
|
Any updates? |
2023.4 did not bring a python update. Actually i would not expect a new python until AL2025. If you only need python 3.12 for e.g. local lambda tests or similar you may use https://hub.docker.com/r/amazon/aws-lambda-python instead. |
Just checked latest 2023.5 and unfortunately still lacking python 3.12 ... Is there any chance to get a least some timeline for python 3.12 since it was released 9 months ago. |
Yes, and to make matters worse, AL2 is stuck on GLIBC 2.26 (coming to you live from August 2017), which means AL2 is totally non-viable for some libraries. |
@stewartsmith Any chance to get this finally in AL2023.6? Before python 3.13 is released in a couple of days. |
I'm going to guess they'll skip 3.12 altogether and jump to 3.13. |
Well I hope they don't, because we are still after looking for python version parity with ec2 and lambdas. Currently we use 3.11 on ec2 and 3.11 on lambda (but it still uses AL2 https://docs.aws.amazon.com/lambda/latest/dg/lambda-python.html). And then we have problems with libs like openssl and others for binary wheels (like cryptography). Unless they start to support 3.13 in both environments. Together with opt in Free-threaded builds. Would be nice to know what their plan is, so we can also plan accordingly. |
My two cents: given the Release Cadence (and maintenance) of Amazon Linux, and compared with the python release and maintenance cadence, it would make more sense for AL2025 to skip python3.12 and to directly support python3.13 (given that AL2025 and python3.13 have more overlapping in support than python3.12) So, since python3.13 is out, I'd basically prefer to see #811 than this issue being done (as it would reduce the workload of AL maintainers) |
@louis-jaris the progress has to be incremental to incermentally unblock audiences. There are tons of tested libraries that support 3.12 by now, I can't say the same about 3.13. If 3.12 is skipped, people will have to wait to upgrade untill all their transitive dependency chains are reliably supporting 3.13. |
@eithermaxmax not necessarily -- c.f. AL2023 that does not support python3.10 at all -- it only expose 3.9 and python3.11. I will see what Amazon Linux Maintainers are planning to do -- if I'm not mistaken, we might see AL2025 around march 2025, so we will have the final answer at that point. |
What package is missing from Amazon Linux 2023? Please describe and include package name.
Python 3.12 that was released today.
https://pythoninsider.blogspot.com/2023/10/python-3120-final-now-available.html
Is this an update to existing package or new package request?
Update to existing package (would be nice to have python 3.11 and python 3.12 available as a transition)
Is this package available in Amazon Linux 2? If it is available via external sources such as EPEL, please specify.
Old versions of python
Any additional information you'd like to include. (use-cases, etc)
Using latest python 3.12 features.
The text was updated successfully, but these errors were encountered: