Re: python binding - Gst.Message.new_error doesn't know how many arguments it wants

Jan Spurný JSpurny at seznam.cz
Thu Oct 29 09:10:20 PDT 2015


Nevermind, I just reported it - I didn't know a code example must be 
indented:

https://bugzilla.gnome.org/show_bug.cgi?id=757323


---------- Původní zpráva ----------
Od: Jan Spurný <JSpurny at seznam.cz>
Komu: Discussion of the development of and with GStreamer <gstreamer-devel@
lists.freedesktop.org>
Datum: 29. 10. 2015 17:01:22
Předmět: Re: python binding - Gst.Message.new_error doesn't know how many 
arguments it wants

"
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.

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...

So as I'm unable to file a bugreport, would you be so kind and report it 
instead of me?


---------- Původní zpráva ----------
Od: Thibault Saunier <tsaunier at gnome.org>
Komu: Discussion of the development of and with GStreamer <gstreamer-devel@
lists.freedesktop.org>
Datum: 29. 10. 2015 15:46:22
Předmět: Re: python binding - Gst.Message.new_error doesn't know how many 
arguments it wants

"Hello,

I confirm there is a bug here, and I have the feeling that it is in
PyGObject which getting messed up because of the GError which it does
not know how to deal with (usually GError are out arguments and are
used by PyGObject to throw exceptions).

Please open a bug report :)

Regards,

Thibault

On Thu, Oct 29, 2015 at 12:56 PM, Jan Spurný <JSpurny at seznam.cz> wrote:
> Hi,
>
> I encountered really weird behaviour of Gst.Message.new_error - according 
to
> documentation, it should accept 3 arguments - src, error and debug. But if
I
> pass 3 arguments, it throws an exception complaining that it needs 2
> arguments. When I pass 2 arguments, it suddenly wants 3. I'm stuck, 
because I
> can't use it.
>
> This is how to reproduce the behaviour:
>
>>>> import gi
>>>> gi.require_version('Gst', '1.0')
>>>> from gi.repository import Gst
>>>> Gst.init(None)
> []
>>>> o = Gst.ElementFactory.make('fakesink')
>>>> e = Gst.Message.new_error(o, None, None)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: new_error() takes exactly 2 arguments (3 given)
>>>> e = Gst.Message.new_error(o, None)
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: new_error() takes exactly 3 argument(s) (2 given)
>>>>
>
> Debian Linux 8.2 amd64, python2.7, gstreamer 1.4.4.0
>
> Am I doing something wrong or am I forgetting something?
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151029/f813b89f/attachment.html>


More information about the gstreamer-devel mailing list