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 'ssl' has no attribute 'wrap_socket' #18

Closed
kneeroo opened this issue Nov 11, 2023 · 1 comment
Closed

AttributeError: module 'ssl' has no attribute 'wrap_socket' #18

kneeroo opened this issue Nov 11, 2023 · 1 comment

Comments

@kneeroo
Copy link

kneeroo commented Nov 11, 2023

Main import.py has the code import eventlet

It seems like Eventlet fails with AttributeError: module 'ssl' has no attribute 'wrap_socket'. This happens because of a change in Python.

From What's new:
Remove the ssl.wrap_socket() function, deprecated in Python 3.7: instead, create a ssl.SSLContext object and call its ssl.SSLContext.wrap_socket method. Any package that still uses ssl.wrap_socket() is broken and insecure. The function neither sends a SNI TLS extension nor validates server hostname. Code is subject to CWE-295: Improper Certificate Validation. (Contributed by Victor Stinner in python/cpython#94199.)
eventlet/eventlet#795

@kneeroo
Copy link
Author

kneeroo commented Nov 11, 2023

Resolved this by downgrading my python version from 3.12 to 3.11.6

@kneeroo kneeroo closed this as completed Nov 11, 2023
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

1 participant