Linked Questions

1
vote
0answers
75 views

Why do I need to run GPIO as root even with GPIO Ver 0.6.2? [duplicate]

Trying to use GPIO in Python, but it only works if I change to root. Why? The description for GPIO Ver 0.6.2 indicates that root is no longer needed?
0
votes
1answer
4k views

RuntimeError: No access to /dev/mem. Try running as root!

I'm new to RPI and to Python 3 and I have a problem running this code on a RPI 2. import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) redled = 4 greenled = 26 GPIO....
0
votes
1answer
5k views

Accessing gpio not working as non-root. “Can't open /dev/mem: : Permission denied”

I am attempting to get a c++ program to access the gpio as non-root. I am on a raspi 2 running Jessie. I followed the instructions on issue: Access GPIO pins without root. No access to /dev/mem. Try ...
0
votes
1answer
1k views

RuntimeError: No access to /dev/mem

I'm using the PXfmini with the raspberrypi3 for a project and I need to use mavros and python code. My operative system is Frambuesa. I created the catkin workspace and I tested the c++ file ...
3
votes
1answer
2k views

What sets ownership and privileges on /dev/gpiomem?

This post has a nice solution for using GPIO (and I2C) without root-privileges. This is useful if you're running an (web) app in a virtual environment as some ve-user, so as to shield off your whole ...
0
votes
2answers
614 views

Accessing GPIO from lighttpd server not working

I have installed lighttpd on the Pi, and configured it to run web.py using fastcgi. Accessing python scripts from the browser works. But when I add the code to access GPIO, it fails with the following:...
1
vote
0answers
714 views

Set permissions and group for /dev/gpiomem permanently [duplicate]

I need to allow my user access to the GPIO pins and found following solution. Access GPIO pins without root. No access to /dev/mem. Try running as root! This works perfectly. All I need to do is ...
0
votes
2answers
282 views

Allowing uwsgi to make GPIO calls

I've got a Raspberry Pi Zero W acting as a Flask python server that listens for webhooks, then runs a function to turn on a motor until the GPIO pins read a certain combination of inputs. I used to ...
1
vote
0answers
352 views

Permission issue accessing /dev/mem – gpio node-rpio

I am somewhat of a newbie, so please let me know if there is a way I can go about this better. I'm working on doing some LED coding (WS8201 strip) with node.js and it appears I am having trouble ...
0
votes
0answers
165 views

Python, RpiZero and gpiozero

I'm coding on Rpi3 using python3. When trying to run a code, containing a gpiozero lib - it fails when running on RpiZero, while succeeds on Rpi3. RpiZero contains gpiozero lib Trying to find the ...