Deepstream-app: error while loading shared libraries: libnvinfer.so.6: cannot open shared object file + ubuntu 18.04

Hi,

Here is my configuration:
Ubuntu 18.04
Nvidia GPU: GeForce GTX 1050 Ti
Driver Version: 440.64
Gstreamer: 1.14.5
Nvidia Driver: 440
Cuda: 10.2
TensorRT: 7.0.0
CuDNN: 7.6.5
TensorFlow: 2.1.0
DeepStream: 4.0

When I try command ‘deepstream-app’, I get below error:

deepstream-app: error while loading shared libraries: libnvinfer.so.6: cannot open shared object file: No such file or directory

Output of dpkg -l | grep TensorRT:
ii graphsurgeon-tf 7.0.0-1+cuda10.2 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-bin 7.0.0-1+cuda10.2 amd64 TensorRT binaries
ii libnvinfer-dev 7.0.0-1+cuda10.2 amd64 TensorRT development libraries and headers
ii libnvinfer-doc 7.0.0-1+cuda10.2 all TensorRT documentation
ii libnvinfer-plugin-dev 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-plugin7 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-samples 7.0.0-1+cuda10.2 all TensorRT samples
ii libnvinfer7 7.0.0-1+cuda10.2 amd64 TensorRT runtime libraries
ii libnvonnxparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvonnxparsers7 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii libnvparsers7 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii python3-libnvinfer 7.0.0-1+cuda10.2 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python 3 development package for TensorRT
ii tensorrt 7.0.0.11-1+cuda10.2 amd64 Meta package of TensorRT
ii uff-converter-tf 7.0.0-1+cuda10.2 amd64 UFF converter for TensorRT package

Output of 'dpkg -l | grep libnvinfer':
ii libnvinfer-bin 7.0.0-1+cuda10.2 amd64 TensorRT binaries
ii libnvinfer-dev 7.0.0-1+cuda10.2 amd64 TensorRT development libraries and headers
ii libnvinfer-doc 7.0.0-1+cuda10.2 all TensorRT documentation
ii libnvinfer-plugin-dev 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-plugin7 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-samples 7.0.0-1+cuda10.2 all TensorRT samples
ii libnvinfer7 7.0.0-1+cuda10.2 amd64 TensorRT runtime libraries
ii python-libnvinfer 7.0.0-1+cuda10.2 amd64 Python bindings for TensorRT
ii python3-libnvinfer 7.0.0-1+cuda10.2 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python 3 development package for TensorRT

LD_LIBRARY_PATH : :/usr/local/cuda/lib64/

Please help.

Any reply on this?

1 Like

Please check README first for environments setup, your TensorRT in system is not compatible with the DS version you are using.
TensorRT: 7.0.0 your system
deepstream-app: error while loading shared libraries: libnvinfer.so.6: cannot open shared object file:
DS version you used needs 6.x

Hi amycao,

I’m using deepstream 4.0.2 and as per the per the docs, here https://docs.nvidia.com/metropolis/deepstream/dev-guide/, TensorRT 6.0.1 or later would work fro dGPU.
Do I still need to try it with TensorRT 6.x? Not sure if I am missing any steps from that guide, I checked many times.

I used deepstream-4.0_4.0.2-1_amd64.deb package for installation.

TensorRT 6.0.1

Download and install TensorRT 6.0.1 from nvidia website
https://developer.nvidia.com/nvidia-tensorrt-download

Please try with TRT version 6.0.1

I have uninstalled TensorRT 7.x and downloaded the version 6.0.1.8. Now when I’m trying to install it as per the instructions here https://docs.nvidia.com/deeplearning/sdk/tensorrt-archived/tensorrt-601/tensorrt-install-guide/index.html, I am seeing it’s downloading and installing TensorRT 7.x related libraries. Here are my steps:

os="ubuntu1804"
tag="cuda10.2-trt6.0.1.8-ga-20191108"
sudo dpkg -i nv-tensorrt-repo-${os}-${tag}_1-1_amd64.deb
sudo apt-key add /var/nv-tensorrt-repo-${tag}/7fa2af80.pub
sudo apt-get update
sudo apt-get install tensorrt

After this, I’m seeing the output as -
> The following additional packages will be installed:

  libnvinfer-bin libnvinfer-dev libnvinfer-doc libnvinfer-plugin-dev libnvinfer-plugin7 libnvinfer-samples libnvinfer7 libnvonnxparsers-dev libnvonnxparsers7 libnvparsers-dev libnvparsers7
The following NEW packages will be installed:
  libnvinfer-bin libnvinfer-dev libnvinfer-doc libnvinfer-plugin-dev libnvinfer-plugin7 libnvinfer-samples libnvinfer7 libnvonnxparsers-dev libnvonnxparsers7 libnvparsers-dev libnvparsers7 tensorrt

And after completing the next steps, the output of dpkg -l | grep TensorRT is:
ii graphsurgeon-tf 7.0.0-1+cuda10.2 amd64 GraphSurgeon for TensorRT package
ii libnvinfer-bin 7.0.0-1+cuda10.2 amd64 TensorRT binaries
ii libnvinfer-dev 7.0.0-1+cuda10.2 amd64 TensorRT development libraries and headers
ii libnvinfer-doc 7.0.0-1+cuda10.2 all TensorRT documentation
ii libnvinfer-plugin-dev 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-plugin7 7.0.0-1+cuda10.2 amd64 TensorRT plugin libraries
ii libnvinfer-samples 7.0.0-1+cuda10.2 all TensorRT samples
ii libnvinfer7 7.0.0-1+cuda10.2 amd64 TensorRT runtime libraries
ii libnvonnxparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvonnxparsers7 7.0.0-1+cuda10.2 amd64 TensorRT ONNX libraries
ii libnvparsers-dev 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii libnvparsers7 7.0.0-1+cuda10.2 amd64 TensorRT parsers libraries
ii python3-libnvinfer 7.0.0-1+cuda10.2 amd64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 7.0.0-1+cuda10.2 amd64 Python 3 development package for TensorRT
ii tensorrt 7.0.0.11-1+cuda10.2 amd64 Meta package of TensorRT
ii uff-converter-tf 7.0.0-1+cuda10.2 amd64 UFF converter for TensorRT package

I had TensorFlow 2.1 version and after reading few solutions I installed TensorFlow 2.0 version.
Now if I run command -
$ python3 deepstream_test_1.py /home/archana/deepstream/samples/sample_720p.h264

Output is:

Traceback (most recent call last):
File “deepstream_test_1.py”, line 33, in
import pyds
ImportError: libnvdsgst_meta.so: cannot open shared object file: No such file or directory

I think the repo configuration is not getting updated though we remove TensorRT 7.x as per instructions mentioned here - https://docs.nvidia.com/deeplearning/sdk/tensorrt-install-guide/index.html#uninstalling

So, I tried to purge it -
sudo dpkg -P nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216

Output is:

 (Reading database ... 253856 files and directories currently installed.)

Removing nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216 (1-1) …
Purging configuration files for nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216 (1-1) …

Now I after ‘sudo apt-get update’ and install commands, I can see only TensorRT 6.x related packages -

The following additional packages will be installed:
libnvinfer-bin libnvinfer-dev libnvinfer-doc libnvinfer-plugin-dev libnvinfer-plugin6 libnvinfer-samples libnvinfer6 libnvonnxparsers-dev libnvonnxparsers6 libnvparsers-dev libnvparsers6
The following NEW packages will be installed:
libnvinfer-bin libnvinfer-dev libnvinfer-doc libnvinfer-plugin-dev libnvinfer-plugin6 libnvinfer-samples libnvinfer6 libnvonnxparsers-dev libnvonnxparsers6 libnvparsers-dev libnvparsers6 tensorrt

But still the error with deepstream python app is same:

Traceback (most recent call last):
File “deepstream_test_1.py”, line 33, in
import pyds
ImportError: libnvdsgst_meta.so: cannot open shared object file: No such file or directory

May I know if you run install.sh within DS package to install plugins and libraries ?

Yes, I did that before. But then I can see only C language apps inside SDK. So I tried for Python apps.
Now I removed all deepstream folders and files and reinstalled again. When I run ./install , I get below output:

