Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Troubleshooting • Re: saves .xlsx file as pi but .csv file as root

$
0
0
If I put a flashing LED in the code I have to run it as root because if I don't I get this error.

Code:

pi@raspberrypiB:~ $  python w1probes.pyTraceback (most recent call last):  File "/home/pi/w1/w1probes.py", line 7, in <module>    GPIO.setup(11,GPIO.OUT)RuntimeError: No access to /dev/mem.  Try running as root!
I had a flashing LED in the code which I have now removed and I do not need to run as sudo so the .csv file is no longer root.

Statistics: Posted by sandy70 — Mon Mar 24, 2025 12:31 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles