tensorrtx icon indicating copy to clipboard operation
tensorrtx copied to clipboard

ImportError: libnvinfer.so.8: cannot open shared object file: No such file or directory

Open twd19990423 opened this issue 1 year ago • 4 comments

Env

  • GPU, 1080ti
  • OS, e.g. Ubuntu18.04
  • Cuda version 11.1
  • TensorRT 8.2.5.1

The reasoning of the C version is normal,However, the python version will report this error。 The same device and TensorRT version are the same。Looking forward to hearing from you。Thanks

Traceback (most recent call last): File "/mnt/workspace/rv2d/acus_workspace/twd_workspace/tensorrtx-master/yolov8/yolov8_seg_trt.py", line 15, in import tensorrt as trt File "/mnt/workspace/rv2d/anaconda3/envs/pytorch/lib/python3.9/site-packages/tensorrt/init.py", line 67, in from .tensorrt import * ImportError: libnvinfer.so.8: cannot open shared object file: No such file or directory

twd19990423 avatar Apr 25 '24 08:04 twd19990423

The tensorrt-py and the tensorrt c++ need to be the same version.

wang-xinyu avatar Apr 26 '24 04:04 wang-xinyu

微信截图_20240426175320 微信截图_20240426175404 Thanks for your reply。 My C version is consistent with the Python version of Tensorrt, is this the version you said is consistent Or did I misunderstand

twd19990423 avatar Apr 26 '24 09:04 twd19990423

Set LD_LIBRARY_PATH, put the lib path of tensorrt into this ENV.

wang-xinyu avatar Apr 28 '24 06:04 wang-xinyu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 06 '24 01:07 stale[bot]