update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/lib/gst-plugins because link group deepstream-plugins is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/lib/libnvv4l2.so because link group deepstream-v4l2library is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/lib/libnvv4lconvert.so because link group deepstream-v4lconvert is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-app because link group deepstream-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test1-app because link group deepstream-test1-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test2-app because link group deepstream-test2-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test3-app because link group deepstream-test3-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test4-app because link group deepstream-test4-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-test5-app because link group deepstream-test5-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-user-metadata-app because link group deepstream-user-metadata-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-dewarper-app because link group deepstream-dewarper-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-nvof-app because link group deepstream-nvof-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-image-decode-app because link group deepstream-image-decode-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-gst-metadata-app because link group deepstream-gst-metadata-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-perf-demo because link group deepstream-perf-demo is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-segmentation-app because link group deepstream-segmentation-app is broken
update-alternatives: warning: forcing reinstallation of alternative /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-infer-tensor-meta-app because link group deepstream-infer-tensor-meta-app is broken

Now If I try ‘deepstream-app’ command then I get warnings:

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.585: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideo4linux2.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.585: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.585: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.586: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.586: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.586: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_tracker.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.586: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_ofvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.586: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_of.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.589: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_segvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.589: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistreamtiler.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.589: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_jpegdec.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.589: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dewarper.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.590: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:26030): GStreamer-WARNING **: 15:09:19.590: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dsexample.so': libcudart.so.10.1: cannot open shared object file: No such file or directory
** ERROR: <main:602>: Specify config file with -c option
Quitting
App run failed

And if I try Python app: python3 deepstream_test_1.py /home/archana/deepstream/samples/sample_720p.h264

Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Unable to create Nvv4l2 Decoder
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink

Unable to create egl sink
Playing file /home/archana/deepstream/samples/sample_720p.h264
Traceback (most recent call last):
File “deepstream_test_1.py”, line 263, in
sys.exit(main(sys.argv))
File “deepstream_test_1.py”, line 196, in main
streammux.set_property(‘width’, 1920)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

This is same error, when 2 days ago I tried some dependent package installation with TensorRT and opened an issue Unable to create Nvv4l2 Decoder, NvStreamMux, pgie, nvvidconv, nvosd: Error while running DeepStream 4.0.2 Python apps

I think I need to have a clean installation with exact versions required for DeepStream’s latest version. I’m already referring the installation guides from Nvidia’s site and still deepstream is not working for me. It would be great if you can guide me through exact versions and pre-installation requirements for DeepStream for Python apps.

Thank you,
Archana

your issue is you can not find these plugins, please check your environments.
refer to this, to remove deepstream-app
update-alternatives --remove deepstream-app /opt/nvidia/deepstream/deepstream-4.0/bin/deepstream-app
please see install.sh, having all the links removed and finally removed the installed package,
sudo rm -rf /opt/nvidia/deepstream/deepstream-4.0

Thanks for the reply @amycao. I will try to remove all possible deepstream symlinks, files and folders.

@amycao, I tried re-installation of deepstream, now libvinfer.so related errors are gone.
But still I’m unable to run the C or Python apps. Here are the errors:
$ GST_DEBUG=3 deepstream-app -c samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

Output:

0:00:00.009797334  4706 0x55aa29c33180 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "nvstreammux"!
** ERROR: <create_multi_source_bin:714>: Failed to create element 'src_bin_muxer'
** ERROR: <create_multi_source_bin:777>: create_multi_source_bin failed
** ERROR: <create_pipeline:1045>: create_pipeline failed
** ERROR: <main:632>: Failed to create pipeline
Quitting
App run failed

And all other C deepstream-test apps are returning output: One element could not be created. Exiting.
With GST_DEBUG=3 the output is:

0:00:00.011145203  4918 0x561962006000 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "nvv4l2decoder"!
0:00:00.011171926  4918 0x561962006000 WARN     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "nvstreammux"!

And Python apps result:

$ python3 deepstream_test_1.py samples/streams/sample_720p.h264
Creating Pipeline 
 
Creating Source 
 
Creating H264Parser 

Creating Decoder 

 Unable to create Nvv4l2 Decoder 
 Unable to create NvStreamMux 
 Unable to create pgie 
 Unable to create nvvidconv 
 Unable to create nvosd 
Creating EGLSink 

 Unable to create egl sink 
