Skip to content

pythonclaw start - no daemon running #14

Backlog

Description

@infocommeng

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

  1. added
    bug
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions