Siyuanw/kinesis

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

kneeroo opened this issue · 1 comments

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

Resolved this by downgrading my python version from 3.12 to 3.11.6