python-jose icon indicating copy to clipboard operation
python-jose copied to clipboard

CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

Open 06parv opened this issue 4 years ago • 2 comments

CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead from cryptography.utils import int_from_bytes, int_to_bytes

from jose import jwt /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/jose/jwt.py:13: in from jose import jws /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/jose/jws.py:11: in from jose import jwk /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/jose/jwk.py:9: in from jose.backends.base import Key /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/jose/backends/init.py:3: in from jose.backends.cryptography_backend import CryptographyRSAKey as RSAKey # noqa: F401 /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/jose/backends/cryptography_backend.py:18: in from cryptography.utils import int_from_bytes, int_to_bytes /opt/hostedtoolcache/Python/3.8.7/x64/lib/python3.8/site-packages/cryptography/utils.py:104: in getattr warnings.warn(obj.message, obj.warning_class, stacklevel=2) E cryptography.utils.CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

@mpdavis

06parv avatar Feb 18 '21 13:02 06parv

Also seeing this. Our logging+alerting service caught a spike in python errors logged after latest deployment. Not a big deal to add an ignore rule, though.

cahna avatar Feb 18 '21 20:02 cahna

This is a duplicate of #208

cahna avatar Feb 18 '21 20:02 cahna