Error building python bindings. Need Help

I’m trying to build and compile the python bindings from the link- https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/v1.1.1/bindings/README.md.
This results in the 2 Errors shown below, need help resolving the errors.

nikhil@nikhil-desktop:~/deepstream_python_apps/bindings$ mkdir build
nikhil@nikhil-desktop:~/deepstream_python_apps/bindings$ cd build
nikhil@nikhil-desktop:~/deepstream_python_apps/bindings/build$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nikhil/deepstream_python_apps/bindings/build
nikhil@nikhil-desktop:~/deepstream_python_apps/bindings/build$ make
Scanning dependencies of target pyds
[  6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
                 from /home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/pytypes.h:12:0,
                 from /home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13,
                 from /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/detail/common.h: In function ‘void pybind11::pybind11_fail(const string&)’:
/home/nikhil/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]
 YBIND11_NOINLINE inline void pybind11_fail(const std::string &reason) { throw std::runtime_error(reason); }
                                                                     ^
/home/nikhil/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); }
                                            ^~~~~~~~~~~~~
/home/nikhil/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]
 YBIND11_NOINLINE inline void pybind11_fail(const std::string &reason) { throw std::runtime_error(reason); }
                                                                     ^
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/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)’:
/home/nikhil/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) {
                                                                             ^
/home/nikhil/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) {
                                             ^~~~~~~~~~~~~
/home/nikhil/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) {
                                                                             ^
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h: In function ‘bool pybind11::detail::isinstance_generic(pybind11::handle, const std::type_info&)’:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35:0,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h: In function ‘std::__cxx11::string pybind11::detail::error_string()’:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/../3rdparty/pybind11/include/pybind11/cast.h:13:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:35,
                 from /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:
/home/nikhil/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();
                    ^~~~~~~~~~~~
/home/nikhil/deepstream_python_apps/bindings/src/utils.cpp: In function ‘pybind11::arg pydeepstream::operator""_a(const char*, size_t)’:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:28:0:
/home/nikhil/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*)]’:
/home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:88:61:   required from here
/home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:171:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
/home/nikhil/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) {
                                                                            ^
/home/nikhil/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*)]’:
/home/nikhil/deepstream_python_apps/bindings/src/utils.cpp:89:68:   required from here
/home/nikhil/deepstream_python_apps/bindings/include/utils.hpp:171:5: warning: no return statement in function returning non-void [-Wreturn-type]
     }
     ^
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
                 from /home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindfunctions.hpp:27,
                 from /home/nikhil/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]
/home/nikhil/deepstream_python_apps/bindings/src/bindfunctions.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindfunctions.cpp:379:41: warning: unused parameter ‘batchID’ [-Wunused-parameter]
               [](size_t gst_buffer, int batchID) {
                                         ^~~~~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindfunctions.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindfunctions.cpp:552:60: warning: unused parameter ‘func’ [-Wunused-parameter]
               [](std::function<utils::COPYFUNC_SIG> const &func) {
                                                            ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindfunctions.cpp: In lambda function:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindgstnvdsmeta.hpp:20,
                 from /home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindmeta360.hpp:22,
                 from /home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindnvbufsurface.hpp:22,
                 from /home/nikhil/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]
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:191:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:204:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:217:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:230:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:243:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp:256:59: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvBufSurfacePlaneParams &self) {})
                                                           ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvbufsurface.cpp: In lambda function:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindnvdsinfer.hpp:22,
                 from /home/nikhil/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]
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsinfer.cpp: In lambda function:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindnvdsmeta.hpp:22,
                 from /home/nikhil/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]
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:204:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {})
                                                 ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:217:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {});
                                                 ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:271:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsFrameMeta &self) {})
                                                 ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:284:49: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsBatchMeta &self) {});
                                                 ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:339:50: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsObjectMeta &self) {})
                                                  ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:352:50: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsObjectMeta &self) {});
                                                  ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp:500:51: warning: unused parameter ‘self’ [-Wunused-parameter]
                               [](NvDsDisplayMeta &self) {})
                                                   ^~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvdsmeta.cpp: In lambda function:
/home/nikhil/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 /home/nikhil/deepstream_python_apps/bindings/include/pyds.hpp:34:0,
                 from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:21,
                 from /home/nikhil/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]
/home/nikhil/deepstream_python_apps/bindings/src/bindnvosd.cpp: In function ‘void pydeepstream::bindnvosd(pybind11::module&)’:
/home/nikhil/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)
                                     ^~~~~~~~~
/home/nikhil/deepstream_python_apps/bindings/src/bindnvosd.cpp:36:37: note: suggested alternative:
In file included from /home/nikhil/deepstream_python_apps/bindings/include/bind/bindnvosd.hpp:19:0,
                 from /home/nikhil/deepstream_python_apps/bindings/src/bindnvosd.cpp:22:
