How to get Jetson.GPIO visible from within a container

Hi everybody, I’m running Python examples (recognition and detectnet) and modifying them inside the directory “my-recognition-python”. I’m using a container for this.

I’d want to add “import Jetson.GPIO as GPIO” to my scripts, to test digital output, but the package is not visible from within the container.

I apologize for the question, 'cause i’m a Linux beginner: is there a (detailed) method to fix this issue? I’m reading about giving root privileges to container, but --privileged flag is not recognized.

Thanks in advance!

hello rossi1,

please also refer to Topic 144550, for several ways to access GPIOs. such as, kernel APIs, python scripts, C++ samples.