[gstreamer-bugs] [Bug 353808] import gst throws an exception when imported after gtk
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Sep 7 18:57:07 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=353808
GStreamer | gst-python | Ver: HEAD CVS
René Stadler changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mail at renestadler.de
------- Comment #7 from René Stadler 2006-09-08 01:56 UTC -------
(In reply to comment #0)
[...]
> Steps to reproduce:
> 1. get cvs gst-python
> 2. Create testscript.py containing:
> import gtk
> import gst
> print "hello world"
>
[...]
I cannot reproduce this, but I can say that this program is a bit too
minimalistic. You have to do something like:
import pygtk
pygtk.require ("2.0")
import gtk
import pygst
pygst.require ("0.10")
import gst
This ensures that the correct bindings are selected if your system has multiple
versions available (on my system, "import gst" happily imports 0.8 bindings
otherwise). To do so, IIRC it does some messing with the module search path,
so I suspect this to be the source of your problem.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list