Pybind11 error when trying to compile deepstream python bindings DS 6.1

Jetson AGX Orin
jetpack 5.0 DP
Deepstream 6.1

Package: nvidia-jetpack
Version: 5.0-b114
Architecture: arm64
Maintainer: NVIDIA Corporation
Installed-Size: 194
Depends: nvidia-cuda (= 5.0-b114), nvidia-opencv (= 5.0-b114), nvidia-cudnn8 (= 5.0-b114), nvidia-tensorrt (= 5.0-b114), nvidia-container (= 5.0-b114), nvidia-vpi (= 5.0-b114), nvidia-nsight-sys (= 5.0-b114), nvidia-l4t-jetson-multimedia-api (>> 34.1-0), nvidia-l4t-jetson-multimedia-api (<< 34.2-0)
Homepage: http://developer.nvidia.com/jetson
Priority: standard
Section: metapackages
Filename: pool/main/n/nvidia-jetpack/nvidia-jetpack_5.0-b114_arm64.deb
Size: 29378
SHA256: 446dfec686283096d0eee0604a98eeac97febb80817eb4ed709aa2dcabe31fc7
SHA1: 191df4937a86633776d4bce5b75fa362021ffcaa
MD5sum: 24a0bf4cb01f62a4090f54c3ebb0da91
Description: NVIDIA Jetpack Meta Package
Description-md5: ad1462289bdbc54909ae109d1d32c0a8

Im getting an Pybind11 error when I run make

cd deepstream_python_apps/bindings
mkdir build
cd build
cmake …
make

Here is error

> bindings/build$ make
[  6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /opt/nvidia/deepstream/deepstream-6.1/sources/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
                 from /opt/nvidia/deepstream/deepstream-6.1/sources/deepstream_python_apps/bindings/src/pyds.cpp:19:
/opt/nvidia/deepstream/deepstream-6.1/sources/deepstream_python_apps/bindings/include/pyds.hpp:22:10: fatal error: pybind11.h: No such file or directory
   22 | #include <pybind11.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pyds.dir/build.make:63: CMakeFiles/pyds.dir/src/pyds.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/pyds.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Did you install all the dependency before you build the bindings?

2.1 through 2.4

I followed these install instructions from here:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Python_Sample_Apps.html#sample-application-source-details

But know if I run a python deepstream app I get this error.

File “deepstream_test_1_usb.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’
Error: gst-resource-error-quark: Output window was closed (3): /dvs/git/dirty/git-master_linux/3rdparty/gst/gst-nveglglessink/ext/eglgles/gsteglglessink.c(912): gst_eglglessink_event_thread (): /GstPipeline:pipeline0/GstEglGlesSink:nvvideo-renderer
Traceback (most recent call last):
File “deepstream_test_1_usb.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’

Did you do these?
$ 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

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

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