<div dir="ltr">I've not looked in depth at your code, but one thing that may or may not help is adding version requirements for the gi modules before you import them. This should make sure you get the right version. For example:<div>
<br><div><div>import gi</div><div>gi.require_version('GObject', '2.0')</div><div>gi.require_version('Gst', '1.0')</div><div>gi.require_version('GstApp', '1.0')</div><div>gi.require_version('GstController', '1.0')</div>
<div>from gi.repository import GObject, Gst, GstApp, GstController</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 February 2013 13:54, laguillaumie sylvain <span dir="ltr"><<a href="mailto:s.lagui@free.fr" target="_blank">s.lagui@free.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi<br>
<br>
thanks for the reply tim<br>
<br>
i don t have any 0.10 import in my code now can t find why i have errors...<br>
<br>
i pushed my code here:<br>
<a href="https://github.com/smolleyes/gmediafinder-gtk3" target="_blank">https://github.com/smolleyes/<u></u>gmediafinder-gtk3</a><br>
<br>
gst files are in GmediaFinder/lib/player<br>
<br>
if someone can look at player_gui and engine.py and tell me what could be wrong... thnaks a lot :)<br>
<br>
the program now stop on:<div class="im"><br>
<br>
/usr/lib/python2.7/dist-<u></u>packages/gi/types.py:47: Warning: cannot register existing type `GstObject'<br></div><div class="im">
return info.invoke(*args, **kwargs)<br>
/usr/lib/python2.7/dist-<u></u>packages/gi/types.py:47: Warning: g_once_init_leave: assertion `result != 0' failed<br>
return info.invoke(*args, **kwargs)<br>
/usr/lib/python2.7/dist-<u></u>packages/gi/types.py:47: Warning: g_type_register_static: assertion `parent_type > 0' failed<br>
return info.invoke(*args, **kwargs)<br></div>
/usr/lib/python2.7/dist-<u></u>packages/gi/types.py:47: Warning: cannot register existing type `GstChildProxy'<br>
return info.invoke(*args, **kwargs)<br>
<br>
thanks<br>
<br>
Le 31/01/2013 23:37, Tim-Philipp Müller a écrit :<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, 2013-01-31 at 22:36 +0100, laguillaumie sylvain wrote:<br>
<br>
Hi,<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i try to port my app to gtk3/gst1.0 but have some errors i dont<br>
understand i can post my code if needed but does someone have an idear<br>
on the followings errors...<br>
<br>
i post in pygtk and gst list but i have this crash since i used :<br>
<br>
self.player.videosink = Gst.ElementFactory.make('<u></u>xvimagesink')<br>
<br>
<br>
/usr/lib/python2.7/dist-<u></u>packages/gi/types.py:47: Warning: cannot<br>
register existing type `GstObject'<br>
</blockquote>
This likely means that for some reason both the old GStreamer 0.10 and<br>
the new GStreamer 1.0 are being loaded or used in the application. Both<br>
can't co-exist in the same application (only in different applictions on<br>
the same system).<br>
<br>
Cheers<br>
-Tim<br>
<br>
<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<u></u>freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/gstreamer-<u></u>devel</a><br>
</div></div></blockquote></div><br></div>