<div dir="ltr">Hello!<div><div><br></div><div style="">I recompiled gstreamer with --enable-introspection=yes, recompiled pygobject and gst-python. I have the gst-1.0.gir and other gst .gir files in /usr/local/share/gir-1.0/</div><div style=""><br></div><div style="">Still the same error, that I already sent in the previous mail:</div><div style=""><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">ERROR:root:Could not find any typelib for Gst<br></span><span style="font-size:13px">Traceback (most recent call last):<br></span><span style="font-size:13px">  File "gstreamer.py", line 11, in <module><br></span><span style="font-size:13px">    from gi.repository import Gst as gst<br></span><span style="font-size:13px">ImportError: cannot import name Gst</span> </blockquote><div style=""><br></div><div style="">Here is the output of gst-python configure and make install (still same error without passing overrides dir):</div><div style=""><br></div><div style=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">./configure --with-pygi-overrides-dir=/usr/local/lib/python2.7/site-packages/gi/overrides<br>checking build system type... armv7l-unknown-linux-gnueabihf<br>checking host system type... armv7l-unknown-linux-gnueabihf<br>checking target system type... armv7l-unknown-linux-gnueabihf<br>checking for a BSD-compatible install... /usr/bin/install -c<br>checking whether build environment is sane... yes<br>checking for a thread-safe mkdir -p... /bin/mkdir -p<br>checking for gawk... no<br>checking for mawk... mawk<br>checking whether make sets $(MAKE)... yes<br>checking whether make supports nested variables... yes<br>checking whether UID '1000' is supported by ustar format... yes<br>checking whether GID '1000' is supported by ustar format... yes<br>checking how to create a ustar tar archive... gnutar<br>checking nano version... 0 (release)<br>checking whether to enable maintainer-specific portions of Makefiles... yes<br>checking whether make supports nested variables... (cached) yes<br>checking how to print strings... printf<br>checking for style of include used by make... GNU<br>checking for gcc... gcc<br>checking whether the C compiler works... yes<br>checking for C compiler default output file name... a.out<br>checking for suffix of executables... <br>checking whether we are cross compiling... no<br>checking for suffix of object files... o<br>checking whether we are using the GNU C compiler... yes<br>checking whether gcc accepts -g... yes<br>checking for gcc option to accept ISO C89... none needed<br>checking whether gcc understands -c and -o together... yes<br>checking dependency style of gcc... gcc3<br>checking for a sed that does not truncate output... /bin/sed<br>checking for grep that handles long lines and -e... /bin/grep<br>checking for egrep... /bin/grep -E<br>checking for fgrep... /bin/grep -F<br>checking for ld used by gcc... /usr/bin/ld<br>checking if the linker (/usr/bin/ld) is GNU ld... yes<br>checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B<br>checking the name lister (/usr/bin/nm -B) interface... BSD nm<br>checking whether ln -s works... yes<br>checking the maximum length of command line arguments... 1572864<br>checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop<br>checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop<br>checking for /usr/bin/ld option to reload object files... -r<br>checking for objdump... objdump<br>checking how to recognize dependent libraries... pass_all<br>checking for dlltool... no<br>checking how to associate runtime and link libraries... printf %s\n<br>checking for ar... ar<br>checking for archiver @FILE support... @<br>checking for strip... strip<br>checking for ranlib... ranlib<br>checking command to parse /usr/bin/nm -B output from gcc object... ok<br>checking for sysroot... no<br>checking for a working dd... /bin/dd<br>checking how to truncate binary pipes... /bin/dd bs=4096 count=1<br>checking for mt... mt<br>checking if mt is a manifest tool... no<br>checking how to run the C preprocessor... gcc -E<br>checking for ANSI C header files... yes<br>checking for sys/types.h... yes<br>checking for sys/stat.h... yes<br>checking for stdlib.h... yes<br>checking for string.h... yes<br>checking for memory.h... yes<br>checking for strings.h... yes<br>checking for inttypes.h... yes<br>checking for stdint.h... yes<br>checking for unistd.h... yes<br>checking for dlfcn.h... yes<br>checking for objdir... .libs<br>checking if gcc supports -fno-rtti -fno-exceptions... no<br>checking for gcc option to produce PIC... -fPIC -DPIC<br>checking if gcc PIC flag -fPIC -DPIC works... yes<br>checking if gcc static flag -static works... yes<br>checking if gcc supports -c -o file.o... yes<br>checking if gcc supports -c -o file.o... (cached) yes<br>checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes<br>checking whether -lc should be explicitly linked in... no<br>checking dynamic linker characteristics... GNU/Linux ld.so<br>checking how to hardcode library paths into programs... immediate<br>checking for shl_load... no<br>checking for shl_load in -ldld... no<br>checking for dlopen... no<br>checking for dlopen in -ldl... yes<br>checking whether a program can dlopen itself... yes<br>checking whether a statically linked program can dlopen itself... no<br>checking whether stripping libraries is possible... yes<br>checking if libtool supports shared libraries... yes<br>checking whether to build shared libraries... yes<br>checking whether to build static libraries... no<br>checking for gcc... (cached) gcc<br>checking whether we are using the GNU C compiler... (cached) yes<br>checking whether gcc accepts -g... (cached) yes<br>checking for gcc option to accept ISO C89... (cached) none needed<br>checking whether gcc understands -c and -o together... (cached) yes<br>checking dependency style of gcc... (cached) gcc3<br>checking for gcc option to accept ISO C99... -std=gnu99<br>checking for gcc -std=gnu99 option to accept ISO Standard C... (cached) -std=gnu99<br>checking for python... /usr/bin/python<br>checking for python version... 2.7<br>checking for python platform... linux2<br>checking for python script directory... ${prefix}/lib/python2.7/dist-packages<br>checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages<br>checking for python >= 2.7... checking for pkg-config... /usr/bin/pkg-config<br>checking pkg-config is at least version 0.9.0... yes<br>checking for GST... yes<br>checking for PYGOBJECT... yes<br>okay<br>checking for headers required to compile python extensions... found<br>checking for pygobject overrides directory... /usr/local/lib/python2.7/site-packages/gi/overrides<br>checking for GST... yes<br>configure: Using /usr/local/lib/gstreamer-1.0 as the plugin install location<br>checking for PYGOBJECT... yes<br>checking for libraries required to embed python... yes<br>checking for valgrind... no<br>checking that generated files are newer than configure... done<br>configure: creating ./config.status<br>config.status: creating Makefile<br>config.status: creating common/Makefile<br>config.status: creating common/m4/Makefile<br>config.status: creating gi/Makefile<br>config.status: creating plugin/Makefile<br>config.status: creating testsuite/Makefile<br>config.status: creating gi/overrides/Makefile<br>config.status: creating config.h<br>config.status: executing depfiles commands<br>config.status: executing libtool commands<br>pi@rasp1 ~/Downloads/gst-python-1.8.1 $ sudo make install<br>Making install in common<br>make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>Making install in m4<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common/m4'<br>make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common/m4'<br>make[3]: Nothing to be done for 'install-exec-am'.<br>make[3]: Nothing to be done for 'install-data-am'.<br>make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common/m4'<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common/m4'<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>make[3]: Nothing to be done for 'install-exec-am'.<br>make[3]: Nothing to be done for 'install-data-am'.<br>make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/common'<br>Making install in gi<br>make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>Making install in overrides<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides'<br>  CC       _gi_gst_la-gstmodule.lo<br>  CCLD     _<a href="http://gi_gst.la">gi_gst.la</a><br>make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides'<br> /bin/mkdir -p '/usr/local/lib/python2.7/site-packages/gi/overrides'<br> /bin/bash ../../libtool   --mode=install /usr/bin/install -c   _<a href="http://gi_gst.la">gi_gst.la</a> '/usr/local/lib/python2.7/site-packages/gi/overrides'<br>libtool: install: /usr/bin/install -c .libs/_gi_gst.so /usr/local/lib/python2.7/site-packages/gi/overrides/_gi_gst.so<br>libtool: install: /usr/bin/install -c .libs/_gi_gst.lai /usr/local/lib/python2.7/site-packages/gi/overrides/_<a href="http://gi_gst.la">gi_gst.la</a><br>libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib/python2.7/site-packages/gi/overrides<br>----------------------------------------------------------------------<br>Libraries have been installed in:<br>   /usr/local/lib/python2.7/site-packages/gi/overrides<br>If you ever happen to want to link against installed libraries<br>in a given directory, LIBDIR, you must either use libtool, and<br>specify the full pathname of the library, or use the '-LLIBDIR'<br>flag during linking and do at least one of the following:<br>   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable<br>     during execution<br>   - add LIBDIR to the 'LD_RUN_PATH' environment variable<br>     during linking<br>   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag<br>   - have your system administrator add LIBDIR to '/etc/ld.so.conf'<br>See any operating system documentation about shared libraries for<br>more information, such as the ld(1) and ld.so(8) manual pages.<br>----------------------------------------------------------------------<br> /bin/mkdir -p '/usr/local/lib/python2.7/site-packages/gi/overrides'<br> /usr/bin/install -c -m 644 Gst.py GstPbutils.py '/usr/local/lib/python2.7/site-packages/gi/overrides'<br>Byte-compiling python modules...<br><a href="http://Gst.pyGstPbutils.py">Gst.pyGstPbutils.py</a><br>Byte-compiling python modules (optimized versions) ...<br><a href="http://Gst.pyGstPbutils.py">Gst.pyGstPbutils.py</a><br>make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides'<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi/overrides'<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>make[3]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>make[3]: Nothing to be done for 'install-exec-am'.<br>make[3]: Nothing to be done for 'install-data-am'.<br>make[3]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/gi'<br>Making install in plugin<br>make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/plugin'<br>  CC       libgstpythonplugin_la-gstpythonplugin.lo<br>  CCLD     <a href="http://libgstpythonplugin.la">libgstpythonplugin.la</a><br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/plugin'<br>make[2]: Nothing to be done for 'install-exec-am'.<br> /bin/mkdir -p '/usr/local/lib/gstreamer-1.0'<br> /bin/bash ../libtool   --mode=install /usr/bin/install -c   <a href="http://libgstpythonplugin.la">libgstpythonplugin.la</a> '/usr/local/lib/gstreamer-1.0'<br>libtool: install: /usr/bin/install -c .libs/libgstpythonplugin.so /usr/local/lib/gstreamer-1.0/libgstpythonplugin.so<br>libtool: install: /usr/bin/install -c .libs/libgstpythonplugin.lai /usr/local/lib/gstreamer-1.0/<a href="http://libgstpythonplugin.la">libgstpythonplugin.la</a><br>libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib/gstreamer-1.0<br>----------------------------------------------------------------------<br>Libraries have been installed in:<br>   /usr/local/lib/gstreamer-1.0<br>If you ever happen to want to link against installed libraries<br>in a given directory, LIBDIR, you must either use libtool, and<br>specify the full pathname of the library, or use the '-LLIBDIR'<br>flag during linking and do at least one of the following:<br>   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable<br>     during execution<br>   - add LIBDIR to the 'LD_RUN_PATH' environment variable<br>     during linking<br>   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag<br>   - have your system administrator add LIBDIR to '/etc/ld.so.conf'<br>See any operating system documentation about shared libraries for<br>more information, such as the ld(1) and ld.so(8) manual pages.<br>----------------------------------------------------------------------<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/plugin'<br>make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/plugin'<br>Making install in testsuite<br>make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/testsuite'<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1/testsuite'<br>make[2]: Nothing to be done for 'install-exec-am'.<br>make[2]: Nothing to be done for 'install-data-am'.<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/testsuite'<br>make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1/testsuite'<br>make[1]: Entering directory '/home/pi/Downloads/gst-python-1.8.1'<br>make[2]: Entering directory '/home/pi/Downloads/gst-python-1.8.1'<br>make[2]: Nothing to be done for 'install-exec-am'.<br>make[2]: Nothing to be done for 'install-data-am'.<br>make[2]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1'<br>make[1]: Leaving directory '/home/pi/Downloads/gst-python-1.8.1'<br>pi@rasp1 ~/Downloads/gst-python-1.8.1 $ </blockquote><div><br></div></div><div style=""><br></div><p class="MsoNormal" style="">Kind regards</p><p class="MsoNormal" style="">JB<span style="font-size:10pt;color:navy;font-family:Arial"> </span> <br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-01 22:34 GMT+02:00 Shishir Pokharel <span dir="ltr"><<a href="mailto:Shishir.Pokharel@on24.com" target="_blank">Shishir.Pokharel@on24.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">For some reason if you do make uninstall and clean "<span style="font-size:10.0pt;font-family:Consolas;color:#242729;background:#eff0f1">Too many levels of symbolic links".
</span>will still persists on gst-python. Try uninstalling gst-python and re-extract from tar file and make install.<u></u><u></u></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">ERROR:root:Could not find any typelib for Gst<br>
Traceback (most recent call last):<br>
  File "gstreamer.py", line 11, in <module><br>
    from gi.repository import Gst as gst<br>
ImportError: cannot import name Gst<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span><p class="MsoNormal">gi is not able to find Gst. Did you configure gstreamer with --enable-introspection=yes and do you have “.gir” files ?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">/Shishir<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<b>On Behalf Of </b>Johannes Bauer<br>
<b>Sent:</b> Friday, July 01, 2016 3:06 AM<br>
<b>To:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
<b>Subject:</b> Re: gst-python-1.8.1<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hello Shishir!<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I really appreciate your input!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I uninstalled the older gstreamer and gi version and added your suggestion to my py-script and now python finds gi but cannot find Gst.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The "make check" on gst-python fails due to "<span style="font-size:10.0pt;font-family:Consolas;color:#242729;background:#eff0f1">Too many levels of symbolic links".</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">gi/overrides/__init__.py is a link to itself. That seems to be the problem here. However I dont know if it is a problem for the installation.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The "make install" puts Gst in /usr/local/lib/python2.7/site-packages/gi/overrides, whereas the rest of gi is installed to /usr/local/lib/python2.7/dist-packages/gi.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I tried copying the content fron site-packages to dist-packages, but it did not help.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Still I get the error msg:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">ERROR:root:Could not find any typelib for Gst<br>
Traceback (most recent call last):<br>
  File "gstreamer.py", line 11, in <module><br>
    from gi.repository import Gst as gst<br>
