AttributeError: module ‘lib’ has no attribute ‘X509_up_ref’
This is what resolved it for me: as root on Debian: apt remove python3-openssl -y apt autoremove Made sure that /usr/local/lib/python3.5/dist-packages/OpenSSL/SSL.py was removed. … Read more