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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "<stdin>", line 6, in run
File "uvloop/loop.pyx", line 2629, in sock_sendto
NotImplementedError
I had a similar issue with sock_recvfrom. It took me a while to figure out what was going on because I was using Sanic and hadn't actually heard of uvloop. I got around it by disabling it in the Sanic config but it would be nice if these methods could be implemented.
I recently stumbled upon this while working on multicast communication, and I was really surprised to find that switching from asyncio to uvloop broke it.
Activity
WilliamOConnell commentedon Aug 7, 2024
I had a similar issue with
sock_recvfrom. It took me a while to figure out what was going on because I was using Sanic and hadn't actually heard ofuvloop. I got around it by disabling it in the Sanic config but it would be nice if these methods could be implemented.difeid commentedon Aug 27, 2024
Yes,
sock_recvfromis also not implementeduvloop/loop.pyx
aldem commentedon Nov 15, 2025
I recently stumbled upon this while working on multicast communication, and I was really surprised to find that switching from asyncio to uvloop broke it.
It would be great to see this implemented.
KaylaSolace commentedon Aug 12, 2026
sad to see this still isnt supported.
tarasko commentedon Aug 13, 2026
Hey guys, @aldem @KaylaSolace @difeid
aiofastnet provides drop-in implementations for
sock_recvfrom,sock_recvfrom_into,sock_sendto.Depending on you project, you can use them either directly:
or just patch the current loop (which can be uvloop)