Failed to add edge detection permission
A Python module to control the GPIO on a Raspberry Pi
Brought to you by:
croston
Hi, I am running mopidy service script with GPIO. I have made "sudo apt-get update && apt-get upgrade". After this my script no longer works.
I am getting error:
ERROR [1032:Thread-1] root: Failed to add edge detection
On line:
GPIO.add_event_detect(self.KEY_PIN, GPIO.RISING, callback=self.onButton)
I susspect that after upgrade I need to add permission for something, any help?
After update I need to change file:
/lib/systemd/system/mopidy.service
I changed user to root
[Service]
User=root
Service running ok. Great hack. Hate premissions. Freeeedom! :D
It may be a misconfiguration covered by a fix at https://www.raspberrypi.org/forums/viewtopic.php?p=1161852#p1161852