Skip to content
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

AWS CLI v2: urllib3 Dependency Version Issue #288382

Closed
dansheikh opened this issue Feb 12, 2024 · 5 comments
Closed

AWS CLI v2: urllib3 Dependency Version Issue #288382

dansheikh opened this issue Feb 12, 2024 · 5 comments
Labels

Comments

@dansheikh
Copy link

Describe the bug

AWS CLI v2 (2.13.33) package includes urllib3 version 2.0.7 which apparently is incompatible with the included botocore, see following error trace:

Traceback (most recent call last):
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/bin/.aws-wrapped", line 20, in
import awscli.clidriver
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/clidriver.py", line 21, in
import botocore.session
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/session.py", line 27, in
import botocore.client
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/client.py", line 16, in
from botocore import UNSIGNED, waiter, xform_name
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/waiter.py", line 17, in
from botocore.docs.docstring import WaiterDocstring
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/docs/init.py", line 15, in
from botocore.docs.service import ServiceDocumenter
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/docs/service.py", line 14, in
from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/docs/client.py", line 16, in
from botocore.docs.example import ResponseExampleDocumenter
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/docs/example.py", line 13, in
from botocore.docs.shape import ShapeDocumenter
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/docs/shape.py", line 19, in
from botocore.utils import is_json_value_header
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/utils.py", line 33, in
import botocore.httpsession
File "/nix/store/iblfnc4k15nkyzn1idgffwha8msf0mbr-awscli2-2.13.33/lib/python3.11/site-packages/awscli/botocore/httpsession.py", line 21, in
from urllib3.util.ssl_ import (
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/nix/store/0hqxlnv2k8vay7acydvd3mdnp0hwf205-python3.11-urllib3-2.0.7/lib/python3.11/site-packages/urllib3/util/ssl_.py)

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install AWS CLI v2 package.
  2. Run aws --version

Notify maintainers

@bhipple @davegallant @bryanasdev000 @devusb @anthonyroussel

@dansheikh dansheikh added the 0.kind: bug Something is broken label Feb 12, 2024
@surfaceflinger
Copy link
Member

Hmm, works fine for me from master as of me writing this

@surfaceflinger
Copy link
Member

Checked also awscli2 from release 23.11 and it works fine for me too, maybe you got this issue? #284753

@AndrewKvalheim
Copy link
Contributor

I just hit this due to #108516 and had success with this workaround:

$ env --unset PYTHONPATH aws --version
aws-cli/2.13.33 Python/3.11.6 Linux/6.1.79 source/x86_64.nixos.23 prompt/off

@fstamour
Copy link
Contributor

Looks like a duplicate of #267864

@anthonyroussel
Copy link
Member

Duplicate of #267864

@anthonyroussel anthonyroussel marked this as a duplicate of #267864 Apr 7, 2024
@anthonyroussel anthonyroussel closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants