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

ModuleNotFoundError: Adding Jetson.GPIO module to docker container #1907

Open
aidangallagher2024 opened this issue Oct 26, 2024 · 0 comments

Comments

@aidangallagher2024
Copy link

Hello Dusty,

I am trying to build a script that both uses the jetson-inference library from the docker container while also having access to the GPIO pins. I found the Jetson.GPIO file location and added this to the docker container with:
docker/run.sh --volume /home/group8/jetson-inference/python/kill-weed/weed-detect.py:/jetson-inference/python/kill-weed/weed-detect.py --volume /usr/lib/python3/dist-packages/Jetson/GPIO/:/jetson-inference/usr/lib/python3/dist-packages/Jetson/GPIO/

This is the default path provided with the SD card image that was flashed to the Jetson and I was able to make a sample program that uses the Jetson.GPIO module outside of the docker container. I also tried adding a pip install run message in the docker file, but this did not work either. I copied the /usr/ directory to the jetson-inference folder so that the host and container paths in the --volume argument were consistent. Could this have caused any issues? Any help on how to solve the ModuleNotFoundError would be greatly appreciated.
image
image

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

1 participant