klein
klein copied to clipboard
AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'
When I import klein (i.e.: from klein import Klein), I get an error that concludes in the following lines:
File "/usr/local/lib/python3.7/dist-packages/twisted/internet/_sslverify.py", line 1807, in fromOpenSSLCipherString
SSL.TLS_METHOD,
AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'
Appears related to this twisted issue.
I was able to workaround this by downgrading Twisted to 24.
Closing this in favor of the Twisted issue above, as there is nothing to fix in Klein.