NVIDIA / jetson-gpio

A Python library that enables the use of Jetson's GPIOs
MIT License
936 stars 261 forks source link

Same permissions problem #82

Open sumitbounthiyal opened 1 year ago

sumitbounthiyal commented 1 year ago

import Jetson.GPIO Traceback (most recent call last): File "", line 1, in File "/home/nvidia/.virtualenvs/cv/lib/python3.5/site-packages/Jetson/GPIO/init.py", line 1, in from .gpio import * File "/home/nvidia/.virtualenvs/cv/lib/python3.5/site-packages/Jetson/GPIO/gpio.py", line 33, in 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

I am having the same problem with the code when I run sample code from File. Please help me on this.

nghungthinh commented 1 year ago

You can run command : $ sudo python3 your_file.py

in stead: $ python3 your_file.py

sumitbounthiyal commented 1 year ago

![Uploading 20230329_231144.jpg…]() Same error is coming with python3 also

sumitbounthiyal commented 1 year ago

My problem is similar like #2

mdnayeemsardar commented 1 year ago

I am getting the same error. gotta do something... im gonna try rerun this package with its previous version. will let u know when things get working for me.. admin pls respond to this bug

anhmiuhv commented 1 year ago

Did you install the udev rules before running the command

bhawkins-jpl commented 8 months ago

I did add the user group and install the udev rules, but they didn't seem to work on my Xavier dev board. Changing the rule to

SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", \
    GROUP="gpio", MODE="0660"

seems to solve the problem. I'm not sure why the shell commands in the provided rule don't work.

anhmiuhv commented 8 months ago

Ok I can look into that