ImportError: cannot import name Gst<u></u><u></u></p>
</blockquote>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Does anyone know how to resolve that issue?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Kind regards<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">JB <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2016-06-30 19:17 GMT+02:00 Shishir Pokharel <<a href="mailto:Shishir.Pokharel@on24.com" target="_blank">Shishir.Pokharel@on24.com</a>>:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Try setting sys.path.append('path to new version libs') from Python.<br>
<br>
Sent from my iPhone<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
> On Jun 30, 2016, at 08:01, Johannes Bauer <<a href="mailto:hannes_bauer@aon.at" target="_blank">hannes_bauer@aon.at</a>> wrote:<br>
><br>
> Sebastian,<br>
><br>
> thank you very much for your answer.<br>
><br>
> I use pygobject-3.0.0 and i also have a /usr/local/include/pygobject-3.0/pygobject.h,<br>
> but it lacks the definition of PyGObject_Type.<br>
><br>
> I also tried building 3.21.0, but it requires a higher version of gobject-introspection, which fails to build on my system.<br>
><br>
> I compared the sources of pygobject-3.0.0 and 3.21.0 and it seems that they changed pygobject.h in version 3.7.91.<br>
> So i downloaded gyobject-3.8.3 and was able to compile and install gyobject and gst-python-1.8.1.<br>
><br>
> The problem is when I run my python script, stillmy older gst-python 1.2.0 version is used and not version 1.8.1.<br>
><br>
> How can i tell python to use the new gi with gst 1.8.1?<br>
><br>
> Kind regards<br>
><br>
> JB<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><u></u><u></u></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>