GNOME Bugzilla – Bug 357310
ltihooks screw up importing pygtk and twisted
Last modified: 2006-12-10 19:47:27 UTC
in an uninstalled copy of gst-python, running a simple program: import gtk from twisted.internet import reactor tracebacks with Traceback (most recent call last):
+ Trace 73050
from twisted.internet import reactor
self.ensure_fromlist(m, fromlist)
submod = self.import_it(sub, subname, m)
m = self.loader.load_module(fqname, stuff)
m = self.hooks.load_source(name, filename, file)
return imp.load_source(name, filename, file)
from twisted.internet import selectreactor
parent = self.determine_parent(globals)
if '.' in pname:
One of the reasons for this (as can be seen with python -v) is that the uninstalled copy has an ltihooks file, which the installed version of pygtk tries to import in the gtk module.
fixed in CVS, closing.