Unable to create pgie Unable to create nvosd Is it Integrated GPU? : 1

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson orin nano 8GB developement kit
• DeepStream Version Deepstream 7.0
• JetPack Version (valid for Jetson only) Jetpack 6.1
• TensorRT Version 10.5.0.18
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
Unable to create pgie Unable to create nvosd Is it Integrated GPU? : 1
**• How to reproduce the issue ?
$ python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-7.0/samples/streams/sample_720p.h264
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

**Unable to create pgie **
** Unable to create nvosd **
Is it Integrated GPU? : 1
Creating nv3dsink

Playing file /opt/nvidia/deepstream/deepstream-7.0/samples/streams/sample_720p.h264
Traceback (most recent call last):
File “/opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py”, line 263, in
sys.exit(main(sys.argv))
File “/opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py”, line 206, in main
pgie.set_property(‘config-file-path’, “dstest1_pgie_config.txt”)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

Install Prerequisites

$ sudo pip3 install meson
$ sudo pip3 install ninja
$ git clone GitHub - GNOME/glib: Read-only mirror of https://gitlab.gnome.org/GNOME/glib
$ cd glib
$ git checkout 2.78.6
$ meson build --prefix=/usr
$ ninja -C build/
$ cd build/
$ sudo ninja install
$ pkg-config --modversion glib-2.0

Dependencies
$ sudo apt install libssl3libssl-dev libgstreamer1.0-0 gstreamer1.0-tools gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav libgstreamer-plugins-base1.0-dev libgstrtspserver-1.0-0 libjansson4 libyaml-cpp-dev

DeepStream SDK install
Download deepstream_sdk_v7.0.0_jetson.tbz2

$ cd ~/Downloads
$ sudo tar -xvf deepstream_sdk_v7.0.0_jetson.tbz2 -C /
$ cd /opt/nvidia/deepstream/deepstream-7.0
$ sudo ./install.sh
$ sudo ldconfig
$ cd ~/Downloads
$ sudo apt-get install ./deepstream-7.0_7.0.0-1_arm64.deb
$ git clone GitHub - confluentinc/librdkafka: The Apache Kafka C/C++ library
$ cd librdkafka
$ git checkout tags/v2.5.0
$ ./configure --enable-ssl
$ make
$ sudo make install
$ sudo mkdir -p /opt/nvidia/deepstream/deepstream/lib
$ sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream/lib
$ sudo ldconfig
$ sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstrtspserver-1.0-dev libx11-dev

DeepStream python bindings
Base dependencies

$ sudo apt-get install python3-gi python3-dev python3-gst-1.0 python-gi-dev git meson python3 python3-pip python3.10-dev cmake g++ build-essential libglib2.0-dev libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev
$ cd /opt/nvidia/deepstream/deepstream-7.0/sources/apps
$ sudo git clone GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications
$ cd deepstream_python_apps
$ sudo git submodule update --init

Installing Gst-python
$ sudo apt-get install -y apt-transport-https ca-certificates -y
$ cd 3rdparty/gstreamer/subprojects/gst-python/
$ sudo meson setup build
$ cd build
$ sudo ninja
$ sudo ninja install
$ cd /opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/bindings
$ sudo mkdir build
$ cd build
$ sudo cmake … -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=10 -DPIP_PLATFORM=linux_aarch64 -DDS_PATH=/opt/nvidia/deepstream/deepstream/
$ sudo make -j$(nproc)
$ sudo pip3 install ./pyds-1.1.11-py3-none*.whl
$ pip3 install cuda-python

Install librdkafka
$ git clone GitHub - confluentinc/librdkafka: The Apache Kafka C/C++ library
$ cd librdkafka
$ git checkout tags/v2.5.0
$ ./configure --enable-ssl
$ make
$ sudo make install
$ sudo mkdir -p /opt/nvidia/deepstream/deepstream/lib
$ sudo cp /usr/local/lib/librdkafka* /opt/nvidia/deepstream/deepstream/lib
$ sudo ldconfig
$ sudo apt-get install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libgstrtspserver-1.0-dev libx11-dev

DeepStream python bindings
Base dependencies

$ sudo apt-get install python3-gi python3-dev python3-gst-1.0 python-gi-dev git meson python3 python3-pip python3.10-dev cmake g++ build-essential libglib2.0-dev libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev
$ cd /opt/nvidia/deepstream/deepstream-7.0/sources/apps
$ sudo git clone GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications
$ cd deepstream_python_apps
$ sudo git submodule update --init

Installing Gst-python
$ sudo apt-get install -y apt-transport-https ca-certificates -y
$ cd 3rdparty/gstreamer/subprojects/gst-python/
$ sudo meson setup build
$ cd build
$ sudo ninja
$ sudo ninja install
$ cd /opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/bindings
$ sudo mkdir build
$ cd build
$ sudo cmake … -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=10 -DPIP_PLATFORM=linux_aarch64 -DDS_PATH=/opt/nvidia/deepstream/deepstream/
$ sudo make -j$(nproc)
$ sudo pip3 install ./pyds-1.1.11-py3-none*.whl
$ pip3 install cuda-python

$ cd /opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/apps/deepstream-test1
$ python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream-7.0/samples/streams/sample_720p.h264

ERROR Message
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

**Unable to create pgie **
** Unable to create nvosd **
Is it Integrated GPU? : 1
Creating nv3dsink

Playing file /opt/nvidia/deepstream/deepstream-7.0/samples/streams/sample_720p.h264
Traceback (most recent call last):
File “/opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py”, line 263, in
sys.exit(main(sys.argv))
File “/opt/nvidia/deepstream/deepstream-7.0/sources/apps/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py”, line 206, in main
pgie.set_property(‘config-file-path’, “dstest1_pgie_config.txt”)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

< Source Code : deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub Line 167 >
pgie = Gst.ElementFactory.make(“nvinfer”, “primary-inference”)
if not pgie:
sys.stderr.write(" Unable to create pgie \n")

==========================================
I can’t find nvinfer

==========================================

DeepStream 7.0 only support Jetpack 6.0. I think you need to re-burn the Jetpack. JP-6.1 is prepared for the next version.

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Installation.html#platform-and-os-compatibility

junshengy Thanks very much X 100 .
There is new information to solve this problem, but I am very happy。

could you tell me where is the engine “resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine
because the new question is

WARNING: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-7.0/samples/models/Primary_Detector/resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine open error
0:00:07.269984522 6630 0xaaab1455f080 WARN nvinfer gstnvinfer.cpp:679:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2083> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-7.0/samples/models/Primary_Detector/resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine failed

=============================================
thanks

You can find the file in the following directory.

/opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector

If you have new questions, you can open a new topic, thanks.

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