Installing gst-python error

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) jetson xavier nx : PE1000N + I also mounted a 256GB NVMe.
• DeepStream Version : 6.2
• JetPack Version (valid for Jetson only) : 5.1.1 L4T[35.3.1]
• TensorRT Version : 8.5.2.2
• NVIDIA GPU Driver Version (valid for GPU only) x
• Issue Type( questions, new requirements, bugs) : Execution error
• 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) : text for code
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) : deepstream python binding gst-python install

Error installing gst-python according to deepstream_python_apps/HOWTO.md at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub.
Below is the error code.
After autogen and configure, the result of doing a make, then an error when doing a sudo make install.


root@ubuntu:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python# ./autogen.sh PYTHON=/usr/bin/python
ln: failed to create symbolic link ‘.git/hooks/pre-commit’: Not a directory

  • passing argument PYTHON=/usr/bin/python to configure
  • options passed to configure: PYTHON=/usr/bin/python
  • check for build tools
    checking for autoconf >= 2.60 … found 2.69, ok.
    checking for automake >= 1.10 … found 1.16.1, ok.
    checking for libtoolize >= 1.5.0 … found 2.4.6, ok.
    checking for pkg-config >= 0.8.0 … found 0.29.1, ok.
  • running libtoolize --copy --force…
    libtoolize: putting auxiliary files in ‘.’.
    libtoolize: copying file ‘./ltmain.sh’
    libtoolize: putting macros in ‘m4’.
    libtoolize: copying file ‘m4/libtool.m4’
    libtoolize: copying file ‘m4/ltoptions.m4’
    libtoolize: copying file ‘m4/ltsugar.m4’
    libtoolize: copying file ‘m4/ltversion.m4’
    libtoolize: copying file ‘m4/lt~obsolete.m4’
    libtoolize: Consider adding ‘AC_CONFIG_MACRO_DIRS([m4])’ to configure.ac,
    libtoolize: and rerunning libtoolize and aclocal.
  • running aclocal -I m4 -I common/m4 …
  • running autoheader …
  • running autoconf …
  • running automake -a -c -Wno-portability…
    configure.ac:47: installing ‘./compile’
    configure.ac:13: installing ‘./missing’
    gi/overrides/Makefile.am: installing ‘./depcomp’
    plugin/Makefile.am:3: warning: ‘INCLUDES’ is the old name for ‘AM_CPPFLAGS’ (or ‘*_CPPFLAGS’)
  • running configure …
    ./configure default flags: --enable-maintainer-mode
    ./configure external flags: PYTHON=/usr/bin/python

checking build system type… aarch64-unknown-linux-gnu
checking host system type… aarch64-unknown-linux-gnu
checking target system type… aarch64-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether UID ‘0’ is supported by ustar format… yes
checking whether GID ‘0’ is supported by ustar format… yes
checking how to create a ustar tar archive… gnutar
checking nano version… 0 (release)
checking whether to enable maintainer-specific portions of Makefiles… yes
checking whether make supports nested variables… (cached) yes
checking how to print strings… printf
checking whether make supports the include directive… yes (GNU style)
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking dependency style of gcc… gcc3
checking for a sed that does not truncate output… /usr/bin/sed
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for fgrep… /usr/bin/grep -F
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format… func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format… func_convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… no
checking how to associate runtime and link libraries… printf %s\n
checking for ar… ar
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for sysroot… no
checking for a working dd… /usr/bin/dd
checking how to truncate binary pipes… /usr/bin/dd bs=4096 count=1
checking for mt… mt
checking if mt is a manifest tool… no
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking for shl_load… no
checking for shl_load in -ldld… no
checking for dlopen… no
checking for dlopen in -ldl… yes
checking whether a program can dlopen itself… yes
checking whether a statically linked program can dlopen itself… no
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking whether gcc understands -c and -o together… (cached) yes
checking dependency style of gcc… (cached) gcc3
checking for gcc option to accept ISO C99… none needed
checking for gcc option to accept ISO Standard C… (cached) none needed
checking for python version… 2.7
checking for python platform… linux2
checking for python script directory… ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory… ${exec_prefix}/lib/python2.7/dist-packages
checking for python >= 2.7… checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for GST… yes
checking for PYGOBJECT… yes
okay
checking for headers required to compile python extensions… found
checking for pygobject overrides directory… ${exec_prefix}/lib/python2.7/dist-packages/gi/overrides
checking for GST… yes
configure: Using /usr/local/lib/gstreamer-1.0 as the plugin install location
checking for PYGOBJECT… yes
checking for libraries required to embed python… yes
checking for valgrind… no
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating common/m4/Makefile
config.status: creating gi/Makefile
config.status: creating plugin/Makefile
config.status: creating testsuite/Makefile
config.status: creating gi/overrides/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Now type ‘make’ to compile gst-python.

