I’m trying the RPi solution from this site Push a Button and Play a Video
but when trying to run the script I get this errorlog
2020-03-02 18:04:43.068 T:1794110176 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
2020-03-02 18:04:44.193 T:1794110176 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<–
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type ‘exceptions.RuntimeError’>
Error Contents: No access to /dev/mem. Try running as root!
Traceback (most recent call last):
File “/home/osmc/Movies/HopnPop.py”, line 23, in
GPIO.setup(18,GPIO.OUT)
RuntimeError: No access to /dev/mem. Try running as root!
–>End of Python script error report<–
Anyone got an idea how to fix it?