<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">gi is not able to find Gst. Did you configure gstreamer with --enable-introspection=yes and do you have “.gir” files ?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/Shishir<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></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:gstreamer-devel-bounces@lists.freedesktop.org]
<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 <gstreamer-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: gst-python-1.8.1<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello Shishir!<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I really appreciate your input!<o:p></o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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><o:p></o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I tried copying the content fron site-packages to dist-packages, but it did not help.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Still I get the error msg:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></p>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Does anyone know how to resolve that issue?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">JB <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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>>:<o:p></o:p></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<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
> On Jun 30, 2016, at 08:01, Johannes Bauer <<a href="mailto:hannes_bauer@aon.at">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">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><o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>