Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Windows Integration for Async #53

Open
mcsSolutions opened this issue Nov 26, 2024 · 0 comments
Open

Windows Integration for Async #53

mcsSolutions opened this issue Nov 26, 2024 · 0 comments

Comments

@mcsSolutions
Copy link

I have tried the sample Async usage shown in the description and the complete.py on a Windows 11 platform. The following console feedback was provided showing error traps. GeckoSample.py is just a copy/paste from the github description of how to use the Async library.

The first of the complete.py attempt was resolved with install of windows-curses. The others are unresolved.

I am not a Python programmer so it is difficult to dig deeper.

C:\Users\mcsSo\AppData\Local\Programs\Python\Python312>python C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Scripts\GeckoSample.py
Looking for spas on your network ...
2024-11-26 13:09:49,684> ERROR GeckoAsyncUdpProtocol: Exception received [WinError 10022] An invalid argument was supplied
Traceback (most recent call last):
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 577, in _loop_reading
self._read_fut = self._loop._proactor.recvfrom(self._sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 499, in recvfrom
ov.WSARecvFrom(conn.fileno(), nbytes, flags)
OSError: [WinError 10022] An invalid argument was supplied
2024-11-26 13:09:49,699> ERROR GeckoAsyncUdpProtocol: Exception received [WinError 10022] An invalid argument was supplied
Traceback (most recent call last):
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 537, in _loop_writing
self._write_fut = self._loop._proactor.sendto(self._sock,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 529, in sendto
ov.WSASendTo(conn.fileno(), buf, flags, addr)
OSError: [WinError 10022] An invalid argument was supplied
2024-11-26 13:09:50,812> ERROR GeckoAsyncUdpProtocol: Exception received [WinError 10022] An invalid argument was supplied

C:\Users\mcsSo\AppData\Local\Programs\Python\Python312>python C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py
Traceback (most recent call last):
File "C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py", line 21, in
from cui import CUI
File "C:\Users\mcsSo\Downloads\geckolib-main\sample\cui.py", line 10, in
import curses
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\curses_init_.py", line 13, in
from _curses import *
ModuleNotFoundError: No module named '_curses'

Resolved with pip install windows-curses


C:\Users\mcsSo\AppData\Local\Programs\Python\Python312>python C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py
Traceback (most recent call last):
File "C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py", line 57, in
wrapper(main)
File "C:\Users\mcsSo\AppData\Local\Programs\Python\Python312\Lib\curses_init_.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py", line 49, in main
install_logging()
File "C:\Users\mcsSo\Downloads\geckolib-main\sample\complete.py", line 31, in install_logging
os.remove("cui.log")
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'cui.log'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant