I just flashed my Xavier NX dev kit with JetPack 5.0.2.
The problem is that I get an undefined symbol if I just try to import tensorrt. See below:
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/dist-packages/tensorrt/__init__.py", line 68, in <module>
from .tensorrt import *
ImportError: /lib/aarch64-linux-gnu/libnvinfer.so.8: undefined symbol: _ZN5nvdla8IProfile17setUseSoftMaxOptzEb
Error is reproducible by just upgrading to JetPack 5.0.2 and trying to import tensorrt
We cannot reproduce this issue in our environment.
Could you double-check if everything is well-installed?
$ python3
Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorrt
>>> tensorrt.__version__
'8.4.1.5'
>>>
What package(s) should I check that would cause this error?
Here’s what I have installed:
ii python3-libnvinfer 8.4.1-1+cuda11.4 arm64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 8.4.1-1+cuda11.4 arm64 Python 3 development package for TensorRT
ii tensorrt 8.4.1.5-1+cuda11.4 arm64 Meta package for TensorRT
FYI, I just re-flashed my board using the SD card method and things work. Previously I was upgrading from the developer preview using the method outlined here: Jetpack 5.0.2 with Jetson Linux 35.1 is now live!