ImportError: cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_' (*****/urllib3/util/ssl_.py) #3811
Labels
closed-for-staleness
dependencies
This issue is a problem in a dependency.
response-requested
Waiting on additional information or feedback.
Describe the bug
Hi,
I am trying to use "import boto3" in my python code base, I am getting the following error and I am not sure why I am facing this issue.
ImportError: cannot import name 'PROTOCOL_TLS' from 'urllib3.util.ssl_' (*****/urllib3/util/ssl_.py)
I have verified version of boto3 and botocore and urlib3 i.e.
boto3 1.28.20
botocore 1.31.20
urllib3 1.26.16
pipdeptree --reverse | grep "requires: urllib3"
├── botocore==1.31.20 [requires: urllib3>=1.25.4,<1.27]
└── requests==2.31.0 [requires: urllib3>=1.21.1,<3]
I verified by going to ssl.py file I don't see any reference of 'PROTOCOL_TLS', can someone help me in resolving this issue and why I am seeing this.
Thanks
Expected Behavior
Should use the package already installed, the version of urllib3 is more than 1.24 so it should not have any problem also the latest urllib3 version is 2.0* but its not compatible with boto3
Current Behavior
its erroring out.
Reproduction Steps
upgraded boto3 botocore and urllib3
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3 - 1.28.20
Environment details (OS name and version, etc.)
local env, boto3 -1.28.20 botocore - 1.31.20 urllib3 - 1.26.16
The text was updated successfully, but these errors were encountered: