After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357310 - ltihooks screw up importing pygtk and twisted
ltihooks screw up importing pygtk and twisted
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-python
0.10.5
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-09-23 10:42 UTC by Thomas Vander Stichele
Modified: 2006-12-10 19:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thomas Vander Stichele 2006-09-23 10:42:42 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):
  • File "bad.py", line 2 in ?
    from twisted.internet import reactor
  • File "/usr/lib/python2.4/ihooks.py", line 409 in import_module
    self.ensure_fromlist(m, fromlist)
  • File "/usr/lib/python2.4/ihooks.py", line 474 in ensure_fromlist
    submod = self.import_it(sub, subname, m)
  • File "/usr/lib/python2.4/ihooks.py", line 495 in import_it
    m = self.loader.load_module(fqname, stuff)
  • File "/usr/lib/python2.4/ihooks.py", line 270 in load_module
    m = self.hooks.load_source(name, filename, file)
  • File "/usr/lib/python2.4/ihooks.py", line 168 in load_source
    return imp.load_source(name, filename, file)
  • File "/usr/lib/python2.4/site-packages/twisted/internet/reactor.py", line 11 in ?
    from twisted.internet import selectreactor
  • File "/usr/lib/python2.4/ihooks.py", line 403 in import_module
    parent = self.determine_parent(globals)
  • File "/usr/lib/python2.4/ihooks.py", line 420 in determine_parent
    if '.' in pname:
TypeError: iterable argument required

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.
Comment 1 Thomas Vander Stichele 2006-09-23 10:43:39 UTC
fixed in CVS, closing.