Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thisAmericanLife opened this issue Dec 1, 2022 · 2 comments

Comments

@thisAmericanLife
Copy link

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
Copy link
Author

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

@wsanchez
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants