1

This question already has an answer here:

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?

marked as duplicate by Jacobm001, goldilocks May 24 '16 at 2:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Could you edit your question and add the output of cat /etc/os-release and uname -a? – joan May 22 '16 at 6:06
  • 1
    look here: raspberrypi.stackexchange.com/questions/40105/…, I think you need to change the access rights to /dev/mem – lexu May 22 '16 at 9:06
  • @lexu To use RPi.GPIO without being root /dev/gpiomem needs to exist with the correct permissions and the user (default pi) needs to be a member of group gpio. – joan May 22 '16 at 10:09
  • This solves the immediate problem but it must be redone after a reboot, how can it be done to survive a reboot? – user46915 May 24 '16 at 1:30

Browse other questions tagged or ask your own question.