GNOME Bugzilla – Bug 726493
Gst overrides do not work on Python 3.3, but do on Python 2.7
Last modified: 2014-04-26 08:16:20 UTC
I'm only loosely testing this, as part of Fedora packaging of gst-python; I'm using http://bazaar.launchpad.net/~jderose/+junk/gst-examples/view/head:/video-player-1.0 as my test script, with "filename" on line 15 suitably altered. If I run this as "python2 video-player-1.0", it works fine with gst-python 1.2.0 installed. If I run it as "python3" video-player-1.0", I get a traceback in the Gst overrides: Traceback (most recent call last):
+ Trace 233351
p = Player();
self.pipeline = Gst.Pipeline()
Gst.Pipeline.__init__(self, name=name)
This seems pretty major.. (confirmed on debian with python3-gst-1.0 package from experimental as well, on IRC).
I encountered the same problem with this code: #!/usr/bin/env python3 import gi gi.require_version('Gst', '1.0') from gi.repository import Gst print(Gst.version()) src = Gst.ElementFactory.make('filesrc', None) Stacktrace $./gst01.py (1, 2, 3, 0) Traceback (most recent call last):
+ Trace 233378
src = Gst.ElementFactory.make('filesrc', None)
return Gst.ElementFactory.make(factory_name, instance_name) AttributeError: 'NoneType' object has no attribute 'ElementFactory' \$
Solved it by removing the package python3-gst-1.0 and only keeping python3-gi + gir1.2-gstreamer-1.0.
This stops gnome-music from starting as well here on Gentoo.
It should have been fixed with the fix for: https://bugzilla.gnome.org/show_bug.cgi?id=726921 could you check the latest 1.2 branch, and I will release 1.2.1 when someone confirms it is fixed there.
Note that it also works with Python 3.4 without any changes... but this is indeed a dup of bug #726921. I can confirm this here with Python 3.3. *** This bug has been marked as a duplicate of bug 726921 ***