tags 1064307 patch
thanks

Hi,

for $REASONS I need to use awscli on Ubuntu, but the package was removed
from Ubuntu Noble (supposedly due to this bug). Here is how I managed to
get things to work on Noble.

The problem that is reported in this bug comes from an old version of
"six" that is bundled in "botocore" which is bundled in "awscli". To fix
this, I simple updated (= overwrote) botocore's six.py with a newer
version from git:

wget
https://github.com/benjaminp/six/raw/c1b416f24de52ebd8eaed3e379ab85ec9c3e935b/six.py
-O /usr/lib/python3/dist-packages/awscli/botocore/vendored/six.py

Then, I ran into a problem with urllib3 (which might or might not be
unrelated to this bug - sorry). Newer versions no longer provide
urllib3.util.ssl_.DEFAULT_CIPHERS (and the "_" in "ssl_" makes me
believe that this module is not considered to be public API). This
problem is also already fixed in newer botocore versions. You need the
following two patches.

https://github.com/boto/botocore/commit/0a6d8e3c6325da395a04227599cfa292190d6841.patch

https://github.com/boto/botocore/commit/7b4c26e721936b185681cb10010ded4026295bd4.patch

The resulting awscli seems to work fine for me on Ubuntu Noble, but so
far I only tested it lightly.

Cheers,
Uli

Reply via email to