GNOME Bugzilla – Bug 730596
gst-python overrides broke due to a recent change in pygobject
Last modified: 2014-10-04 14:53:53 UTC
Allow me to demonstrate this with code: In [1]: from gi.repository import Gst In [2]: Gst.init() Out[2]: [] In [3]: Gst.Caps Out[3]: gi.overrides.Gst.Caps In [4]: Gst.Caps() Out[4]: <GstCaps at 0x2b0ab70> In [5]: Gst.Caps("hi") --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-5-d1c75c0c988e> in <module>() ----> 1 Gst.Caps("hi") TypeError: function takes at most 0 arguments (1 given) In [6]: Gst.Caps.__new__(None, "hi") Out[6]: <GstCaps at 0x2b0ade0> This is the offending commit https://git.gnome.org/browse/pygobject/commit/?id=3a2bfc8bf01fcae386355bc3652780e198e54d49 From IRC (#pitivi): <lazka> you have to add __init__(self, *args, **kwargs): super(..).__init__() <lazka> I didn't think of other overrides (neither did simon it seems).. sorry :/ This issue prevents pitivi from being used in Fedora Rawhide.
Created attachment 277006 [details] [review] fix
The patch is untested btw.