Failing to run deepstream-test4 from deepstream_python_apps

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version : 6.1
• NVIDIA GPU Driver Version (valid for GPU only): 520.61.05
• Issue Type( questions, new requirements, bugs): 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):

python3 deepstream_test_4.py -i /opt/nvidia/deepstream/deepstream-6.1/samples/streams/sample_720p.h264 -p /opt/nvidia/deepstream/deepstream-6.1/lib/libnvds_kafka_proto.so --conn-str="localhost;9092;ds-kafka" -s 0 --no-display

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description):

I’m trying to run deepstream app in the docker container with python_apps installed and that’s my error.

Note: I created a docker image from this one nvcr.io/nvidia/deepstream:6.1.1-triton and installed python_bindings by following the instructions from here: deepstream_python_apps/bindings at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

Creating Source

Creating H264Parser

Creating Decoder

0:00:00.009741259 122 0x172d2a0 WARN GST_ELEMENT_FACTORY gstelementfactory.c:458:gst_element_factory_make: no such element factory “nvstreammux”!
Unable to create NvStreamMux
0:00:00.009768171 122 0x172d2a0 WARN GST_ELEMENT_FACTORY gstelementfactory.c:458:gst_element_factory_make: no such element factory “nvinfer”!
Unable to create pgie
0:00:00.009778440 122 0x172d2a0 WARN GST_ELEMENT_FACTORY gstelementfactory.c:458:gst_element_factory_make: no such element factory “nvvideoconvert”!
Unable to create nvvidconv
Creating FakeSink

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

Can it run normally by directly entering the Docker and run the demo in the docker?

@yuweiw this is from the docker console. I ran it inside the docker container

FROM nvcr.io/nvidia/deepstream:6.1.1-triton

# RUN apt-get update
# Install required dependencies
RUN apt-get update \
    && apt-get install -y --assume-yes --no-install-recommends \
    # ffmpeg \
    python3-gi \
    python3-dev \
    python3-gst-1.0 \
    python-gi-dev \
    git \
    python-dev \
    python3 \
    python3-pip \
    python3.8-dev \
    cmake \
    g++ \
    build-essential \
    libglib2.0-dev \
    libglib2.0-dev-bin \
    libgstreamer1.0-dev \
    libtool \
    m4 \
    autoconf \
    automake \
    libgirepository1.0-dev \
    libcairo2-dev \
    && apt-get clean all \
    && rm -rf /var/lib/apt/lists/*

RUN cd /opt/nvidia/deepstream/deepstream/sources \
    && git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git 

# build python bindings
RUN cd /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps \
    && git submodule update --init \
    && apt-get install -y apt-transport-https ca-certificates -y \
    && update-ca-certificates \
    && cd ./3rdparty/gst-python \
    && ./autogen.sh \
    && make \
    && make install \
    && cd ../../bindings \
    && mkdir build \
    && cd build \
    && cmake .. \
    && make \
    && python3 -m pip install --upgrade pip \
    && pip3 install ./pyds-*-py3-none*.whl

ENTRYPOINT ["/bin/sh"]

And this is my dockerfile that I use to create the docker image

@yuweiw can I help you with other informations or logs from the app?
Thanks

There is no update from you for a period, assuming this is not an issue anymore. Hence we are closing this topic. If need further support, please open a new one.
Thanks

The log shows that you do not have the correct pyds binding. Could you enter the docker you created and do the binding in the docker again?