Fixing AttributeError introduced in recent cryptography release in Python — Recently, many Python users have started reporting AttributeError: module ‘lib’ has no attribute ‘OpenSSL_add_all_algorithms’ when attempting to install new or update existing modules via pip. File "/home/patrick/.local/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/home/patrick/.local/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3268, in <module>
_lib.OpenSSL_add_all_algorithms() …