TypeError: unknown type GstValueList, GstIntRange in GstStructure
All-In-One PyGI/PyGObject for Windows Installer
Status: Abandoned
Brought to you by:
tumagonx
I'm trying to translate Gstreamer tutorials
http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials
to Python 2.7.
In basic tutorial 6 (see the Python code in the attachment)
http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials/basic-tutorial-6.c
I get the following errors:
TypeError: unknown type GstValueList
TypeError: unknown type GstIntRange
The problem seems to be in GstStructure object. When I break on line 30 and try
structure.nth_field_name(0)
'format'
structure.get_value('format')
I get this error:
error: unknown type GstValueList
From the documentation it seems that this type should be Gst.ValueList
Is this a bug, or am I missing something here?
Thanks, Tom
Thanks,
it seems all varargs introspection are corrupted under windows
Just a test, does this attached typelib works for you?
sorry, I think that's not the problem. Under win32api headers arglist always called "..." as long it's varargs type it should be fine.
BTW, have you check the gst introspection docs which came with pygi aio?
Last edit: tumagonx 2015-05-24
I tried the typelib, it didn't make a difference.
What 'introspection docs'? Do you mean the devhelp or something else?
In devhelp, under Gst 1.0 Classes there are:
Gst.ValueList
Gst.IntRange
and similar.