Requesting Assistance with Python Script Development for NVIDIA Jetson Nano, Please Help!

Seeking help in developing Python scripts for the NVIDIA Jetson Nano. I’m working on a python program that can execute a system command to open a static custom detection model. I’m relatively new to python (I’ve been using google gemini for python help but I need an actual person) and I’ve started the program by mounting it to the docker container, that way, the file is saved. I am encountering challenges in creating a python program that can execute system commands, specifically executing the command for a static custom detection model with pictures I’ve already taken.

document.txt (2.1 KB)

Hi @daloeza, in your subprocess command you are launching, you are trying to run a C++ binary (detectnet) with python3 interpreter (which should run .py files - aka detectnet.py)

Also if you prepend your command with python3, that process’ working directory needs to be where the script resides, or refer to its path. Instead you could drop the python3 off the front and just refer to detectnet.py (which already includes #!/usr/bin/env python3 at the top)

Also you will probably need to adjust your paths to your models/ect so that they refer to those mounted into the containers.

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