aws-cli incompatible with py3-urllib3 version
There seems to be an incompatibility issue with the aws-cli and py-urllib3 packages.
aws eks update-kubeconfig --region us-east-1 --name mycluster
Traceback (most recent call last):
File "/usr/bin/aws", line 19, in <module>
import awscli.clidriver
File "/usr/lib/python3.11/site-packages/awscli/clidriver.py", line 21, in <module>
import botocore.session
File "/usr/lib/python3.11/site-packages/awscli/botocore/session.py", line 27, in <module>
import botocore.client
File "/usr/lib/python3.11/site-packages/awscli/botocore/client.py", line 16, in <module>
from botocore import UNSIGNED, waiter, xform_name
File "/usr/lib/python3.11/site-packages/awscli/botocore/waiter.py", line 17, in <module>
from botocore.docs.docstring import WaiterDocstring
File "/usr/lib/python3.11/site-packages/awscli/botocore/docs/__init__.py", line 15, in <module>
from botocore.docs.service import ServiceDocumenter
File "/usr/lib/python3.11/site-packages/awscli/botocore/docs/service.py", line 14, in <module>
from botocore.docs.client import ClientDocumenter, ClientExceptionsDocumenter
File "/usr/lib/python3.11/site-packages/awscli/botocore/docs/client.py", line 16, in <module>
from botocore.docs.example import ResponseExampleDocumenter
File "/usr/lib/python3.11/site-packages/awscli/botocore/docs/example.py", line 13, in <module>
from botocore.docs.shape import ShapeDocumenter
File "/usr/lib/python3.11/site-packages/awscli/botocore/docs/shape.py", line 19, in <module>
from botocore.utils import is_json_value_header
File "/usr/lib/python3.11/site-packages/awscli/botocore/utils.py", line 33, in <module>
import botocore.httpsession
File "/usr/lib/python3.11/site-packages/awscli/botocore/httpsession.py", line 21, in <module>
from urllib3.util.ssl_ import (
ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/usr/lib/python3.11/site-packages/urllib3/util/ssl_.py)
Google points to issues from last summer referencing an incompatibilty. I am not sure if the recent urllib3 update caused this, at least the diff between the tags 1.26.15 and 1.26.17 does not look like it may have caused this (https://github.com/urllib3/urllib3/compare/1.26.15...urllib3:1.26.17/).
https://github.com/boto/botocore/issues/2921 https://github.com/urllib3/urllib3/pull/2705
$ cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.4
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
$ apk info aws-cli
aws-cli-2.13.5-r0 description:
Universal Command Line Interface for Amazon Web Services (v2)
aws-cli-2.13.5-r0 webpage:
https://github.com/aws/aws-cli
aws-cli-2.13.5-r0 installed size:
95 MiB
$ apk info py3-urllib3
py3-urllib3-1.26.17-r0 description:
HTTP library with thread-safe connection pooling, file post, and more
py3-urllib3-1.26.17-r0 webpage:
https://github.com/urllib3/urllib3
py3-urllib3-1.26.17-r0 installed size:
580 KiB