You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> python3 test.py
ERROR:root:[ignored]
Traceback (most recent call last):
File "/home/david/.local/lib/python3.12/site-packages/torpy/utils.py", line 79, in newfn
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/consesus.py", line 235, in renew
raw_string = self.download_consensus(prev_hash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/consesus.py", line 183, in newfn
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/consesus.py", line 390, in download_consensus
with self._get_dir_client() as dir_client:
^^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/consesus.py", line 375, in _get_dir_client
self._dir_guard, self._dir_circuit = self._create_dir_circuit(purpose='Internal dir client')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/consesus.py", line 365, in _create_dir_circuit
guard = TorGuard(router, purpose=purpose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/david/.local/lib/python3.12/site-packages/torpy/guard.py", line 66, in __init__
self.__tor_socket.connect()
File "/home/david/.local/lib/python3.12/site-packages/torpy/cell_socket.py", line 57, in connect
self._socket = ssl.wrap_socket(
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'
WARNING:torpy.utils:Retry with another router...
The text was updated successfully, but these errors were encountered:
After making these changes, save the files and rerun your script. These edits address the SSL handshake issue and update the code for compatibility with newer versions of Python and urllib3.
test.py
The text was updated successfully, but these errors were encountered: