Skip to content

[Bug]: Internal error during ready callback: 'GCodeDispatch' object has no attribute '_build_status_commands' #31

@tayler6000

Description

@tayler6000

What happened?

Trying to install DynamicMacros and received this error. I am not new to Python, but I am brand new to 3D Printing, so I'm not very familiar with their systems/codebase. I am using a Neptune 4 Max. I was originally having issues as Klippy was first running on Python 2.7, so I backed up the venv and created a new Klippy env with Python 3.7 and installed the requirements file. After doing so, I received the above error. Not sure if I missed any steps in upgrading to Python 3, but any help would be appreciated.

Klippy Log

2025-12-08 06:10:23,868 [klippy_connection.py:_on_connection_closed()] - Klippy Connection Removed
2025-12-08 06:10:23,885 [websockets.py:build_error()] - JSON-RPC Request Error: 503
Klippy Host not connected
Traceback (most recent call last):
  File "/home/mks/moonraker/moonraker/websockets.py", line 253, in execute_method
    result = await callback(params)
  File "/home/mks/moonraker/moonraker/websockets.py", line 351, in func
    user=ws.current_user))
  File "/home/mks/moonraker/moonraker/klippy_connection.py", line 458, in request
    raise ServerError("Klippy Host not connected", 503)
utils.ServerError: Klippy Host not connected
2025-12-08 06:10:25,130 [klippy_connection.py:_do_connect()] - Klippy Connection Established
2025-12-08 06:10:25,131 [klippy_connection.py:_get_peer_credentials()] - Failed to get Klippy Peer Credentials, raw: 0x7e310000e8030000e8030000
Traceback (most recent call last):
  File "/home/mks/moonraker/moonraker/klippy_connection.py", line 239, in _get_peer_credentials
    pid, uid, gid = struct.unpack("@LLL", data)
struct.error: unpack requires a buffer of 24 bytes
2025-12-08 06:10:25,960 [klippy_connection.py:_init_klippy_connection()] - Webhooks Subscribed
2025-12-08 06:10:26,043 [klippy_connection.py:_init_klippy_connection()] - GCode Output Subscribed
2025-12-08 06:10:28,018 [klippy_connection.py:_process_status_update()] - Klippy has shutdown
2025-12-08 06:10:28,028 [proc_stats.py:_handle_shutdown()] - 
Moonraker System Usage Statistics:
System Time: 1765145398.001405, Usage: 5.7%, Memory: 36172 kB
System Time: 1765145398.997930, Usage: 1.98%, Memory: 36172 kB
System Time: 1765145400.000421, Usage: 4.43%, Memory: 36172 kB
System Time: 1765145401.009879, Usage: 2.02%, Memory: 36172 kB
System Time: 1765145402.007725, Usage: 6.07%, Memory: 36172 kB
System Time: 1765145403.013508, Usage: 1.66%, Memory: 36172 kB
System Time: 1765145404.011714, Usage: 6.0%, Memory: 36172 kB
System Time: 1765145405.017285, Usage: 1.66%, Memory: 36172 kB
System Time: 1765145406.014807, Usage: 6.06%, Memory: 36172 kB
System Time: 1765145407.020691, Usage: 1.65%, Memory: 36172 kB
System Time: 1765145408.018166, Usage: 6.01%, Memory: 36172 kB
System Time: 1765145409.023179, Usage: 2.27%, Memory: 36172 kB
System Time: 1765145410.021363, Usage: 9.06%, Memory: 36172 kB
System Time: 1765145411.028223, Usage: 1.69%, Memory: 36172 kB
System Time: 1765145412.028724, Usage: 5.8%, Memory: 36172 kB
System Time: 1765145413.030965, Usage: 2.19%, Memory: 36172 kB
System Time: 1765145414.028127, Usage: 6.03%, Memory: 36172 kB
System Time: 1765145415.033605, Usage: 1.65%, Memory: 36172 kB
System Time: 1765145416.035431, Usage: 6.09%, Memory: 36172 kB
System Time: 1765145417.036670, Usage: 2.13%, Memory: 36172 kB
System Time: 1765145418.029317, Usage: 8.6%, Memory: 36172 kB
System Time: 1765145419.030344, Usage: 7.8%, Memory: 36172 kB
System Time: 1765145420.040816, Usage: 6.88%, Memory: 36172 kB
System Time: 1765145421.043065, Usage: 2.27%, Memory: 36172 kB
System Time: 1765145422.040486, Usage: 6.03%, Memory: 36172 kB
System Time: 1765145423.047514, Usage: 1.7%, Memory: 36172 kB
System Time: 1765145424.039627, Usage: 11.71%, Memory: 36172 kB
System Time: 1765145425.043203, Usage: 1.47%, Memory: 36172 kB
System Time: 1765145426.054766, Usage: 16.0%, Memory: 36172 kB
System Time: 1765145427.049809, Usage: 2.58%, Memory: 36172 kB
CPU Temperature: 34.09
2025-12-08 06:10:28,087 [klippy_connection.py:_check_ready()] - 
Internal error during ready callback: 'GCodeDispatch' object has no attribute '_build_status_commands'
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions