Open brenthc opened 2 years ago
Running into the same issue. Can the mods address?
Hi Folks --
Based on our analysis, this issue appears to be due to a breaking change in the cryptography module (v38.0.x) that is impacting the PGPy library that we rely on for OpenPGP encryption. There is currently an open issue in the PGPy repo tracking a fix: https://github.com/SecurityInnovation/PGPy/issues/402
Once the issue has been fixed, the breaking change should no longer affect the SendSafely Python API. Until then, we recommend using the workaround below (until the PGPy library is updated):
pip uninstall -y cryptography
pip install cryptography==37.0.4
We will leave this issue open until we can confirm that the PGPy fix has been released.
I wanted to add an additional error that I received when using cryptography
version > 37.0.4
I had cryptography
version 41.0.2 and the error I received was ImportError: cannot import name 'CryptographyDeprecationWarning' from 'cryptography'
Installing version 37.0.4
fixes this problem.
python3 sendsafely_python_example.py
Traceback (most recent call last):
File "/Users/kyle/git/my_project/Python-Client-API/scripts/sendsafely_python_example.py", line 3, in <module>
from sendsafely import SendSafely, Package
File "/Users/kyle/git/my_project/sendsafely/lib/python3.11/site-packages/sendsafely/__init__.py", line 1, in <module>
from sendsafely.SendSafely import SendSafely
File "/Users/kyle/git/my_project/sendsafely/lib/python3.11/site-packages/sendsafely/SendSafely.py", line 7, in <module>
from cryptography import CryptographyDeprecationWarning
ImportError: cannot import name 'CryptographyDeprecationWarning' from 'cryptography' (/Users/kyle/git/my_project/sendsafely/lib/python3.11/site-packages/cryptography/__init__.py)
The issue is described in full here:
https://jasonralph.org/?p=997
As a workaround that worked for me, as described in the article:
Full traceback from use of
zdgrab
, which usesssgrab
, which usessendsafely
: