Uplink error: module ‘ssl’ has no attribute ‘wrap_socket’

Hi All, To set the uplink (I folloewed all the steps indicated in the forum) i get this error:

$ C:/Users/chikh/AppData/Local/Programs/Python/Python312/python.exe c:/Users/chikh/uplink/page.py
Connecting to wss://anvil.works/uplink
Traceback (most recent call last):
File “c:\Users\chikh\uplink\page.py”, line 3, in
anvil.server.connect(“client_QUJ2CSVLY7ZKI46Q4F3ZCCLK-RPB3TV5SAQP7CSVA”)
File “C:\Users\chikh\AppData\Local\Programs\Python\Python312\Lib\site-packages\anvil\server.py”, line 359, in connect
_get_connection()
File “C:\Users\chikh\AppData\Local\Programs\Python\Python312\Lib\site-packages\anvil\server.py”, line 341, in _get_connection
raise e
File “C:\Users\chikh\AppData\Local\Programs\Python\Python312\Lib\site-packages\anvil\server.py”, line 338, in _get_connection
connection.connect()
File "C:\Users\chikh\AppData\Local\Programs\Python\Python312\Lib\site-packages\ws4py\client_init
.py", line 214, in connect
self.sock = ssl.wrap_socket(self.sock, **self.ssl_options)
^^^^^^^^^^^^^^^
AttributeError: module ‘ssl’ has no attribute ‘wrap_socket’
Thank you for you help

Hi @chikhaoui.mongi,

Please, don’t reply to old threads with new questions! I’ve moved this post to a new topic in the Q&A forum, where it’s supposed to be.

In the meantime, if you search your error (module ‘ssl’ has no attribute 'wrap_socket') in the Forum Search at the top right, you should discover that other people have experienced this problem before and there is a known answer!

1 Like