Skip to content

Commit

Permalink
Use last version compatible with Python 3.4/3.5
Browse files Browse the repository at this point in the history
See deprecation warning for these python versions https://aws.amazon.com/blogs/developer/announcing-the-end-of-support-for-python-3-4-and-3-5-in-the-aws-sdk-for-python-and-aws-cli-v1/

> On February 1, 2021, the AWS SDK for Python (Boto3 and Botocore) and the AWS Command Line Interface (AWS CLI) v1 will no longer support Python 3.4 and Python 3.5. We encourage you to upgrade to Python 3.6 or later (this deprecation doesn’t affect customers using Python 2.7).

Issue - our version of pip installs the awscli package even though it now depends on an rsa package version that doesn't run in Python 3.5 Charming

> [awscli v1.19.15 adjusted] our dependencies for rsa. We've moved our range to versions that no longer support Python 3.5. The AWS CLI did a deprecation campaign last year for dropping support of 3.4/3.5 at the beginning of Feb 2021.
>
> What's interesting is modern versions of pip for the last several years prevent what's happening here by refusing to install awscli-1.19.0+ on Python 3.5. Do you know offhand what version of pip your environment is using?
>
> In the meantime, we'd encourage you to either migrate to the AWS CLI v2, Python 3.6+, or pin to awscli<1.19.
  • Loading branch information
jorgeazevedo committed Feb 26, 2021
1 parent 2840c5e commit 7eed4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/aws-tools/tasks/install-pip-aws-cli-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
apt: name=python3-pip state=present

- name: Install latest AWS CLI
command: pip3 install awscli
command: pip3 install -I awscli==1.19.12

0 comments on commit 7eed4b3

Please sign in to comment.