/dev/mem with python executed though web - Raspberry Pi Forums


hello,
have simple python script controls gpio. when want execute script in terminal must type sudo ./mypython.py . when type ./mypython.py runtime error saying : no access /dev/mem. try running root!. want execute script web ( using webiopi server ). can't because script need executed root user ( if right ).

there ( easy :) ) way set myscript.py doesn't need executed root user ?

!

viewtopic.php?f=31&t=77742

there plenty more threads on this. recommend pigpio.


raspberrypi



Comments