Import Error: libnvinfer.so.5

Description

I installed jetbot from ‘GitHub - NVIDIA-AI-IOT/jetbot: An educational AI robot based on NVIDIA Jetson Nano.’. When i use ‘from jetbot import ObjectDetector’ and ‘model = ObjectDetector(‘ssd_mobilenet_v2_coco.engine’)’ for object detection, a error occur.
:OSError: libnvinfer.so.5: cannot open shared object file: No such file or directory

Environment

TensorRT Version: 7.1.3.0
CUDA Version: 10.2
Operating System + Version: Ubuntu 18.04.5 LTS (GNU/Linux 4.9.201-tegra aarch64)
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable): 2.4.0+nv21.3
PyTorch Version (if applicable): 1.6.0
jetbot: 0.3.0

Steps To Reproduce

import jetbot
from jetbot import ObjectDetector
model = ObjectDetector(‘ssd_mobilenet_v2_coco.engine’)

  • Full traceback of errors encountered
    Python 3.6.9 (default, Jan 26 2021, 15:33:00)
    [GCC 8.4.0] on linux
    Type “help”, “copyright”, “credits” or “license” for more information.

import jetbot
2021-04-19 17:45:44.299976: I tensorflow/stream_executor/platform/default/dso_loader.cc:49] Successfully opened dynamic library libcudart.so.10.2
from jetbot import ObjectDetector
model = ObjectDetector(‘ssd_mobilenet_v2_coco.engine’)
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/object_detection.py”, line 26, in init
load_plugins()
File “/usr/local/lib/python3.6/dist-packages/jetbot-0.3.0-py3.6.egg/jetbot/ssd_tensorrt/ssd_tensorrt.py”, line 57, in load_plugins
ctypes.CDLL(library_path)
File “/usr/lib/python3.6/ctypes/init.py”, line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvinfer.so.5: cannot open shared object file: No such file or directory
Please somebody help me

Hi @Ant_IN_Cloud,

Looks like you’ve not installed all dependencies required. We request you to please make sure all dependencies installed correctly. For your reference,

Thank you.

Thank you very much for your reply, this problem has been solved. That`s because the version error of jetbot, the correct version of jetbot is 0.4.3, we install the version is 0.3.0.

1 Like