Python coder. OrF problems related to the Python language we redirect you over to Online Python docs. There are also some example coding distributed with the PyGST source which you may browse at the gst-python git repository. Reference documents for GStreamer and the rest of the ecosystem it relies on are aavilable at laza'sk GitHub site.
This isn't a really happy combination, but it does work for the most of the time. However, I just bumped into a problem with Gio.File. This will always result in TypeError and Python segfaulting:
Is there a way around this? I'd like to use Gio for file copy operations so that I can provide users with some feedback.
David Planella11.6k66 gold badges6464 silver badges124124 bronze badges
BigWhaleBigWhale
2 Answers
What version of Ubuntu are you on? At this point, you actually shouldn't be able to use PyGI with any of the old static pygobject stuff. If this was working, it was pretty much by accident. On Precise anyway, if the order of the imports is reversed, you get an exception explaining the issue:
As a work around, can you have your UI call a helper script, and in that script only use the static gst/gobject stuff?
Although very bleeding edge still, GStreamer 1.0 completely supports PyGI. There are packages in Quantal, and backports are available for Precise. See my GStreamer 1.0 Python Porting Guide.
jderosejderose53911 gold badge55 silver badges1313 bronze badges
You can't combine Gobject introspection and the static GStreamer bindings, it causes crashes and problems. You need to use introspection for GStreamer too, and this is really only supported with the 0.11/1.0 releases.
Christian SchallerChristian Schaller