question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CryptographyDeprecationWarning with latest version of cryptography and aws-encryption-sdk

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

14reactions
stevenmucommented, Mar 18, 2021

In order to solve this, install cryptography version 3.3.2 pip install cryptography==3.3.2 Worked for me.

0reactions
farleyb-amazoncommented, Jul 6, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found