gobject-introspection

GStreamer error “assertion 'GST_IS_ELEMENT (src)' failed” when linking elements

♀尐吖头ヾ 提交于 2019-11-29 16:06:29
I'm working on a GStreamer-based program using Python and the GObject introspection bindings. I'm trying to build this pipeline: videomixer name=mix ! autovideosink \ uridecodebin uri=v4l2:///dev/video0 ! mix. The pipeline works perfectly using gst-launch-1.0, but my Python program gives the errors: (minimal.py:12168): GStreamer-CRITICAL **: gst_element_link_pads_full: assertion 'GST_IS_ELEMENT (src)' failed on_error(): (GError('Internal data flow error.',), 'gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstV4l2Src:source:\nstreaming task paused

Error “Could not find any typelib for Gtk” with Python3 and GTK3

不羁岁月 提交于 2019-11-28 05:30:48
问题 I cannot make Python3 work with GTK3. I'm in a cluster context and I had everything recompiled from the sources. When I run a simple example : from gi.repository import Gtk win = Gtk.Window() win.connect("delete-event", Gtk.main_quit) win.show_all() Gtk.main() I have the following error : ERROR:root:Could not find any typelib for Gtk Traceback (most recent call last): File "gtk3_example.py", line 2, in from gi.repository import Gtk ImportError: cannot import name 'Gtk' 回答1: There are