klein icon indicating copy to clipboard operation
klein copied to clipboard

AttributeError: module 'OpenSSL.SSL' has no attribute 'TLS_METHOD'

Open thisAmericanLife opened this issue 3 years ago • 2 comments

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.

thisAmericanLife avatar Dec 01 '22 18:12 thisAmericanLife

I was able to workaround this by downgrading Twisted to 24.

thisAmericanLife avatar Dec 02 '22 14:12 thisAmericanLife

Closing this in favor of the Twisted issue above, as there is nothing to fix in Klein.

wsanchez avatar May 24 '23 20:05 wsanchez