-
Notifications
You must be signed in to change notification settings - Fork 45
URLLib3 is pinned below version 2 #376
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
Comments
Hi, thanks for reaching out! Yes this is the result of #329 and caused by a dependency on botocore, which also is pinned below v2 of urllib3. This seems to cause other issues with amazon's internal infrastructure. You can follow along this thread for more: boto/botocore#2926 |
Their latest comment is confusing then boto/botocore#2926 (comment) |
It seems upon further examination, your python range may be why you have a simpler limit |
Only for 3.10 and above. I'm more than happy to remove it when AWS can fully support all current Lambda runtimes. Edit: |
Do you think you'd accept a patch for using https://python-poetry.org/docs/dependency-specification/#multiple-constraints-dependencies so that 3.10+ can use <2.1? I run 3.11; and it might be appreciated |
We would but that change is complex as our build process isn't presently aware of variations across multiple poetry.lock files, which may be tricky to add. Additionally it may complicate our coordination with dd-trace-py. But I'm happy to test out whatever you'd like to contribute. |
lets see if / where it blows up and revisit 😄 ; PR above #377 |
@astuyve it looks like it passes tests; flakes on integrations are AWS permissions related, no idea how you'll overcome those, but they do not relate to the python code. |
Yeah, I have to run them myself. I'll let you know, thanks! |
Hi, sorry this change seems to have broken python 3.10 with the same error reported in #329, see the screenshot: ![]() I'll investigate if we need to continue patching Thanks! |
So you're importing from an internal package and it breaks things... Can you describe what that import is used for? |
Hi, no sorry for the missing context - it's thrown by boto3 (same error we've been discussing) when it is imported from the runtime. |
Hi, to update - I created a brand new serverless application using python3.10, boto3 (from the 3.10 runtime), and my own version of urllib3==2.0.7, and without datadog's instrumentation. It crashes with the same error: Python 3.11 works fine though. Looks like it has a newer version of botocore/boto3: |
Additionally I've opened aws/aws-lambda-base-images#118 to track this fix in the Lambda runtime itself |
Can I ask when the new release will be cut? #380 looks like it solves it. |
Should go out today! |
Expected Behavior
Stable dependencies that don't downgrade without explanation.
Actual Behavior
Urllib3 downgrades from 2.x after installing datadog-lambda
Steps to Reproduce the Problem
Specifications
The below details are provided as asked for, but are irrelevant
Stacktrace
N/A; this bug is in the packaging 🙃
The text was updated successfully, but these errors were encountered: