What is the problem?
I exchanged my Raspberry PI 4b with a CM5 Module to get a SSD and also ext. Ant. With OctoPI 1.1.0 (beta) created also for CM5 modules it breaks GPIO functionality of many plugins like enclosure or GPIO-Status. This seems caused by the standard library RPi.GPIO that is not enhanced anymore but not sure if that is 100% true as I cannot get it running again installing drop-in replacements.
Created a ticket for OctoPI as a workaround should be integrated there if possible to support old plugins out-of-the-box. CM5 or rPI 5 GPIOs are not supported because RPi.GPIO lib does not support it Β· Issue #848 Β· guysoft/OctoPi
2025-03-16 15:02:48,758 - octoprint.plugins.SlicerEstimator - DEBUG - Event received: ClientAuthed
2025-03-16 15:02:48,758 - octoprint.plugins.SlicerEstimator - DEBUG - Payload: {'username': 'octopi', 'remoteAddress': '192.168.177.109'}
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
What did you already try to solve it?
Tried to install an drop-in replacement like GitHub - phylax2020/RPi.GPIO: RPi.GPIO wrapper for WiringPi or RPi.IGPIO on system level with APT and also in the venv with PIP without success.
Have you tried running in safe mode?
No, as it is related to the plugins or e.g. Debian (OctoPI) installation.
Did running in safe mode solve the problem?
Systeminfo Bundle
octoprint-systeminfo-20250316145347.zip (30.7 KB)
Additional information about your setup
OctoPrint 1.10.3, OctoPI 1.1.0 beta - build 10.03.2025, Raspberry CM5 Lite