Error when running the deepstream app from the jupyter notebook in the deepstream course: Building Video AI Applications at the Edge on Jetson Nano

Hello,
I was running the jupyter notebook fir the course: Building Video AI Applications at the Edge on Jetson Nano.

When I try to see the apps and stream using the ls command in jupyter, I am able to see them. But when I try running the deepstream app using this command:

Run the app

!cd $PYTHON_APPS/deepstream-test1-rtsp-out \ && python3 deepstream_test1_rtsp_out.py -i $STREAMS/sample_720p.h264

, I get this error:

Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Unable to create Nvv4l2 Decoder

(python3:503): GStreamer-WARNING **: 18:04:38.235: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so’: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /usr/lib/aarch64-linux-gnu/tegra/libnvcolorutil.so)
Unable to create NvStreamMux

(python3:503): GStreamer-WARNING **: 18:04:38.236: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_infer.so’: /usr/lib/aarch64-linux-gnu/libnvparsers.so.8: file too short
Unable to create pgie

(python3:503): GStreamer-WARNING **: 18:04:38.237: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so’: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /usr/lib/aarch64-linux-gnu/tegra/libnvcolorutil.so)
Unable to create nvvidconv

(python3:503): GStreamer-WARNING **: 18:04:38.239: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_osd.so’: /usr/lib/aarch64-linux-gnu/libnvinfer.so.8: file too short
Unable to create nvosd

(python3:503): GStreamer-WARNING **: 18:04:38.239: Failed to load plugin ‘/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/libgstnvvideoconvert.so’: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /usr/lib/aarch64-linux-gnu/tegra/libnvcolorutil.so)
Unable to create nvvidconv_postosd
Creating H264 Encoder
Unable to create encoderTraceback (most recent call last):
File “deepstream_test1_rtsp_out.py”, line 329, in
sys.exit(main(sys.argv))
File “deepstream_test1_rtsp_out.py”, line 191, in main
encoder.set_property(‘bitrate’, bitrate)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

Ok, this looks like an installation issue.

Let us check a few things.

Can you run deepstream-test1-app successfully ?

Do you have the DeepStream Python binding library installed ?

And does your software version match ?

Hi,
Thank you for responding to my doubt. Actually, the entire deepstream course is run on a docker container.And I am accessing the jupyter lab through this container itself. So I guess my version and compatibility might not be an issue. The instructions I followed to use the docker script were:

# create a reusable script
echo "sudo docker run --runtime nvidia -it --rm --network host \
    -v /tmp/.X11-unix/:/tmp/.X11-unix \
    -v /tmp/argus_socket:/tmp/argus_socket \
    -v ~/my_apps:/dli/task/my_apps \
    --device /dev/video0 \
    nvcr.io/nvidia/dli/dli-nano-deepstream:v2.0.0-DS6.0.1 " > ds_docker_run.sh

# make the script executable
chmod +x ds_docker_run.sh

# run the script
./ds_docker_run.sh

I tried grep on the plugins and wasn’t able to find the decoder plugin installed while I was in the docker image.

Answering your questions:
NO, I am unable to run the deepstream-test1-app since it gives the decoder error and the other errors follow depending on the pipeline.

No, I didn’t install anything else since I thought it was in the docker image and won’t need any additional installations.
Do you think it might be in the docker image that is causing the error since some plugins are missing from it?

Best,
Aditya Nisal

Due to hardware limitations, some libraries are shared between Docker and host on Jetson.

You also need to install dependencies in the host. These include Jetpack and some other libraries

You can refer this documentation

since you are using the jetson nano, 6.0.1 is the highest version supported.

Thank you for the response. If that’s the case, then it can possibly be because I am using Jetson Orin NX. I will just follow the instructions from the jupyter lab and do it in the deepstream on my orin. Thank you for letting me know what the issue was.

Thank you,
Aditya Nisal

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