Deep stream test3 python example

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) : NVIDIA GeForce RTX 3090
• DeepStream Version : 6.3
• JetPack Version (valid for Jetson only)
• TensorRT Version : 12.2
• NVIDIA GPU Driver Version (valid for GPU only) : 535.104.05
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

I am facing below issue when run deepstream-test3.py example, so please I need your help

(gst-plugin-scanner:1355): GStreamer-WARNING **: 14:18:40.413: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_eglglessink.so’: libnvidia-ml.so.1: cannot open shared object file: No such file or directory

(gst-plugin-scanner:1355): GStreamer-WARNING **: 14:18:40.414: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.0: cannot open shared object file: No such file or directory
nvbufsurftransform:cuInit failed : 100

(gst-plugin-scanner:1356): GStreamer-WARNING **: 14:18:40.551: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.0: cannot open shared object file: No such file or directory
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
Creating Pipeline

Creating streamux

Unable to create NvStreamMux
Traceback (most recent call last):
File “deepstream_test_3.py”, line 487, in
sys.exit(main(stream_paths, pgie, config, disable_probe))
File “deepstream_test_3.py”, line 226, in main
pipeline.add(streammux)
File “/usr/lib/python3/dist-packages/gi/overrides/Gst.py”, line 64, in add
if not Gst.Bin.add(self, arg):
TypeError: Argument 1 does not allow None as a value

This error should be that the driver was not installed normally.
You can try this link to reinstall the cuda-toolkit and driver

I think driver is not the issue because I have old container on same host that working good

I tried modified pipeline to save into video file instead of display on screen and got below error during run deep-stream-test1.py

python3 deepstream_test_1.py ile:///opt/nvidia/deepstream/deepstream-6.3/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 nvvidconv2
Creating Code Parser

Creating Container

Creating Sink

Playing file ile:///opt/nvidia/deepstream/deepstream-6.3/samples/streams/sample_720p.h264
Traceback (most recent call last):
File “deepstream_test_1.py”, line 311, in
sys.exit(main(sys.argv))
File “deepstream_test_1.py”, line 231, in main
streammux.set_property(‘width’, 1920)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

 /**
     * This indicates that no CUDA-capable devices were detected by the installed
     * CUDA driver.
     */
    CUDA_ERROR_NO_DEVICE                      = 100,

Do you install the correct version of CUDA ?

You gave the old container the correct cuda version so it can work.

DS-6.3 requires cuda version 12.1

Please install the python bindings first. You can install the *.whl or build it by yourself. Here is link.

I installed it using link you provided and here list list of packages and still face same issue

Package Version


certifi 2019.11.28
chardet 3.0.4
dbus-python 1.2.16
idna 2.8
Mako 1.1.0
Markdown 3.1.1
MarkupSafe 1.1.0
numpy 1.24.2
packaging 20.3
pathlib 1.0.1
pgi 0.0.11.2
pip 23.1.2
pycairo 1.25.0
pyds 1.1.8
Pygments 2.3.1
PyGObject 3.36.0
pyparsing 2.4.6
python-apt 2.0.1+ubuntu0.20.4.1
python-dbusmock 0.19
PyYAML 5.3.1
requests 2.22.0
requests-unixsocket 0.2.0
setuptools 67.6.0
six 1.14.0
urllib3 1.25.8
wheel 0.40.0

Run the install.sh script to clear the cache in the /opt/nvidia/deepstream/deepstream directory

Then what is the output of deepstream --version-all ?

Ensure the native deepstream sdk work fine first. Python bindings depend on native deepstream sdk.

Additional options, use the docker.

docker pull nvcr.io/nvidia/deepstream:6.3-triton-multiarch

# start the docker

cd /opt/nvidia/deepstream/deepstream

./user_deepstream_python_apps_install.sh

deepstream-app --version-all

Output

deepstream-app version 6.3.0
DeepStreamSDK 6.3.0
CUDA Driver Version: 12.1
CUDA Runtime Version: 12.1
TensorRT Version: 8.5
cuDNN Version: 8.8
Dewarper: not found
root@71de4e18b8ec:/opt/nvidia/deepstream/deepstream-6.3/sources/deepstrea

I am using docker image nvcr.io/nvidia/deepstream:6.3-triton-multiarch

in old container when run below command gives
gst-inspect-1.0 nvstreammux

Output

Factory Details:
Rank primary (256)
Long-name Stream multiplexer
Klass Generic
Description N-to-1 pipe stream multiplexing
Author NVIDIA Corporation. Post on Deepstream for Tesla forum for any queries @ DeepStream SDK - NVIDIA Developer Forums

Plugin Details:
Name nvdsgst_multistream
Description NVIDIA Multistream mux/demux plugin
Filename /usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so
Version 6.3.0
License Proprietary
Source module nvmultistream
Binary package NVIDIA Multistream Plugins
Origin URL http://nvidia.com/

GObject
±—GInitiallyUnowned
±—GstObject
±—GstElement
±—GstNvStreamMux

Pad Templates:
SINK template: ‘sink_%u’
Availability: On request
Capabilities:
video/x-raw(memory:NVMM)
format: { (string)NV12, (string)RGBA, (string)I420 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]

but new container that has the issue when run
gst-inspect-1.0 nvstreammux

Output

No such element or plugin ‘nvstreammux’

Why nvstreammux is not installed in docker image and please can you give steps to install nvstreammux plugin
or do you have any other recommendations

nvstreammux is a component of the DeepStream SDK and does not require separate installation.

Can you clarify what you mean by “old” and “new” container?

try the following command line in the container.

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

I fixed the issue , I missed --gpu all when run the container

Thanks for your help

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.