Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
twd19990423 opened this issue Apr 25, 2024 · 3 comments

Comments

@twd19990423
Copy link

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

@wang-xinyu
Copy link
Owner

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

@twd19990423
Copy link
Author

微信截图_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

@wang-xinyu
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants