Skip to content

CM5 or rPI 5 GPIOs are not supported because rpi.GPIO lib does not support it #848

@NilsRo

Description

@NilsRo

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

octoprint-systeminfo-20250316145347.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions