<div dir="ltr">Make sure you have the GstVideo-1.0.typelib installed (from the gir1.2-gst-plugins-base-1.0 package). The example should also require GstVideo 1.0 which would hopefully give a more reasonable error message for this situation:<div>
<br><div><div>gi.require_version('GstVideo', '1.0')</div><div>from gi.repository import GstVideo</div></div></div><div><br></div><div style>-Simon</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Apr 2, 2013 at 12:17 AM, Kip Warner <span dir="ltr"><<a href="mailto:kip@thevertigo.com" target="_blank">kip@thevertigo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey list,<br>
<br>
I'm having problems running one of the gst-examples here:<br>
<br>
<<a href="http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/video-player-1.0" target="_blank">http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/video-player-1.0</a>><br>
<br>
$ ./video-player-1.0<br>
Traceback (most recent call last):<br>
File "./video-player-1.0", line 10, in <module><br>
from gi.repository import GdkX11, GstVideo<br>
File "/usr/lib/python3/dist-packages/gi/importer.py", line 76,<br>
in load_module<br>
dynamic_module._load()<br>
File "/usr/lib/python3/dist-packages/gi/module.py", line 222,<br>
in _load<br>
version)<br>
File "/usr/lib/python3/dist-packages/gi/module.py", line 90,<br>
in __init__<br>
repository.require(namespace, version)<br>
gi.RepositoryError: Requiring namespace 'Gst' version '0.10',<br>
but '1.0' is already loaded<br>
<br>
$ ls /usr/share/gir-1.0/<br>
Atk-1.0.gir<br>
GdkPixbuf-2.0.gir<br>
GstBase-1.0.gir<br>
PangoCairo-1.0.gir<br>
cairo-1.0.gir<br>
GdkX11-2.0.gir<br>
GstCheck-1.0.gir<br>
PangoFT2-1.0.gir<br>
DBus-1.0.gir<br>
GdkX11-3.0.gir<br>
GstController-1.0.gir<br>
PangoXft-1.0.gir<br>
DBusGLib-1.0.gir<br>
Gio-2.0.gir<br>
GstNet-1.0.gir<br>
Unity-5.0.gir<br>
fontconfig-2.0.gir<br>
GIRepository-2.0.gir<br>
Gtk-2.0.gir<br>
Vte-2.90.gir<br>
freetype2-2.0.gir<br>
GL-1.0.gir<br>
Gtk-3.0.gir<br>
xfixes-4.0.gir<br>
GConf-2.0.gir<br>
GLib-2.0.gir<br>
GtkSource-3.0.gir<br>
xft-2.0.gir<br>
GDesktopEnums-3.0.gir<br>
GModule-2.0.gir<br>
GTop-2.0.gir<br>
xlib-2.0.gir<br>
Gdk-2.0.gir<br>
GObject-2.0.gir<br>
libxml2-2.0.gir<br>
xrandr-1.3.gir<br>
Gdk-3.0.gir<br>
Gst-1.0.gir<br>
Pango-1.0.gir<br>
<br>
$ uname -a<br>
Linux 3.5.0-27-generic #45~precise1-Ubuntu SMP Wed Mar 20<br>
22:07:15 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux<br>
<br>
My guess is GstVideo might need Gst at version 0.10, but the application<br>
probably needs Gst 1.0. Any help appreciated.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kip Warner -- Software Engineer<br>
OpenPGP encrypted/signed mail preferred<br>
<a href="http://www.thevertigo.com" target="_blank">http://www.thevertigo.com</a><br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>