Jetson Nano permissions for GPIO pins

Hello,
I am trying to add a user to be able to use the gpio pins on the jetson nano. I have followed the instructions on other posts from this forum but I have had no luck.

sudo groupadd -f -r gpio
sudo usermod -a -G gpio jetson

I keep getting this same error message:

“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”.

I have been able to use the gpio when I set the user to root but I really want to be able to add other users to the group.

Thank you.

Hi iredeledayo,

Are you using the devkit or custom board for Jetson Nano?
What’s your Jetpack version in use?

Please help to check if the following thread could help with your permission issue.
Permission issue · Issue #20 · NVIDIA/jetson-gpio · GitHub

I am using the Jetson nano devkit.
My Jetpack version is - nvidia-jetpack Version: 4.6.3-b17

I have tried the solution in the link you mentioned and it did not work for me.

here is the full error message that I get after trying to run my script:

Traceback (most recent call last):
  File "/home/jetson/Documents/test.py", line 1, in <module>
    import RPi.GPIO as GPIO
  File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 1, in <module>
    from Jetson.GPIO import *
  File "/usr/lib/python3/dist-packages/Jetson/GPIO/__init__.py", line 1, in <module>
    from .gpio import *
  File "/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py", line 33, in <module>
    raise RuntimeError("The current user does not have permissions set to "
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

Do you test it with test.py?

What’s the current permission for this file?

ls -l /home/jetson/Documents/

Could you help to provide the detailed steps to reproduce this permission issue?

Here is what i got after running the command:

-rw-rw-r-- 1 jetson jetson 756 Jun 9 17:40 test.py

I have noticed that when I switch to the admin user (sudo su) I am able to run the script. But I still want to know why I can’t add users to the the gpio permissions.

Could it work if you change the test.py permission to 777?

$sudo chmod 777 /home/jetson/Documents/test.py

Do you refer to every steps in Setting User Permissions?

did you also add the udev rules

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.