CryptographyDeprecationWarning with latest version of cryptography and aws-encryption-sdk
See original GitHub issueI’m using the following package versions:
- aws-encryption-sdk==2.0.0
- cryptography==3.4.4
When I import a module which uses aws_encryption_sdk
, I get the following warning:
/usr/local/lib/python3.7/site-packages/aws_encryption_sdk/internal/crypto/elliptic_curve.py:21: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import InterfaceNotImplemented, int_from_bytes, int_to_bytes, verify_interface
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:5 (2 by maintainers)
Top Results From Across the Web
AWS Encryption SDK for Python
The AWS Encryption SDK for Python requires the cryptography library (pyca/cryptography) on all platforms. All versions of pip automatically install and build ...
Read more >Unable to use aws-encryption-cli after successfull installation
After going through various blogs, I came to know it's version dependency issue of cryptography package for aws-encryption-cli .
Read more >aws-encryption-sdk - Read the Docs
Latest Version Supported Python Versions Code style: black Documentation Status ... cryptographic materials and prepare them for use by the Encryption SDK ......
Read more >aws-encryption-sdk - PyPI
Latest Version Supported Python Versions Code style: black Documentation Status. The AWS Encryption SDK for Python provides a fully compliant, native Python ...
Read more >Python 2 is no longer supported by the Python core team ...
This is the issue of the latest version(0.17.0) of pyrsistent. You should install the past version. pip uninstall pyrsistent pip install ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In order to solve this, install cryptography version 3.3.2 pip install cryptography==3.3.2 Worked for me.
Hey folks,
The most recent release of the Python Encryption SDK (3.0.0) no longer uses the deprecated
int_from_bytes
method. There are no breaking changes in this major version (aside from dropping support for Python 2), so as long as you’re not on Python 2 you should be able to seamlessly upgrade to the most recent version and you’ll no longer see these warnings.Thanks, Ben