Test1 run erros on jetpack 4.6:

hi,
i update jetpack to 4.6 and deepstream6.0,
but i was wrong to implement python-app bindings on jetson nx, built gst-python, pybind11, so so…
and i have to run:
sudo pip3 install pyds
but when i run test1, it shows errors like this:
how can i do now?

thank you very much!

Error: gst-stream-error-quark: NvBufSurfTransform failed with error -2 while converting buffer (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1376): convert_batch_and_push_to_input_thread (): /GstPipeline:pipeline0/GstNvInfer:primary-inference
Traceback (most recent call last):
File “deepstream_test_1.py”, line 55, in osd_sink_pad_buffer_probe
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’
0:00:17.574773853 23879 0x7f48004590 WARN nvinfer gstnvinfer.cpp:1376:convert_batch_and_push_to_input_thread: error: NvBufSurfTransform failed with error -3 while converting buffer
Traceback (most recent call last):
File “deepstream_test_1.py”, line 55, in osd_sink_pad_buffer_probe
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’
Traceback (most recent call last):
File “deepstream_test_1.py”, line 55, in osd_sink_pad_buffer_probe
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’
Traceback (most recent call last):
File “deepstream_test_1.py”, line 55, in osd_sink_pad_buffer_probe
batch_meta = pyds.gst_buffer_get_nvds_batch_meta(hash(gst_buffer))
AttributeError: module ‘pyds’ has no attribute ‘gst_buffer_get_nvds_batch_meta’

Hi,

Please note that getting pyds from pip3 will install another module with the same name.
For the python deeepstream module, please install the whl file you built directly.

In short, below is the detailed steps:

1. Setup JetPack4.6 + Deepstream 6.0

2. Build and install

$ sudo apt install -y git python-dev python3 python3-pip python3.6-dev python3.8-dev cmake g++ build-essential libglib2.0-dev libglib2.0-dev-bin python-gi-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev pkg-config
$ pip3 install pycairo
$ git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
$ git submodule update --init
$ cd deepstream_python_apps/bindings/
$ mkdir build
$ cd build/
$ cmake ..  -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=6 -DPIP_PLATFORM=linux_aarch64 -DDS_PATH=/opt/nvidia/deepstream/deepstream
$ make
$ pip3 install ./pyds-1.1.0-py3-none-linux_aarch64.whl

Thanks.

understand now,
yesterday it created a X86 whl file after i bindings, problem is here.
and i try again!

thank you so much, a lots, a lots…

yes it works very well right now as your kindly instructions!

many many thanks for you and for your time!

but when i run test4, it shows some errors:
how to fix them??

test4 logs error

For DeepStream SDK related issue, please help to open a topic at Latest Intelligent Video Analytics/DeepStream SDK topics - NVIDIA Developer Forums

Thanks