root@ubuntu:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python# ./configure PYTHON=/usr/bin/python
checking build system type… aarch64-unknown-linux-gnu
checking host system type… aarch64-unknown-linux-gnu
checking target system type… aarch64-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether UID ‘0’ is supported by ustar format… yes
checking whether GID ‘0’ is supported by ustar format… yes
checking how to create a ustar tar archive… gnutar
checking nano version… 0 (release)
checking whether to enable maintainer-specific portions of Makefiles… yes
checking whether make supports nested variables… (cached) yes
checking how to print strings… printf
checking whether make supports the include directive… yes (GNU style)
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking dependency style of gcc… gcc3
checking for a sed that does not truncate output… /usr/bin/sed
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking for fgrep… /usr/bin/grep -F
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format… func_convert_file_noop
checking how to convert aarch64-unknown-linux-gnu file names to toolchain format… func_convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… no
checking how to associate runtime and link libraries… printf %s\n
checking for ar… ar
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… ranlib
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for sysroot… no
checking for a working dd… /usr/bin/dd
checking how to truncate binary pipes… /usr/bin/dd bs=4096 count=1
checking for mt… mt
checking if mt is a manifest tool… no
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking if gcc supports -c -o file.o… (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking for shl_load… no
checking for shl_load in -ldld… no
checking for dlopen… no
checking for dlopen in -ldl… yes
checking whether a program can dlopen itself… yes
checking whether a statically linked program can dlopen itself… no
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking whether gcc understands -c and -o together… (cached) yes
checking dependency style of gcc… (cached) gcc3
checking for gcc option to accept ISO C99… none needed
checking for gcc option to accept ISO Standard C… (cached) none needed
checking for python version… 2.7
checking for python platform… linux2
checking for python script directory… ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory… ${exec_prefix}/lib/python2.7/dist-packages
checking for python >= 2.7… checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for GST… yes
checking for PYGOBJECT… yes
okay
checking for headers required to compile python extensions… found
checking for pygobject overrides directory… ${exec_prefix}/lib/python2.7/dist-packages/gi/overrides
checking for GST… yes
configure: Using /usr/local/lib/gstreamer-1.0 as the plugin install location
checking for PYGOBJECT… yes
checking for libraries required to embed python… yes
checking for valgrind… no
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating common/m4/Makefile
config.status: creating gi/Makefile
config.status: creating plugin/Makefile
config.status: creating testsuite/Makefile
config.status: creating gi/overrides/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

root@ubuntu:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python# make
(CDPATH=“${ZSH_VERSION+.}:” && cd . && /bin/bash /opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
Making all in common
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
Making all in m4
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[3]: Nothing to be done for ‘all’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[3]: Nothing to be done for ‘all-am’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
Making all in gi
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
Making all in overrides
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
ln -s -f .libs/_gi_gst.so _gi_gst.so
for f in Gst.py GstPbutils.py init.py; do
[ -e ./$f ] || ln -s -f ./$f ./$f;
done
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[3]: Nothing to be done for ‘all-am’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
Making all in plugin
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
make[2]: Nothing to be done for ‘all’.
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
Making all in testsuite
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[2]: Nothing to be done for ‘all’.
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’

What’s your problem ? Do you mean

this error ?

It’s normal. In autogen.sh

if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
then
    rm -f .git/hooks/pre-commit
    if ! ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit 2> /dev/null
    then
        echo "Failed to create commit hook symlink, copying instead ..."
        cp common/hooks/pre-commit.hook .git/hooks/pre-commit
    fi
fi

When gst-python build as submodule, this line of error log will appear.

What went wrong when you ran make install?

i ran make install result.

root@ubuntu:/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python# sudo make install
Making install in common
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
Making install in m4
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[3]: Nothing to be done for ‘install-exec-am’.
make[3]: Nothing to be done for ‘install-data-am’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common/m4’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[3]: Nothing to be done for ‘install-exec-am’.
make[3]: Nothing to be done for ‘install-data-am’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/common’
Making install in gi
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
Making install in overrides
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
/usr/bin/mkdir -p ‘/usr/local/lib/python2.7/dist-packages/gi/overrides’
/bin/bash …/…/libtool --mode=install /usr/bin/install -c _gi_gst.la ‘/usr/local/lib/python2.7/dist-packages/gi/overrides’
libtool: install: /usr/bin/install -c .libs/_gi_gst.so /usr/local/lib/python2.7/dist-packages/gi/overrides/_gi_gst.so
libtool: install: /usr/bin/install -c .libs/_gi_gst.lai /usr/local/lib/python2.7/dist-packages/gi/overrides/_gi_gst.la
libtool: finish: PATH=“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin” ldconfig -n /usr/local/lib/python2.7/dist-packages/gi/overrides

Libraries have been installed in:
/usr/local/lib/python2.7/dist-packages/gi/overrides

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the ‘-LLIBDIR’
flag during linking and do at least one of the following:

  • add LIBDIR to the ‘LD_LIBRARY_PATH’ environment variable
    during execution
  • add LIBDIR to the ‘LD_RUN_PATH’ environment variable
    during linking
  • use the ‘-Wl,-rpath -Wl,LIBDIR’ linker flag
  • have your system administrator add LIBDIR to ‘/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

/usr/bin/mkdir -p ‘/usr/local/lib/python2.7/dist-packages/gi/overrides’
/usr/bin/install -c -m 644 Gst.py GstPbutils.py ‘/usr/local/lib/python2.7/dist-packages/gi/overrides’
Byte-compiling python modules…
Gst.pyGstPbutils.py
Byte-compiling python modules (optimized versions) …
Gst.pyGstPbutils.py
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi/overrides’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[3]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[3]: Nothing to be done for ‘install-exec-am’.
make[3]: Nothing to be done for ‘install-data-am’.
make[3]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/gi’
Making install in plugin
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
make[2]: Nothing to be done for ‘install-exec-am’.
/usr/bin/mkdir -p ‘/usr/local/lib/gstreamer-1.0’
/bin/bash …/libtool --mode=install /usr/bin/install -c libgstpython.la ‘/usr/local/lib/gstreamer-1.0’
libtool: install: /usr/bin/install -c .libs/libgstpython.so /usr/local/lib/gstreamer-1.0/libgstpython.so
libtool: install: /usr/bin/install -c .libs/libgstpython.lai /usr/local/lib/gstreamer-1.0/libgstpython.la
libtool: finish: PATH=“/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin” ldconfig -n /usr/local/lib/gstreamer-1.0

Libraries have been installed in:
/usr/local/lib/gstreamer-1.0

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the ‘-LLIBDIR’
flag during linking and do at least one of the following:

  • add LIBDIR to the ‘LD_LIBRARY_PATH’ environment variable
    during execution
  • add LIBDIR to the ‘LD_RUN_PATH’ environment variable
    during linking
  • use the ‘-Wl,-rpath -Wl,LIBDIR’ linker flag
  • have your system administrator add LIBDIR to ‘/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/plugin’
Making install in testsuite
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[2]: Nothing to be done for ‘install-exec-am’.
make[2]: Nothing to be done for ‘install-data-am’.
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python/testsuite’
make[1]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
make[2]: Entering directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
make[2]: Nothing to be done for ‘install-exec-am’.
make[2]: Nothing to be done for ‘install-data-am’.
make[2]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’
make[1]: Leaving directory ‘/opt/nvidia/deepstream/deepstream-6.2/sources/apps/deepstream_python_apps/3rdparty/gst-python’

And this is the result of $ sudo make at “GitHub - Ryoyo-NV/People-Flow-Analysis-System: People flow analysis system for Jetson Nano, Xavier NX, and AGX Xavier.”.
Any solution for python.h?

The default python in your system is 2.7, Please install python3.8

apt install python3-gi python3-dev python3-gst-1.0 python-gi-dev git python-dev \
    python3 python3-pip python3.8-dev cmake g++ build-essential libglib2.0-dev \
    libglib2.0-dev-bin libgstreamer1.0-dev libtool m4 autoconf automake libgirepository1.0-dev libcairo2-dev

I tried it and it didn’t work.
$ python execution result.
python 3.8.10 (default, May 26 2023, 14:05:08)
[GCC 9.4.0] on linux

I don’t understand why I have python2.7 in /usr/local/lib/python2.7/dist-packages/gi/overrides.

Please modify the default python verison

sudo rm -rf /usr/bin/python
sudo ln -s /usr/bin/python3.8 /usr/bin/python

This problem is not related DeepStream

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.