Error MODE_NONE was not declared in this scope meanwhile installing deepstream_python_apps bindings

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU 2080 Ti
• DeepStream Version 6.0.0
• JetPack Version (valid for Jetson only)
• TensorRT Version 8.2.0
• NVIDIA GPU Driver Version (valid for GPU only) 470.182
• Issue Type( questions, new requirements, bugs) questions
• 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)

I’m following Python Bindings and Application Development instruction in Python Sample Apps and Bindings Source Details and Deepstream python bindings to build pyds. I do those instruction till 3.1 Quick build (x86-ubuntu-18.04 | python 3.6 | Deepstream 6.0) or 3.2 Advanced build.

After running these commands

git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps
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
cd deepstream_python_apps/
git submodule update --init
cd 3rdparty/gst-python/
./autogen.sh
make
make install
cd deepstream_python_apps/bindings
cd ../../bindings/
mkdir build
cd build/
cmake ..
make

or

cmake ..  -DPYTHON_MAJOR_VERSION=3 -DPYTHON_MINOR_VERSION=6     -DPIP_PLATFORM=linux_aarch64 -DDS_PATH=/opt/nvidia/deepstream/deepstream-6.0/
 make

I got this log:


[  6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/pyds.cpp:19:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
[ 12%] Building CXX object CMakeFiles/pyds.dir/src/utils.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/pytypes.h:12:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h: In function ‘void pybind11::pybind11_fail(const string&)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h:693:83: warning: inline declaration of ‘void pybind11::pybind11_fail(const string&)’ follows declaration with attribute noinline [-Wattributes]
 [[noreturn]] PYBIND11_NOINLINE inline void pybind11_fail(const std::string &reason) { throw std::runtime_error(reason); }
                                                                                   ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h:692:44: note: previous definition of ‘void pybind11::pybind11_fail(const char*)’ was here
 [[noreturn]] PYBIND11_NOINLINE inline void pybind11_fail(const char *reason) { throw std::runtime_error(reason); }
                                            ^~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h:693:83: warning: inline declaration of ‘void pybind11::pybind11_fail(const string&)’ follows declaration with attribute noinline [-Wattributes]
 [[noreturn]] PYBIND11_NOINLINE inline void pybind11_fail(const std::string &reason) { throw std::runtime_error(reason); }
                                                                                   ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h:692:44: note: previous definition of ‘void pybind11::pybind11_fail(const char*)’ was here
 [[noreturn]] PYBIND11_NOINLINE inline void pybind11_fail(const char *reason) { throw std::runtime_error(reason); }
                                            ^~~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h: In function ‘pybind11::detail::type_info* pybind11::detail::get_type_info(const std::type_index&, bool)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:191:88: warning: inline declaration of ‘pybind11::detail::type_info* pybind11::detail::get_type_info(const std::type_index&, bool)’ follows declaration with attribute noinline [-Wattributes]
                                                           bool throw_if_missing = false) {
                                                                                        ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:164:45: note: previous definition of ‘pybind11::detail::type_info* pybind11::detail::get_type_info(PyTypeObject*)’ was here
 PYBIND11_NOINLINE inline detail::type_info* get_type_info(PyTypeObject *type) {
                                             ^~~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:191:88: warning: inline declaration of ‘pybind11::detail::type_info* pybind11::detail::get_type_info(const std::type_index&, bool)’ follows declaration with attribute noinline [-Wattributes]
                                                           bool throw_if_missing = false) {
                                                                                        ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:164:45: note: previous definition of ‘pybind11::detail::type_info* pybind11::detail::get_type_info(PyTypeObject*)’ was here
 PYBIND11_NOINLINE inline detail::type_info* get_type_info(PyTypeObject *type) {
                                             ^~~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h: In function ‘bool pybind11::detail::isinstance_generic(pybind11::handle, const std::type_info&)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:403:31: warning: declaration of ‘bool pybind11::detail::isinstance_generic(pybind11::handle, const std::type_info&)’ with attribute noinline follows inline declaration  [-Wattributes]
 PYBIND11_NOINLINE inline bool isinstance_generic(handle obj, const std::type_info &tp) {
                               ^~~~~~~~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/pytypes.h:26:13: note: previous declaration of ‘bool pybind11::detail::isinstance_generic(pybind11::handle, const std::type_info&)’ was here
 inline bool isinstance_generic(handle obj, const std::type_info &tp);
             ^~~~~~~~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h: In function ‘std::__cxx11::string pybind11::detail::error_string()’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:410:38: warning: declaration of ‘std::__cxx11::string pybind11::detail::error_string()’ with attribute noinline follows inline declaration  [-Wattributes]
 PYBIND11_NOINLINE inline std::string error_string() {
                                      ^~~~~~~~~~~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/pytypes.h:315:20: note: previous declaration of ‘std::__cxx11::string pybind11::detail::error_string()’ was here
 inline std::string error_string();
                    ^~~~~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp: In function ‘pybind11::arg pydeepstream::operator""_a(const char*, size_t)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:48:57: warning: unused parameter ‘len’ [-Wunused-parameter]
     pybind11::arg operator ""_a(const char *str, size_t len) {
                                                         ^~~
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:28:0:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp: In instantiation of ‘typename pydeepstream::utils::function_storage<UniqueName, RetValue, ArgTypes>::pointer_type pydeepstream::utils::free_fn_ptr_from_std_function(const std::function<RetValue(ArgTypes ...)>&) [with const char* UniqueName = (& pydeepstream::utils::copyfuncname); RetValue = void*; ArgTypes = {void*, void*}; typename pydeepstream::utils::function_storage<UniqueName, RetValue, ArgTypes>::pointer_type = void* (*)(void*, void*)]’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:88:61:   required from here
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:171:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:168:79: warning: unused parameter ‘f’ [-Wunused-parameter]
     free_fn_ptr_from_std_function(const std::function<RetValue(ArgTypes...)> &f) {
                                                                               ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp: In instantiation of ‘typename pydeepstream::utils::function_storage<UniqueName, RetValue, ArgTypes>::pointer_type pydeepstream::utils::free_fn_ptr_from_std_function(const std::function<RetValue(ArgTypes ...)>&) [with const char* UniqueName = (& pydeepstream::utils::freefuncname); RetValue = void; ArgTypes = {void*, void*}; typename pydeepstream::utils::function_storage<UniqueName, RetValue, ArgTypes>::pointer_type = void (*)(void*, void*)]’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/utils.cpp:89:68:   required from here
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:171:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/utils.hpp:168:79: warning: unused parameter ‘f’ [-Wunused-parameter]
     free_fn_ptr_from_std_function(const std::function<RetValue(ArgTypes...)> &f) {
                                                                               ^
[ 18%] Building CXX object CMakeFiles/pyds.dir/src/bindanalyticsmeta.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindanalyticsmeta.cpp:21:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
[ 25%] Building CXX object CMakeFiles/pyds.dir/src/bindfunctions.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindfunctions.hpp:27,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindfunctions.cpp:19:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindfunctions.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindfunctions.cpp:552:60: warning: unused parameter ‘func’ [-Wunused-parameter]
               [](std::function<utils::COPYFUNC_SIG> const &func) {
                                                            ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindfunctions.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindfunctions.cpp:575:63: warning: unused parameter ‘func’ [-Wunused-parameter]
               [](std::function<utils::RELEASEFUNC_SIG> const &func) {
                                                               ^~~~
[ 31%] Building CXX object CMakeFiles/pyds.dir/src/bindgstnvdsmeta.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindgstnvdsmeta.hpp:20,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindgstnvdsmeta.cpp:21:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
[ 37%] Building CXX object CMakeFiles/pyds.dir/src/bindmeta360.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindmeta360.hpp:22,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindmeta360.cpp:20:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
[ 43%] Building CXX object CMakeFiles/pyds.dir/src/bindnvbufsurface.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvbufsurface.hpp:22,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:20:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:191:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:204:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:217:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:230:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:243:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:256:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:317:58: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfaceMappedAddr &self) {})
                                                          ^~~~
[ 50%] Building CXX object CMakeFiles/pyds.dir/src/bindnvdsinfer.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvdsinfer.hpp:22,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsinfer.cpp:20:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsinfer.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsinfer.cpp:45:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsInferDims &self) {})
                                                 ^~~~
[ 56%] Building CXX object CMakeFiles/pyds.dir/src/bindnvdsmeta.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvdsmeta.hpp:22,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:21:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:204:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {})
                                                 ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:217:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {});
                                                 ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:271:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsFrameMeta &self) {})
                                                 ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:284:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {});
                                                 ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:339:50: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsObjectMeta &self) {})
                                                  ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:352:50: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsObjectMeta &self) {});
                                                  ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:500:51: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsDisplayMeta &self) {})
                                                   ^~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:513:51: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsDisplayMeta &self) {});
                                                   ^~~~
