Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon RuntimeError: This module can only be run on a Raspberry Pi! #3094

Closed
gmoelter opened this issue Jan 22, 2024 · 1 comment
Closed

Addon RuntimeError: This module can only be run on a Raspberry Pi! #3094

gmoelter opened this issue Jan 22, 2024 · 1 comment
Labels
board/raspberrypi Raspberry Pi Boards bug

Comments

@gmoelter
Copy link

gmoelter commented Jan 22, 2024

Describe the issue you are experiencing

The addon uses the RPi.GPIO module. RPi.GPIO checks the existence and contents of /proc/device-tree/system/linux,revision and /proc/cpuinfo.
In HA OS 11.2, the /dev/cpuinfo file contains the necessary hardware and revision information. Since OS 11.3, however, information about hardware has been missing. That's why the hardware is not recognized as a Raspberry Pi.

What operating system image do you use?

rpi3-64 (Raspberry Pi 3 64-bit OS)

What version of Home Assistant Operating System is installed?

11.4

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. docker exec -it myaddon-containerid sh
  2. echo $(cat /proc/cpuinfo | grep "Hardware")
  3. echo $(cat /proc/cpuinfo | grep "Revision")
    ...

Anything in the Supervisor logs that might be useful for us?

no

Anything in the Host logs that might be useful for us?

no

System information

No response

Additional information

No response

@gmoelter gmoelter added the bug label Jan 22, 2024
@agners agners added the board/raspberrypi Raspberry Pi Boards label Jan 31, 2024
@sairon
Copy link
Member

sairon commented Feb 8, 2024

While the Revision is still present in cpuinfo, Hardware is not. This is the RPi's downstream Linux issue though, so it either needs to be fixed there, or the RPi.GPIO library needs to be updated to be ready for that change. The string has been removed in this commit, so I guess the latter option is the correct one, as RPi developers think this record is misleading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/raspberrypi Raspberry Pi Boards bug
Projects
None yet
Development

No branches or pull requests

3 participants