adsbcot
adsbcot copied to clipboard
Winsock error
This seems like a cool project, but I'm not sure about the Windows support. Since for any configuration, I get this error:
....
File "F:\gv\Python310\lib\site-packages\pytak\client_functions.py", line 80, in create_udp_client
reader = await dgbind((host, port))
File "F:\gv\Python310\lib\site-packages\pytak\asyncio_dgram\aio.py", line 238, in bind
transport, protocol = await loop.create_datagram_endpoint(
File "F:\gv\Python310\lib\asyncio\base_events.py", line 1371, in create_datagram_endpoint
raise exceptions[0]
File "F:\gv\Python310\lib\asyncio\base_events.py", line 1355, in create_datagram_endpoint
sock.bind(local_address)
OSError: [WinError 10049] Cannot assign requested address.
10049 == WSAEADDRNOTAVAIL
.
Ref: https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
With some added trace, I see the address in pytak/asyncio_dgram/aio.py
is ('239.2.3.1', 6969)
and family == 0 (AF_UNSPEC
).
Even after adding COT_URL = udp://239.255.255.250:6969
to my config.ini
, it fails.