okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
735 stars 91 forks source link

cryptography-40.0.2 breaks aws cli #173

Closed bpauwels closed 1 year ago

bpauwels commented 1 year ago

Tested on Amazon Linux 2023

Installing awscurl replaces the cryptography package with version 40.0.2 which is not compatible with aws cli

$ aws --version
aws-cli/2.9.19 Python/3.9.16 Linux/6.1.27-43.48.amzn2023.aarch64 source/aarch64.amzn.2023 prompt/off

$ sudo pip3 install awscurl
...
Installing collected packages: cryptography, pyOpenSSL, certifi, configparser, configargparse, awscurl
  Attempting uninstall: cryptography
    Found existing installation: cryptography 36.0.1
    Uninstalling cryptography-36.0.1:
      Successfully uninstalled cryptography-36.0.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
awscli 2.9.19 requires cryptography<=38.0.5,>=3.3.2, but you have cryptography 40.0.2 which is incompatible.
Successfully installed awscurl-0.29 certifi-2023.5.7 configargparse-1.5.3 configparser-5.3.0 cryptography-40.0.2 pyOpenSSL-23.1.1

$ aws --version

No module named 'cryptography'
okigan commented 1 year ago

So I think it is related to the issue already addressed in this PR: https://github.com/okigan/awscurl/pull/145.

I've been reluctant to merge it before, but I think the ecosystem has changed enough that it makes sense to merge that.

okigan commented 1 year ago

https://github.com/okigan/awscurl/pull/145 was merged -- closing this issue.