ModuleNotFoundError: No module named 'jetson'

Well today I am trying to run a pre-trained model I made a while ago. I got jetpack4.4 installed, and through Code-OSS I was running my python script for object detection. When I try running I receive this error:

jb@jb-desktop:~/catkin_ws/src$ /usr/bin/python3.7 /home/jb/catkin_ws/src/jetson-inference/scripts/eraser-model.py
Traceback (most recent call last):
File “/home/jb/catkin_ws/src/jetson-inference/scripts/eraser-model.py”, line 1, in
import jetson.inference
ModuleNotFoundError: No module named ‘jetson’

Now looking at it, it looks like it is trying to use Python 3.7 but my Python3.6.9 is the one that has jetson _inference. Any suggestions?

By going to the command pallette in Code-OSS, I changed this with:
Python: select interpreter (Changed to 3.6)

It works now

Glad to know it’s working, thanks for your sharing.

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