julianschill / klipper-led_effect

LED effects plugin for klipper
GNU General Public License v3.0
720 stars 120 forks source link

Cannot start Klipper #224

Closed jankorous closed 1 month ago

jankorous commented 1 month ago

Unfortunately I had to reinstall Klipper today. After updating everything and installing all the components I used before installing, I ran into problems with LED Effects:

Unhandled exception during ready callback
Traceback (most recent call last):
  File "/home/biqu/klipper/klippy/klippy.py", line 164, in _connect
    cb()
  File "/home/biqu/klipper/klippy/extras/led_effect.py", line 397, in _handle_ready
    for i in range(ledChain.led_helper.get_led_count()):
AttributeError: 'LEDHelper' object has no attribute 'get_led_count'
Transition to shutdown state: Internal error during ready callback: 'LEDHelper' object has no attribute 'get_led_count'

led_effect in v0.0.12-0-g03a46eab version, klipper v0.12.0-315-g8f361a15, mainsail v2.12.0.

Zarrsito commented 1 month ago

i already reported this bug,you should # your neopixel setup for the moment so u can run klipper again =)

ken4157 commented 1 month ago

https://github.com/julianschill/klipper-led_effect/issues/223

the led_effect.py needs to be edited, it is best to disable led_effect in your config file until led_effect.py has been edited

czechbol commented 1 month ago

FYI, if you are familiar with the command line and git, you could run

git reset --hard ef75346861fdf94d952a4e887fb843d215b00631

in the klipper folder to reset klipper to the state just before the breaking change and avoid updating it until this module gets patched. Restart the printer afterwards and you should be good to go.

Just be careful. As a rule of thumb, if you don't understand what I wrote, just # the neopixel config as @Zarrsito mentioned. It's easier to fix than a broken klipper installation.

rmilyard commented 1 month ago

I am having same issue but not sure how to fix this.

julianschill commented 1 month ago

Either roll back the Klipper update or comment out all led_effect instances in your config.

rmilyard commented 1 month ago

Either roll back the Klipper update or comment out all led_effect instances in your config.

I commented it out for the moment.

ken4157 commented 1 month ago

https://www.facebook.com/100007992853001/videos/549489760803038/

roll back your update until it is resolved

julianschill commented 1 month ago

Has been fixed now.

thetic commented 1 month ago

I'm still experiencing failures:

Config error
Traceback (most recent call last):
  File "/home/pi/klipper/klippy/klippy.py", line 130, in _connect
    self._read_config()
  File "/home/pi/klipper/klippy/klippy.py", line 123, in _read_config
    self.load_object(config, section_config.get_name(), None)
  File "/home/pi/klipper/klippy/klippy.py", line 112, in load_object
    self.objects[section] = init_func(config.getsection(section))
  File "/home/pi/klipper/klippy/extras/virtual_leds.py", line 103, in load_config_prefix
    return PrinterVirtualLeds(config)
  File "/home/pi/klipper/klippy/extras/virtual_leds.py", line 41, in __init__
    pled = printer.load_object(config, "led")
  File "/home/pi/klipper/klippy/klippy.py", line 111, in load_object
    raise self.config_error("Unable to load module '%s'" % (section,))
configparser.Error: Unable to load module 'led'
webhooks client 547455185056: New connection
webhooks client 547455185056: Client info {'program': 'Moonraker', 'version': 'v0.9.3-0-g71f9e67'}
julianschill commented 1 month ago

@thetic Your error is not related to LED effects, but to "Virtual LEDs".

thetic commented 1 month ago

My mistake. Thank you