internetarchive / warcprox

WARC writing MITM HTTP/S proxy
379 stars 55 forks source link

Limit dependency version cryptography>=2.3,<=39.0.0 #187

Closed vbanos closed 1 year ago

vbanos commented 1 year ago

cryptography 41.0.0 crashes warcprox with the following exception:

File "/opt/spn2/lib/python3.8/site-packages/warcprox/main.py", line 317, in main
  cryptography.hazmat.backends.openssl.backend.activate_builtin_random()
AttributeError: 'Backend' object has no attribute 'activate_builtin_random'

Also, cryptography==40.0.0 isn't OK because when I try to use it I get:

pyopenssl 23.2.0 requires cryptography!=40.0.0,!=40.0.1,<42,>=38.0.0, but you have cryptography 40.0.0 which is incompatible.

So, the version should be <=39.0.0