An error occurred while running jetson-inference

When I run the instance " Coding Your Own Image Recognition Program (Python)" in “jetson-inference”, the following error occurs:
Traceback (most recent call last):
File “./my_recognition.py”, line 3, in
import jetson.inference
File “/usr/lib/python3.6/dist-packages/jetson/inference/init.py”, line 5, in
import jetson.utils
File “/usr/lib/python3.6/dist-packages/jetson/utils/init.py”, line 4, in
from jetson_utils_python import *
ImportError: /usr/lib/python3.6/dist-packages/jetson_utils_python.so: undefined symbol: _Z12cudaDrawRectPvS_mm11imageFormatiiiiRK6float4S3_f

Hi,

Have you checkout the branch based on your BSP version first?
For example, with JetPack 4.6, you need to check out the L4T-R32.7.1 branch.

Thanks.

I followed the steps in the following URL “GitHub - dusty-nv/jetson-inference: Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
Almost all software is installed in the official recommended version, I do not know whether there is any version problem

Hi @djqabcdefg, can you try running these steps again:

cd jetson-inference
mkdir build
cd build
cmake ../
make -j$(nproc)
sudo make install
sudo ldconfig

Note the sudo make install && sudo ldconfig at the end, if you haven’t already done those.

If you continue having issues, you could also try running the jetson-inference container, which has these all pre-installed: https://github.com/dusty-nv/jetson-inference/blob/master/docs/aux-docker.md

I’ve run all of these steps,I’ll try running the docker container

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