Dear Friends,
I am working in a pygtk project with Gtk2. As part of modification I need to include Gstreamer 1.0 instead of 0.1. In my old system can use
import sys, os, os.path, time
import pygst
pygst.require("0.1")
import gst
But I don't know how to add new version of GStreamer ... I try above one with change in version as
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GObject, Gst, Gtk
got error as :
import gi
File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 39, in <module>
raise ImportError(_static_binding_error)
ImportError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See:
https://bugzilla.gnome.org/show_bug.cgi?id=709183Please advise the right way..
thanks
Anes