Arksine / moonraker

Web API Server for Klipper
https://moonraker.readthedocs.io
GNU General Public License v3.0
1.08k stars 413 forks source link

Spoolman announcement thread not registering #762

Closed gschmidl closed 11 months ago

gschmidl commented 11 months ago

What happened

Installed the docker image for spoolman from ghcr.io/donkie/spoolman:latest

Added this configuration to moonraker.conf:

[spoolman]
server: http://192.168.1.178:7912
sync_rate: 5

Leads to this error:

2023-12-05 20:59:29,881 [server.py:load_component()] - Unable to load component: (spoolman)
Traceback (most recent call last):
  File "/usr/data/moonraker/moonraker/moonraker/server.py", line 274, in load_component
    component = load_func(config)
  File "/usr/data/moonraker/moonraker/moonraker/components/spoolman.py", line 203, in load_component
    return SpoolManager(config)
  File "/usr/data/moonraker/moonraker/moonraker/components/spoolman.py", line 48, in __init__
    announcements.register_feed("spoolman")
AttributeError: 'Announcements' object has no attribute 'register_feed'

Web access to spoolman at the configured URL works.

Client

Mainsail, Fluidd

Browser

Microsoft Edge

How to reproduce

Add configuration pointing at a Spoolman docker container.

Additional information

I tried to cut it down to the important bit.

moonraker.log

gschmidl commented 11 months ago

It started working randomly. Sorry about that.

laufantn commented 7 months ago

i have the same problem, i have tried several times but nothing has helped. i use klipper / fluidd on the creality sonic pad.

Arksine commented 7 months ago

The error in the OP is due running an instance of Moonraker where the Python source is out of sync....the version of announcements.py is out of date. AFAIK the sonic pad runs a fork of Moonraker, so Creality will need to resolve issues with the spoolman integration.