-
Notifications
You must be signed in to change notification settings - Fork 109
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
Add support for Python 3.10 #31
Comments
Please? |
Any implementation timeline? |
some features look interesting, looking forward! |
keen ! |
+1 |
Agree - looks like @jbesw did the work for 3.9... maybe he can help with 3.10 support? https://aws.amazon.com/blogs/compute/python-3-9-runtime-now-available-in-aws-lambda/ |
Thank you everyone for your feedback regarding AWS Lambda support for Python 3.10. We are aware of the ask, however, we don't currently have a timeline to share. |
Python 3.9 just hit the security-only stage of its maintenance lifecycle: https://pythoninsider.blogspot.com/2022/05/python-3913-is-now-available.html |
Two months since the last update. Any (hopefully good) news here? @jtuliani |
I had a desire to update my lambda builds to 3.10 the other day and began looking into this more. Since this issue has been open for a little while I thought I might take a stab at building this from the amazonlinux base image (as the python 3.9 builds are). None of the guides I found quite made this copy / paste possible. So I came up with this, which I tested and seems to work just fine at least for my use cases which includes things like numpy. But depending on your project complexity your mileage may vary. It doesn't follow all the same conventions with putting task logic in I don't think I have access to contribute this back anywhere otherwise I would create PR. @jtuliani please feel free to point me in the right direction for that and I'm happy to help iterate on a better vetted and reviewed 3.10 image. In the meantime I hope this helps others.
|
@jwgstr - can you post this Dockerfile as a gist or repo so I can discuss issues with it w/o cluttering the main thread? (in particular, |
excellent idea: https://gist.github.com/jwgstr/4dcc9f16c52529486de0f6fa78c55aef |
This is now an issue for users of Gitlab who use the Docker:latest image to build lambda images using DinD. The Docker image is built off of Alpine 3.16 which now only supports python3.10 natively. Our workaround is to use pyenv to install a python 3.9 version... but that adds significant time to our builds. |
You could also just not use the Not saying that it isn't ridiculous for AWS to still not support Python 3.10 in Lambdas, just offering my opinion on best practices when using container images. |
Let me try that. (Thanks, I had gone through the list of available Docker tags and I didn't see that one.) Ty, |
now that 3.10 is the only available runtime for the latest codebuild images (aws/aws-codebuild-docker-images#505), one cannot use these to build + package lambdas without manually downgrading or upgrading Python (e.g. via pyenv) in codebuild or lambda, respectively, or risk bundling incompatible C extension binaries between build and deployment. @jtuliani @jbesw any updates? |
Half way around the sun since this was opened and 10 months since 3.10 final was released. Hey AWS, any chance we can get a 3.10 image sometime soon?? @jtuliani? |
Yeah, it can't be that hard... |
We are working on support for Py3.10 in Lambda. However, I don’t currently have a date we can share. We appreciate your feedback and we are also investing in process improvements to enable us to ship runtimes more promptly in future. |
Thanks for the update |
Does this mean it's more than 3 months away? Because for Node.js 16 you made the following announcement:
Source: #14 (comment) Python 3.11 will be released in ~2 months, see https://peps.python.org/pep-0664/#schedule |
Valid question. If your release cycle of Lambda containers with new Python versions takes longer than that of completely new Python versions, I'd say, there's something wrong with your release process. |
Excuse me? Is "Does this mean, it's more than 3 months away?" not a question? |
Can you guys argue on Facebook instead? Most of us are watching to see a PR be merged not two people trying to get one up on each other. Thanks. |
thank you it's live now |
Thanks team 🙏, it is live now |
Did they upgrade the manylinux platform version for 3.10? I believe it was manylinux2010_x86_64 in 3.9. Did they go to 2014? I'm not sure where to look to figure that out, but I want to know if I can change the platform when building Layers. |
So, that's Reference: AWS Lambda adds support for Python 3.9 (Aug 16, 2021) |
Finally! 🎉 Now onto 3.11 |
Just a quick note since https://github.com/brefphp was mentioned. As the author of Bref, while I understand (and share) the frustration, I don’t condone aggressive comments. We can use better words to express that. Just wanted to clarify, sorry for the off-topic comment. |
It's Amazon Linux everywhere for AWS i.e. Redhat... |
Thanks AWS team! (normally wouldn't post but tons of the comments were negative so wanted to balance it out a bit lol) |
Echoing @jpmatusik - congratulations AWS team! |
I'm happy to announce that Python 3.10 support in AWS Lambda is now GA: https://aws.amazon.com/blogs/compute/python-3-10-runtime-now-available-in-aws-lambda/ We have also shipped a preview base container image for Python 3.11 support in AWS Lambda. The purpose of this image is to enable customers to get an early look at Python 3.11 support and provide any feedback. This image is subject to change and should not be used for production workloads. To provide feedback on this image, and for future updates on Python 3.11 support, see #62 . Thank you all for your patience and feedback. We recognize that we've not met customer expectations regarding timely runtime launches, and are working hard to catch up. |
Seems like the api for creating functions don't know about 3.10 yet. Hopefully it won't take too long to be added, I couldn't find the info in the blog post 🤞 |
Chiming in with @jpmatusik, kudos for the release! |
Very glad to see this, dismayed at a few comments not keeping it "above the belt" with the criticism of the delay. There are humans on both ends here. |
@jtuliani Thank you AWS team for releasing this update. I would love to hear the details of what was the blocker, it would make a great postmortem to prevent this in the future. |
Finally... We Germans like to say "Was lange währt, wird endlich gut". Thank you, AWS, for basically doing your job. It's not easy sometimes, I know. But seriously, AWS, you should really, I mean, like, REALLY check on and fix your delivery/upgrade process. There's something terribly flawed and smelly if a from the viewpoint of your customers pretty simple upgrade to a new runtime version takes one and a half year. |
This would be great, even if we just got the fully digested conclusions of the postmortem. I doubt that it was the runtime itself causing the issue, which would make a postmortem even more insightful for those of us on the outside. I suspect that this took so long because it wasn't just an update to the Python Lambda runtime, but a massive update across a large part of the system(evidenced by the large number of updates that came with this, and the fact that the 3.11 base image is already in preview). It would be great if we could learn with AWS about what the stumbling blocks were so that when we need to plan for a massive update at our own companies we can apply those lessons. |
As a customer, it’s worrying that it’s taking AWS more than 12 months to update for a system that has a fixed 12 month upgrade cycle. If AWS continues the way they have for Python 3.9 and 3.10, Lambda is going to continually fall further and further behind on Python versions. |
I'm not gonna be the one to do it, but for the people requesting some kind of post-mortem it might make sense to open a new top level issue. |
@alxsavard Thanks for flagging the doc issue, we're looking into that. However, this should be a documentation issue only, the CreateFunction API does support Python 3.10. Are you seeing an error when calling the API? If so, in which region? |
@jtuliani I did get an error yesterday (in us-east-1) but it seems to be fixed now! Thanks for asking! |
@alxsavard Thanks for confirming. It takes quite a while to roll out a runtime release safely across all regions (which is why folks on this thread found the release before the official announcement). I expect you tried it before the us-east-1 deployment was complete. We appreciate the quick follow-up, thank you. |
Is there an ETA for Python 3.10 on Lambda@Edge? The announcement doesn't mention Lambda@Edge and the documentation doesn't list Python 3.10 (but might be outdated). Or do I have to ask the CloudFront team? |
@Felixoid you need to bump TF version to =>0.13.2 and aws provider version =>4.64 then you will see it |
Kindly excuse me, but it's the web console. updatethe message was deleted. There was a screenshot about the inability to use python 3.10 as a lambda@edge function |
@AntonKyrychekCrit They are trying to create a Lambda@Edge function which has further restrictions. Please see the Lambda@Edge supported runtimes and note that Python 3.10 is not listed. |
Latest official update for anyone who missed it in the wall of comments:
Previous official update:
Python 3.10 was released on 2021-10-04
The text was updated successfully, but these errors were encountered: