-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Description
AS discussed here https://forums.raspberrypi.com/viewtopic.php?t=361218 the installed GPIO lib does not support PI5/CM5. This leads into issues with all plugins using it.
2025-03-16 15:02:48,769 - octoprint.plugins.enclosure - INFO - mqtt helpers not found. mqtt functions won't work
2025-03-16 15:02:48,771 - octoprint.plugins.enclosure - INFO - Setting GPIO pin 5 as OUTPUT with initial value: 1
2025-03-16 15:02:48,772 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on log_error. Arguments:
('Cannot determine SOC peripheral base address',)
Traceback (most recent call last):
File "/opt/octopi/oprint/lib/python3.11/site-packages/octoprint_enclosure/__init__.py", line 1570, in configure_gpio
GPIO.setup(pin, GPIO.OUT, initial=initial_value)
RuntimeError: Cannot determine SOC peripheral base address
2025-03-16 15:02:48,777 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on log_error. Arguments:
('You must setup() the GPIO channel first',)
Traceback (most recent call last):
File "/opt/octopi/oprint/lib/python3.11/site-packages/octoprint_enclosure/__init__.py", line 953, in update_ui_outputs
val = GPIO.input(pin) if not output['active_low'] else (not GPIO.input(pin))
^^^^^^^^^^^^^^^
RuntimeError: You must setup() the GPIO channel first
2025-03-16 15:02:48,779 - octoprint.plugins.octopod - INFO - OctoPod loaded!
2025-03-16 15:02:48,810 - octoprint.plugins.prettygcode - INFO - Pretty GCode.
It could be perhaps solved using another library as mentioned in the forum post above or pre-installing this package: https://github.com/phylax2020/RPi.GPIO
Metadata
Metadata
Assignees
Labels
No labels