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
asyncio.start_server does not start because there is no usocket.
If anyone has a workaround for running a TCP server without polling or blocking please lmk - in the meantime it's possible to poll a non-blocking TCP socket with socketpool, but obviously without the benefits of asyncio for performance.
Minimal reproduction code - be sure to update with your specific WiFi info below:
The output of running that code on the latest CircuitPython 8:
code.py output:
connected to wifi
Traceback (most recent call last):
File "code.py", line 26, in
File "asyncio/core.py", line 312, in run
File "asyncio/core.py", line 271, in run_until_complete
File "asyncio/core.py", line 256, in run_until_complete
File "code.py", line 19, in run_server
File "asyncio/stream.py", line 231, in start_server
ImportError: no module named 'usocket'
Code done running.
The text was updated successfully, but these errors were encountered:
asyncio.start_server does not start because there is no usocket.
If anyone has a workaround for running a TCP server without polling or blocking please lmk - in the meantime it's possible to poll a non-blocking TCP socket with socketpool, but obviously without the benefits of asyncio for performance.
Minimal reproduction code - be sure to update with your specific WiFi info below:
The output of running that code on the latest CircuitPython 8:
The text was updated successfully, but these errors were encountered: