-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Hi,
I just got a Pi 5 and the first HAT i mounted was a Blinkt i had laying around.
I did a fresh Pi OS install, and ran the installation script
I first got this error
error: externally-managed-environment
and the installation stopped, but i installed the apt package and the module seems to show up in python 3
The problem is that when i call the show() function, there is what seems to be a permissions error to /dev/mem.
Traceback (most recent call last): File "/home/pi/Pimoroni/blinkt/examples/rainbow.py", line 22, in <module> show() File "/usr/lib/python3/dist-packages/blinkt.py", line 76, in show GPIO.setup(DAT, GPIO.OUT) RuntimeError: No access to /dev/mem. Try running as root!
Running as root does nothing. There is no error but nothing lights up
i read that it could be something related to /dev/gpiomem and i saw that at least on the Pi 5 (because of the RP1, perhaps?) , there is no gpiomem but just gpiomem0 through gpiomem4, so maybe this could also be the reason
Update: tried on my Pi Zero 2 and in fact there is just gpiomem on there. Pi5 has 5 different "files"
Am i doing something wrong or is there some compatibility problem?