Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » scratchattach - A Scratch API wrapper (Python)
- uukelele
-
12 posts
scratchattach - A Scratch API wrapper (Python)
requests event not working, python is spitting a bunch of errors. Error in console:
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\websocket\_http.py”, line 176, in _get_addrinfo_list
addrinfo_list = socket.getaddrinfo(
hostname, port, 0, socket.SOCK_STREAM, socket.SOL_TCP
)
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\socket.py”, line 975, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\threading.py”, line 1041, in _bootstrap_inner
self.run()
~~~~~~~~^^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\threading.py”, line 992, in run
self._target(*self._args, **self._kwargs)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\scratchattach\eventhandlers\cloud_events.py”, line 31, in _updater
self.source_cloud.connect()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\scratchattach\cloud\cloud.py”, line 27, in connect
super().connect()
~~~~~~~~~~~~~~~^^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\scratchattach\cloud\_base.py”, line 137, in connect
self.websocket.connect(
~~~~~~~~~~~~~~~~~~~~~~^
self.cloud_host,
^^^^^^^^^^^^^^^^
…<4 lines>…
header = self.header
^^^^^^^^^^^^^^^^^^^^
)
^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\websocket\_core.py”, line 256, in connect
self.sock, addrs = connect(
~~~~~~~^
url, self.sock_opt, proxy_info(**options), options.pop(“socket”, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\websocket\_http.py”, line 137, in connect
addrinfo_list, need_tunnel, auth = _get_addrinfo_list(
~~~~~~~~~~~~~~~~~~^
hostname, port_from_url, is_secure, proxy
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “C:\Users\noahc\AppData\Local\Programs\Python\Python313\Lib\site-packages\websocket\_http.py”, line 191, in _get_addrinfo_list
raise WebSocketAddressException(e)
websocket._exceptions.WebSocketAddressException: getaddrinfo failed
blame scratch

- disnottaken_alt
-
100+ posts
scratchattach - A Scratch API wrapper (Python)
Yeah, cloud servers are downinsert error here
blame scratch
- snoopythe3
-
500+ posts
scratchattach - A Scratch API wrapper (Python)
do i have to execute my code in a python script
- kRxZy_kRxZy
-
1000+ posts
scratchattach - A Scratch API wrapper (Python)
Yeah do i have to execute my code in a python script
- Discussion Forums
- » Advanced Topics
-
» scratchattach - A Scratch API wrapper (Python)