/home/nikhil/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:278: recipe for target 'CMakeFiles/pyds.dir/src/bindnvosd.cpp.o' failed
make[2]: *** [CMakeFiles/pyds.dir/src/bindnvosd.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pyds.dir/all' failed
make[1]: *** [CMakeFiles/pyds.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I’m using the Jetson Nano.
DeepStream SDK 6.0.1
JetPack 4.6.1
TensorRT 8.2.1

The error occurs when I try the 3.1 Quick build steps from the link above.
cd deepstream_python_apps/bindings
mkdir build
cd build
cmake …
make


What am I doing wrong?, please help.

This error means miss header files when build the python bindings. Do you install the deepstream sdk correctly ?

Can you run deepstream-app --version-all normally ?

Another option, You can download the prebuilt *.whl from here to avoid building youself.

Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

If you need more help, please fill this table

done. @junshengy

Surprisingly, when I run $ deepstream-app --version, I get:
bash: deepstream-app: command not found
But earlier, when I ran the deepstream --version command it used to give me the version number 6.0.1. This is terrible, what do you guess I did incorrectly? Does this mean i need to uninstall and install deepstream again? Do I also have to flash my sd card and reinstall the jetpack image?

To uninstall deepstream sdk and install it again, do i just delete the deepstream folder or are there commands to uninsatll deepstream 6.0.1?

Can you please please help me with the steps to do this?
I would be uninstalling DeepStream SDK and reinstalling it.

Please tell me this information.otherwise I can not provide the correct suggestion.

Use the sdkmanger is recommended. It will help you install all dependenies of deepstreamsdk.

Is SDK Manager 2.0.0 compatible with Ubuntu 18.04, DeepStream SDK 6.0.1
JetPack 4.6.1
TensorRT 8.2.1

@junshengy Pls revert

• Hardware Platform -Jetson nano
• DeepStream Version 6.0.1
• JetPack Version 4.6.1
• TensorRT Version 8.2.1
• NVIDIA GPU Driver Version (valid for GPU only)- not installed
• Issue Type - ~$ deepstream --version
bash: deepstream: command not found
Do i need to uninstall and reinstall deepstream sdk? To uninsatll deepstream sdk, do i just delete the deepstream folder which is at under the opt directory.?

@junshengy Taking into consideration my setup information, Can you please help me with step by step instructions for installing Python bindings from the .whl file found at this link.

Just like

pip3 install pyds-xxxx-py3-none-linux_x86_64.whl

But first, please make sure that deepstream sdk has been installed normally.

Python bindings depends the native sdk.

Run install.sh in /opt/nvidia/deepstream/deepstream

Then try deepstream-app --version-all to ensure all dependenies are installed.

:/opt/nvidia/deepstream/deepstream-6.0$ install.sh
bash: install.sh: command not found

Do i need to install pyds-1.1.1-py3-none-linux_aarch64.whl or the pyds-1.1.1-py3-none-linux_x86_64.whl

~$ sudo pip3 install pyds-1.1.1-py3-none-linux_aarch64.whl
[sudo] password for nikhil:
The directory ‘/home/nikhil/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/nikhil/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Requirement ‘pyds-1.1.1-py3-none-linux_aarch64.whl’ looks like a filename, but the file does not exist
Processing ./pyds-1.1.1-py3-none-linux_aarch64.whl
Exception:
Traceback (most recent call last):
File “/usr/lib/python3/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3/dist-packages/pip/commands/install.py”, line 342, in run
requirement_set.prepare_files(finder)
File “/usr/lib/python3/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/usr/lib/python3/dist-packages/pip/req/req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “/usr/lib/python3/dist-packages/pip/download.py”, line 809, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File “/usr/lib/python3/dist-packages/pip/download.py”, line 715, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File “/usr/lib/python3/dist-packages/pip/utils/init.py”, line 617, in unpack_file
flatten=not filename.endswith(‘.whl’)
File “/usr/lib/python3/dist-packages/pip/utils/init.py”, line 500, in unzip_file
zipfp = open(filename, ‘rb’)
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/nikhil/pyds-1.1.1-py3-none-linux_aarch64.whl’

@junshengy Do you suggest i reinstall deepstream sdk because of the errors above?

I get an error pyds-1.1.1-py3-none-linux_x86_64.whl is not a supported wheel on this platform.

aarch64 is for jetson, x86_64 is for dGPU. It represents different cpu architectures.

Please download the *.whl to your jetson first.

If you can not run deepstream --version-all in bash normally, please don’t rush to install python binds first.

Read this documention for initial understanding

After running the command deepstream --version-all and deepstream --version, I get bash: deepstream: command not found. But I have deepstream sdk installed, does this mean it’s not installed properly? Do I need to reinstall? @junshengy Do you recommend I reinstall DeepStream SDK?

Sorry for the wrong spell, It should be deepstream-app --version-all.

If deepstream-app --version-all gave me the same error-deepstream: command not found , do I need to reinstall DeepStream SDK? If yes, to uninstall do I just delete the DeepStream folder or are there specific commands to uninstall it?