Unable to create Nvv4l2 Decoder, NvStreamMux, pgie, nvvidconv, nvosd: Error while running DeepStream 4.0.2 Python apps

I have downloaded the Python samples and done the rest of the setup for DeepStream 4.0.2. Now, when I’m trying to run these samples in terminal for either downloaded videos or RTSP streams, always get below error:

$ python3 deepstream_test_2.py samples/streams/sample_720p.h264
Output:
Creating Pipeline

Creating Source 
 
Creating H264Parser 

Creating Decoder 

 Unable to create Nvv4l2 Decoder 
 Unable to create NvStreamMux 
 Unable to create pgie 
 Unable to create tracker 
 Unable to make sgie1 
 Unable to make sgie2 
 Unable to make sgie3 
 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_2.py", line 320, in <module>
    sys.exit(main(sys.argv))
  File "deepstream_test_2.py", line 211, in main
    streammux.set_property('width', 1920)

I tried to run ‘python3 deepstream_test_1.py rtsp://192.168.0.3:5554/front’, and output is same:
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 rtsp://192.168.0.3:5554/front 
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'

Here is my system configuration:
Ubuntu 18.04
Nvidia GPU: GeForce GTX 1050 Ti
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

I will provide more details if required.

Any idea about this error?

Similar issue with this topic,

Hi @Amycao,

Yes, it is almost similar issue, occurred when I was doing trials with TensorRT and Tensorflow versions. I linked this in one of replies Deepstream-app: error while loading shared libraries: libnvinfer.so.6: cannot open shared object file + ubuntu 18.04 - #10 by archana

Thanks,
Archana

1 Like