I am trying to upgrade all the modules of our software, I used pip install==6.4.0 and I am getting an error of cryptography when importing it. I checked the version of the installed module and it returns 4.2.0.
Environment
Which environment were you using when you encountered the problem?
$ python -m platform
Linux-4.4.120-92.70-default-x86_64-with-glibc2.22
$ python -c "import pypdf;print(pypdf._debug_versions)"
/home/bsc/bsc032781/.local/lib/python3.11/site-packages/pypdf/_crypt_providers/_cryptography.py:32: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
pypdf==4.2.0, crypt_provider=('cryptography', '46.0.3'), PIL=12.0.0
Code + PDF
This is a minimal, complete example that shows the issue:
import pypdf
/home/bsc/bsc032781/.local/lib/python3.11/site-packages/pypdf/_crypt_providers/_cryptography.py:32: CryptographyDeprecationWarning: ARC4 has been moved to cryptography.hazmat.decrepit.ciphers.algorithms.ARC4 and will be removed from cryptography.hazmat.primitives.ciphers.algorithms in 48.0.0.
from cryptography.hazmat.primitives.ciphers.algorithms import AES, ARC4
No need for a PDF example, I am just trying to remove the import error.
Traceback
Same as before.
Thank you in advance.
I am trying to upgrade all the modules of our software, I used pip install==6.4.0 and I am getting an error of cryptography when importing it. I checked the version of the installed module and it returns 4.2.0.
Environment
Which environment were you using when you encountered the problem?
Code + PDF
This is a minimal, complete example that shows the issue:
No need for a PDF example, I am just trying to remove the import error.
Traceback
Same as before.
Thank you in advance.