gst-python-1.8.1

Shishir Pokharel Shishir.Pokharel at on24.com
Fri Jul 1 20:34:13 UTC 2016


For some reason if you do make uninstall and clean "Too many levels of symbolic links". will still persists on gst-python. Try uninstalling gst-python and re-extract from tar file and make install.

ERROR:root:Could not find any typelib for Gst
Traceback (most recent call last):
  File "gstreamer.py", line 11, in <module>
    from gi.repository import Gst as gst
ImportError: cannot import name Gst

gi is not able to find Gst. Did you configure gstreamer with --enable-introspection=yes and do you have “.gir” files ?

/Shishir


From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Johannes Bauer
Sent: Friday, July 01, 2016 3:06 AM
To: Discussion of the development of and with GStreamer <gstreamer-devel at lists.freedesktop.org>
Subject: Re: gst-python-1.8.1

Hello Shishir!

I really appreciate your input!
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.

The "make check" on gst-python fails due to "Too many levels of symbolic links".
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.

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.

I tried copying the content fron site-packages to dist-packages, but it did not help.
Still I get the error msg:

ERROR:root:Could not find any typelib for Gst
Traceback (most recent call last):
  File "gstreamer.py", line 11, in <module>
    from gi.repository import Gst as gst
ImportError: cannot import name Gst

Does anyone know how to resolve that issue?

Kind regards
JB


2016-06-30 19:17 GMT+02:00 Shishir Pokharel <Shishir.Pokharel at on24.com<mailto:Shishir.Pokharel at on24.com>>:
Try setting sys.path.append('path to new version libs') from Python.

Sent from my iPhone

> On Jun 30, 2016, at 08:01, Johannes Bauer <hannes_bauer at aon.at<mailto:hannes_bauer at aon.at>> wrote:
>
> Sebastian,
>
> thank you very much for your answer.
>
> I use pygobject-3.0.0 and i also have a /usr/local/include/pygobject-3.0/pygobject.h,
> but it lacks the definition of PyGObject_Type.
>
> I also tried building 3.21.0, but it requires a higher version of gobject-introspection, which fails to build on my system.
>
> 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.
> So i downloaded gyobject-3.8.3 and was able to compile and install gyobject and gst-python-1.8.1.
>
> 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.
>
> How can i tell python to use the new gi with gst 1.8.1?
>
> Kind regards
>
> JB
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160701/50937dbd/attachment-0001.html>


More information about the gstreamer-devel mailing list