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
ImportError: cannot import name 'OP_NO_TICKET' from 'urllib3.util.ssl_' #2562
Comments
Hi @barrykan, thanks for opening this issue. It looks like we may have a gap in the imports for users on old versions of urllib3. Can you please provide the urllib3 version you're using locally? For immediate mitigation while we investigate, we'd recommend making sure you're on |
I'm seeing this too. I have urllib3 1.25.8 |
Seeing this as well on Python 3.8 and urllib3 1.25.11 |
Same problem here |
Hi @nateprewitt , thank you for your quick reply. My urllib3 version is |
Im changed the urllib3 to 1.26.7 and it worked |
We are seeing this issue as well. |
+1 |
1 similar comment
+1 |
Hey all, I've found that our requests library was installing an old version of urllib3 (1.25.8). When urllib3 was being used in our AWS Lambda, it was calling that old version of urllib3 instead of the one installed with boto3 (1.26.7). Not sure if this helps anyone else wondering the version installed by boto3 wasn't being used. |
Botocore 1.23.1 has been released with fix for this. Please let us know if you're still experiencing issues. |
Closing for now, but please let us know if this is still an issue! |
|
boto3 1.20.0 depends on botocore 1.23.0 which depends on urllib3>=1.26.0. Unfortunately they don't record that properly in their setup.cfg which allows them to install using urllib3 1.25.11 which is valid in our old requirements. This then fails at runtime due to an invalid import: boto/botocore#2562 Fix this by bumping up urllib3 then bump boto3 to match. Change-Id: I941c252f9a3bb07eca2c52b18a5f2d609394e0c4
Describe the bug
The just released version 1.23.0 will spit out the error in the title if you try to import
botocore.utils
, which precludes almost any use of the library.Steps to reproduce
My environment:
OS: macOS Big Sur (11.4)
Python: 3.7.12 (virtualenv ultimately from brew installed version)
pyOpenSSL: 20.0.0
Install botocore 1.23.0 with
pip3 install botocore==1.23.0
. Runimport botocore.utils
.Expected behavior
There should not be an import error (and I believe this is the first version where this happens as it doesn't in 1.22.12).
Debug logs
(I cannot set the debug logger without getting the import error, so I can only show the import error.)
The text was updated successfully, but these errors were encountered: