Hello, I am having trouble getting permissions for Jetson GPIO. I am able to import Jetson.GPIO, but when I run my file I get this error message:
raise RuntimeError(“The current user does not have permissions set to access the library functionalites. Please configure permissions or use the root user to run this. It is also possible that {} does not exist. Please check if that file is present.”.format(_GPIOCHIP_ROOT))
RuntimeError: The current user does not have permissions set to access the library functionalites. Please configure permissions or use the root user to run this. It is also possible that /dev/gpiochip0 does not exist. Please check if that file is present.
I am on Jetson nano with JetPack 4.6.1. I have tried both installing with pip and installing from source. I have checked that the 99-gpio.rules are in /etc/udev/rules.d. Can anyone help me solve this issue? I need to be able to access the GPIO pins through a python script if there is a better library/ one that is easier to install.
Just to test sudo, does “sudo ls” work, or does that command deny using ls via sudo?
Also, I want to mention that changing the GPIO is actually talking to a driver. If you have the incorrect GPIO device, or if that device belongs to a different carrier board or module layout, then the alternate driver would likely refuse. Make sure the rule or change you are using goes with the module and carrier board (for example, a third party carrier board with the same module would probably require a different device tree and a different GPIO designation to do the same thing).
Is this a VM or container (such as Docker)? If so, then this changes everything. The parent owner of a container or VM has to pass services through to the VM. Can you verify that “sudo” works within the VM or container? Mostly this sounds like a VM or Docker setup rather than a device tree or GPIO setup.