Playing file samples/streams/sample_720p.h264 
Traceback (most recent call last):
  File "deepstream_test_1.py", line 263, in <module>
    sys.exit(main(sys.argv))
  File "deepstream_test_1.py", line 196, in main
    streammux.set_property('width', 1920)
AttributeError: 'NoneType' object has no attribute 'set_property'

I followed all app’s README steps and there were no errors. I cleared the cache also:

sudo rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin
sudo rm -rf ${HOME}/.cache/*

Still no luck. Providing few more inputs:
Result of ‘gst-inspect-1.0 -b’:

Blacklisted files:
  libnvdsgst_dsexample.so
  libnvdsgst_multistream.so
  libnvdsgst_dewarper.so
  libnvdsgst_jpegdec.so
  libnvdsgst_multistreamtiler.so
  libnvdsgst_segvisual.so
  libnvdsgst_of.so
  libnvdsgst_ofvisual.so
  libnvdsgst_tracker.so
  libgstnvvideoconvert.so
  libnvdsgst_infer.so
  libnvdsgst_eglglessink.so
  libnvdsgst_osd.so
  libgstnvvideo4linux2.so

Total count: 14 blacklisted files

Not sure why they are blacklisted.

My Cuda version is 10.2, which is configured with OpenCV. Do you think I should try only Cuda 10.1? Or is it due to my dGPU?

Can you try to remove the registry cache of gstreamer,
rm ~/.cache/gstreamer-1.0/registry.aarch64.bin to see if can solve the issue?

I already tried those commands:

sudo rm ${HOME}/.cache/gstreamer-1.0/registry.x86_64.bin
sudo rm -rf ${HOME}/.cache/*

gst-inspect-1.0 /path to libnvdsgst_multistream.so/
in your case if you use install.sh to install deepstream, should be
/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so
will print out why it blacklisted.

The output of :
gst-inspect-1.0 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so

(gst-inspect-1.0:2597): GStreamer-WARNING **: 15:03:26.455: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so': libcudart.so.10.1: cannot open shared object file: No such file or directory
Could not load plugin file: Opening module failed: libcudart.so.10.1: cannot open shared object file: No such file or directory

There are so many such warnings for ‘gst-inspect-1.0 -b’

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.453: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideo4linux2.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.454: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.456: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.459: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.461: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.463: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_tracker.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.465: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_ofvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.466: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_of.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.473: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_segvisual.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.475: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistreamtiler.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.479: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_jpegdec.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.481: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dewarper.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.483: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so': libcudart.so.10.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:2587): GStreamer-WARNING **: 15:02:11.486: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_dsexample.so': libcudart.so.10.1: cannot open shared object file: No such file or directory
Blacklisted files:
  libnvdsgst_dsexample.so
  libnvdsgst_multistream.so
  libnvdsgst_dewarper.so
  libnvdsgst_jpegdec.so
  libnvdsgst_multistreamtiler.so
  libnvdsgst_segvisual.so
  libnvdsgst_of.so
  libnvdsgst_ofvisual.so
  libnvdsgst_tracker.so
  libgstnvvideoconvert.so
  libnvdsgst_infer.so
  libnvdsgst_eglglessink.so
  libnvdsgst_osd.so
  libgstnvvideo4linux2.so

Total count: 14 blacklisted files

I think I need to try only ‘gst-inspect-1.0 libnvdsgst_multistream.so

Plugin Details:
  Name                     libnvdsgst_multistream.so
  Description              Plugin for blacklisted file
  Filename                 /usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so
  Version                  0.0.0
  License                  BLACKLIST
  Source module            BLACKLIST
  Binary package           BLACKLIST
  Origin URL               BLACKLIST


  0 features:

Hi @amycao,

Any idea why these libs are blacklisted? Let me know if you need any more details from me.

Thanks,
Archana

Your issue is
(gst-inspect-1.0:2597): GStreamer-WARNING **: 15:03:26.455: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so’: libcudart.so.10.1: cannot open shared object file: No such file or directory
Could not load plugin file: Opening module failed: libcudart.so.10.1: cannot open shared object file: No such file or directory
Do you have cuda 10.1 installed in your system?

1 Like

I have Cuda 10.2, which is configured with OpenCV