Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Same permissions problem #82

Open
sumitbounthiyal opened this issue Mar 29, 2023 · 7 comments
Open

Same permissions problem #82

sumitbounthiyal opened this issue Mar 29, 2023 · 7 comments

Comments

@sumitbounthiyal
Copy link

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
Copy link

You can run command :
$ sudo python3 your_file.py

in stead:
$ python3 your_file.py

@sumitbounthiyal
Copy link
Author

Uploading 20230329_231144.jpg…
Same error is coming with python3 also

@sumitbounthiyal
Copy link
Author

My problem is similar like #2

@mdnayeemsardar
Copy link

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
Copy link
Collaborator

Did you install the udev rules before running the command

@anhmiuhv anhmiuhv closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2023
@bhawkins-jpl
Copy link

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
Copy link
Collaborator

Ok I can look into that

@anhmiuhv anhmiuhv reopened this Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants