<html><body>Nevermind, I just reported it - I didn't know a code example must be indented:<br><br>https://bugzilla.gnome.org/show_bug.cgi?id=757323<br><br><p>---------- Původní zpráva ----------<br>Od: Jan Spurný <JSpurny@seznam.cz><br>Komu: Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>Datum: 29. 10. 2015 17:01:22<br>Předmět: Re: python binding - Gst.Message.new_error doesn't know how many
 arguments it wants</p><br><blockquote><div>Unfortunately, I'm unable to file a bug in bugzilla under pygobject - I tried to file it under gstreamer python binding 2 days ago and it didn't worked either.<br><br>But I was able to report that I cant report under bugzilla component - https://bugzilla.gnome.org/show_bug.cgi?id=757210 - aparently I'm not the only one with this problem...<br><br>So as I'm unable to file a bugreport, would you be so kind and report it instead of me?<br><br><p>---------- Původní zpráva ----------<br>Od: Thibault Saunier <tsaunier@gnome.org><br>Komu: Discussion of the development of and with GStreamer <gstreamer-devel@lists.freedesktop.org><br>Datum: 29. 10. 2015 15:46:22<br>Předmět: Re: python binding - Gst.Message.new_error doesn't know how many
arguments it wants</p><br><blockquote>Hello,<br><br>I confirm there is a bug here, and I have the feeling that it is in<br>PyGObject which getting messed up because of the GError which it does<br>not know how to deal with (usually GError are out arguments and are<br>used by PyGObject to throw exceptions).<br><br>Please open a bug report :)<br><br>Regards,<br><br>Thibault<br><br>On Thu, Oct 29, 2015 at 12:56 PM, Jan Spurný <JSpurny@seznam.cz> wrote:<br>> Hi,<br>><br>> I encountered really weird behaviour of Gst.Message.new_error - according to<br>> documentation, it should accept 3 arguments - src, error and debug. But if I<br>> pass 3 arguments, it throws an exception complaining that it needs 2<br>> arguments. When I pass 2 arguments, it suddenly wants 3. I'm stuck, because I<br>> can't use it.<br>><br>> This is how to reproduce the behaviour:<br>><br>>>>> import gi<br>>>>> gi.require_version('Gst', '1.0')<br>>>>> from gi.repository import Gst<br>>>>> Gst.init(None)<br>> []<br>>>>> o = Gst.ElementFactory.make('fakesink')<br>>>>> e = Gst.Message.new_error(o, None, None)<br>> Traceback (most recent call last):<br>> File "<stdin>", line 1, in <module><br>> TypeError: new_error() takes exactly 2 arguments (3 given)<br>>>>> e = Gst.Message.new_error(o, None)<br>> Traceback (most recent call last):<br>> File "<stdin>", line 1, in <module><br>> TypeError: new_error() takes exactly 3 argument(s) (2 given)<br>>>>><br>><br>> Debian Linux 8.2 amd64, python2.7, gstreamer 1.4.4.0<br>><br>> Am I doing something wrong or am I forgetting something?<br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>_______________________________________________<br>gstreamer-devel mailing list<br>gstreamer-devel@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</blockquote></div>_______________________________________________<br>gstreamer-devel mailing list<br>gstreamer-devel@lists.freedesktop.org<br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</blockquote></body></html>