Hello, need to run my python program without sudo. But I have an error !
Could anyone help ?
python /home/nvidia/catkin_ws/src/alfred_eyes/src/RandomOledEyes.py
Traceback (most recent call last):
File "/home/nvidia/catkin_ws/src/alfred_eyes/src/RandomOledEyes.py", line 32, in <module>
serial = spi(port=3, device=0, bus_speed_hz=8000000, transfer_size=2048, gpio=GPIO, gpio_DC=1, gpio_RST=2)
File "/usr/local/lib/python2.7/dist-packages/luma/core/interface/serial.py", line 253, in __init__
bitbang.__init__(self, gpio, transfer_size, DC=gpio_DC, RST=gpio_RST)
File "/usr/local/lib/python2.7/dist-packages/luma/core/interface/serial.py", line 153, in __init__
self._DC = self._configure(kwargs.get("DC"))
File "/usr/local/lib/python2.7/dist-packages/luma/core/interface/serial.py", line 164, in _configure
self._gpio.setup(pin, self._gpio.OUT)
File "/usr/local/lib/python2.7/dist-packages/OPi/GPIO.py", line 366, in setup
sysfs.direction(pin, direction)
File "/usr/local/lib/python2.7/dist-packages/OPi/sysfs.py", line 32, in direction
with open(path, "w") as fp:
IOError: [Errno 13] Permission denied: '/sys/class/gpio/gpio298/direction'
Hello JerryChang,
Yes, it would be easier for me to use the python API from nvidia, but I can’t find documentation !!!
Some answers, in this forum helped me with doc names, but couldn’t find them !
Do you know where i could find TX2 GPIO python API doc ?
Thanks a lot (And thanks NVIDIA for this marvellous board ! → kisses from Alfred, my robot !)