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
Describe the bug
Incorrect exception - add in OSError
To Reproduce
Steps to reproduce:
In windows 11 terminal
Type "pythonclaw start"
In browser go to: http://localhost:7788/
Expected behavior:
Web page to appear - pythonclaw dashboard
Environment
OS: Windows 11 Home
Version 26H2
OS build 26300.9974
Python 3.14.7
PythonClaw version: 0.7.2
Fastapi version: 0.165.0
Logs
Terminal responds:
Traceback (most recent call last):
File "", line 203, in _run_module_as_main
File "", line 88, in run_code
File "C:\Python314\Scripts\pythonclaw.exe_main.py", line 5, in
sys.exit(main())
~~~~^^
File "C:\Python314\Lib\site-packages\pythonclaw\main.py", line 567, in main
handler(args)
~~~~~~~^^^^^^
File "C:\Python314\Lib\site-packages\pythonclaw\main.py", line 171, in _cmd_start
start_daemon(channels=args.channels, config_path=args.config)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python314\Lib\site-packages\pythonclaw\daemon.py", line 44, in start_daemon
if pid and _is_alive(pid):
~~~~~~~~~^^^^^
File "C:\Python314\Lib\site-packages\pythonclaw\daemon.py", line 221, in _is_alive
os.kill(pid, 0)
~~~~~~~^^^^^^^^
OSError: [WinError 11] An attempt was made to load a program with an incorrect format
Fix:
Change line 215 in daemon.py to:
except (ProcessLookupError, PermissionError, OSError)
Activity