[ 62%] Building CXX object CMakeFiles/pyds.dir/src/bindnvosd.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:21,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:22:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp: In function ‘void pydeepstream::bindnvosd(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:36:37: error: ‘MODE_NONE’ was not declared in this scope
                 .value("MODE_NONE", MODE_NONE, pydsdoc::NvOSD::NvOSD_Mode::MODE_NONE)
                                     ^~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:36:37: note: suggested alternative:
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:19:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:22:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/../../docstrings/nvosddoc.h:137:35: note:   ‘pydsdoc::NvOSD::NvOSD_Mode::MODE_NONE’
             constexpr const char* MODE_NONE = R"pyds(Invalid mode. Instead GPU mode will be used.)pyds";
                                   ^~~~~~~~~
CMakeFiles/pyds.dir/build.make:201: recipe for target 'CMakeFiles/pyds.dir/src/bindnvosd.cpp.o' failed
make[2]: *** [CMakeFiles/pyds.dir/src/bindnvosd.cpp.o] Error 1
CMakeFiles/Makefile2:84: recipe for target 'CMakeFiles/pyds.dir/all' failed
make[1]: *** [CMakeFiles/pyds.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

or

[  6%] Building CXX object CMakeFiles/pyds.dir/src/bindnvosd.cpp.o
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:21,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:22:
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
     NvDsInferDims dims = {0};
                            ^
/opt/nvidia/deepstream/deepstream/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp: In function ‘void pydeepstream::bindnvosd(pybind11::module&)’:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:36:37: error: ‘MODE_NONE’ was not declared in this scope
                 .value("MODE_NONE", MODE_NONE, pydsdoc::NvOSD::NvOSD_Mode::MODE_NONE)
                                     ^~~~~~~~~
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:36:37: note: suggested alternative:
In file included from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:19:0,
                 from /opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/src/bindnvosd.cpp:22:
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/bindings/include/bind/../../docstrings/nvosddoc.h:137:35: note:   ‘pydsdoc::NvOSD::NvOSD_Mode::MODE_NONE’
             constexpr const char* MODE_NONE = R"pyds(Invalid mode. Instead GPU mode will be used.)pyds";
                                   ^~~~~~~~~
CMakeFiles/pyds.dir/build.make:201: recipe for target 'CMakeFiles/pyds.dir/src/bindnvosd.cpp.o' failed
make[2]: *** [CMakeFiles/pyds.dir/src/bindnvosd.cpp.o] Error 1
CMakeFiles/Makefile2:84: recipe for target 'CMakeFiles/pyds.dir/all' failed
make[1]: *** [CMakeFiles/pyds.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

I also check these links to resolve that error but I could not resolve that yet.

Deepstream 6.0 Python Bindings Docs are terrible
Install python binding in deepstream-l4t-6.0.1-triton
Error building Python bindings in deepstream-l4t container on Jetson
Can’t built python bindings on deepstream triton container

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

The lastst baseline is for DeepStream 6.3. You need clone with tag “v1.1.0” for DeepStream 6.0.0.
Refer GitHub - NVIDIA-AI-IOT/deepstream_python_apps at v1.1.0.

If you update DeepStream to lastest version.There is a handy script to help install.

user_deepstream_python_apps_install.sh in /opt/nvidia/deepstream/deepstream

I should work with deepstream 6.0.0 currently. Then I want to do upgrade deepstream to the latest one.

Do you still need support for this topic? Or should we close it? Thanks.

Dear nvidia corporation,
nothing was solved and you force develooers to use te latest version of deepstream or the latest version of hardware is meaningless for me!

If you don’t want to upgrade, and you can’t compile python bindings yourself according to the documentation.

You can download pyds-1.1.1-py3-none-linux_x86_64.whl, and then sudo pip3 install pyds-1.1.1-py3-none-linux_x86_64.whl.

1 Like

Sorry for the confusion. I think what we want to say is that Deepstream6.3 has a handy script, it can be used to installed the binding easily.

Please be noted that tag 1.1.0 is for DeepStream6.0, you need to checkout on this tag to compile on your host with DeepStream 6.0, the latest tag is for DeepStream 6.3, there will be some issue if you working on it.
You can install the wheel file in the release Release DeepStream_Python_Apps_Bindings_v1.1.0 · NVIDIA-AI-IOT/deepstream_python_apps · GitHub, or make the binding as you did.

This is for ARM64, but you were compiling on x86, this may be the reason of the failure in building.

Sorry, I think I did a mistake and I should check it again. Let me check it then I would close this issue.

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.