pimoroni / blinkt

Python Library for Blinkt; 8 APA102 LEDs for your Raspberry Pi
https://shop.pimoroni.com/products/blinkt
MIT License
314 stars 103 forks source link

RuntimeError: Not running on a RPi! on DietPi #85

Closed ghost closed 4 years ago

ghost commented 4 years ago

The title pretty much. I use DietPi and it shows this error. Raspberry Pi 4B+.

dietpi@raspi:~/Pimoroni/blinkt/examples$ python3 cpu_load.py 
Traceback (most recent call last):
  File "cpu_load.py", line 31, in <module>
    show_graph(v, 255, 255, 255)
  File "cpu_load.py", line 25, in show_graph
    blinkt.show()
  File "/usr/lib/python3/dist-packages/blinkt.py", line 76, in show
    GPIO.setup(DAT, GPIO.OUT)
RuntimeError: Not running on a RPi!
druck13 commented 4 years ago

On 09/05/2020 11:28, gogotz wrote:

The title pretty much. I use DietPi and it shows this error. Raspberry Pi 4B+.

|dietpi@raspi:~/Pimoroni/blinkt/examples$ python3 cpu_load.py Traceback (most recent call last): File "cpu_load.py", line 31, in show_graph(v, 255, 255, 255) File "cpu_load.py", line 25, in show_graph blinkt.show() File "/usr/lib/python3/dist-packages/blinkt.py", line 76, in show GPIO.setup(DAT, GPIO.OUT) RuntimeError: Not running on a RPi! |

This might help https://github.com/adafruit/Adafruit_Blinka/issues/150

Cheers ---David -- Email: druck@druck.org.uk Phone: +44-(0)7974 108301

ghost commented 4 years ago

Adding the user to the gpio group fixed the issue, thank you!