-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Plugin Version
https://github.com/LuxuSam/PhysicalButton/archive/refs/heads/82-bug-on-new-installation.zip
Describe the bug
I could not get any physical button combination to work. I could confirm that my buttons were configured correctly by using CLI tools on the RPi like raspi-gpio get 24.
I'm sorry for going off the rails at this point but it was kind of a ride.
TL; DR: get inside the octoprint venv and install
cd oprint
source bin/activate
pip3 install RPi.GPIO
- At first my version of gpiozero was incorrect (1.6.2), just like in [QUESTION] Can't get this to work #90. I installed your .zip plugin fix for that to get the correct version (2.0.1).
- Still nothing worked. So then I enabled debug logging for your plugin as you described in [QUESTION] Can't get this to work #90 (comment). That was very helpful. I could see that the plugin was starting up but not showing any activity. Scrolling up a bit in the startup process, I could see a wall of warnings from gpiozero about the pin factories not being installed.
2025-02-14 05:12:32,644 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:300:
PinFactoryFallback: Falling back from lgpio: No module named 'lgpio'
warnings.warn(
2025-02-14 05:12:32,683 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:300:
PinFactoryFallback: Falling back from rpigpio: No module named 'RPi'
warnings.warn(
2025-02-14 05:12:32,711 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:300:
PinFactoryFallback: Falling back from pigpio: No module named 'pigpio'
warnings.warn(
2025-02-14 05:12:32,898 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:297: NativePinFactoryFallback: Falling back to the experimental pin factory NativeFactory because no other pin factory could be loaded. For best results, install RPi.GPIO or pigpio. See https://gpiozero.readthedocs.io/en/stable/api_pins.html for more information.
warnings.warn(NativePinFactoryFallback(native_fallback_message))
- I tried installing lgpio but the next startup produced a different error. This is probably due to the ancient OS on my Pi so I did not try fixing it. I only know enough not to fool with GLIBC.
2025-02-14 05:14:30,394 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:300:
PinFactoryFallback: Falling back from lgpio: /lib/arm-linux-gnueabihf/libc.so.6:
version `GLIBC_2.33' not found (required by /home/pi/oprint/lib/python3.9/site-packages/_lgpio.cpython-39-arm-linux-gnueabihf.so)
warnings.warn(
- Next I tried pigpio. That gave a new error. I guess this library wants to have a daemon running. I didn't want to fix that either.
2025-02-14 05:16:10,763 - py.warnings - WARNING - /home/pi/oprint/lib/python3.9/site-packages/gpiozero/devices.py:300:
PinFactoryFallback: Falling back from pigpio: failed to connect to localhost:8888
warnings.warn(
- I finally found the right command to install RPi.GPIO in a way that OctoPi can use it. You cannot install this just as the pi user or system wide, it has to live inside octoprint's virtualenv. I put the commands at the beginning of this rant to fix that.
- Now my buttons work!!
If your plugin could install or warn that RPi.GPIO is missing that might help save someone some trouble in the future.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working