Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50744 - Porthole ImportError + solution
Summary: Porthole ImportError + solution
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-11 06:18 UTC by viktor
Modified: 2004-06-26 09:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description viktor 2004-05-11 06:18:43 UTC
After emerging and running porthole, there were the following traceback:

Traceback (most recent call last):
  File "/usr/bin/porthole", line 40, in ?
    import utils
  File "/usr/lib/porthole/utils.py", line 36, in ?
    from xmlmgr import XMLManager, XMLManagerError
  File "/usr/lib/porthole/xmlmgr.py", line 63, in ?
    from xml.dom.ext import PrettyPrint
ImportError: No module named ext

So upgraded pyxml (0.8.3 over 0.8.1), then:

Traceback (most recent call last):
  File "/usr/bin/porthole", line 42, in ?
    from mainwindow import MainWindow
  File "/usr/lib/porthole/mainwindow.py", line 25, in ?
    import pygtk; pygtk.require("2.0") # make sure we have the right version
  File "/usr/lib/python2.3/site-packages/pygtk.py", line 44, in require
    assert not sys.modules.has_key('gtk'), \
AssertionError: pygtk.require() must be called before importing gtk

Then emerge pygtk (2.2.0 over 2.0.0), and it works!

So porthole depends on pyxml-0.8.3 and pygtk-2.2.0.

Maybe lower versions are OK, didn't test it, it's wrong habit from ebuilds require a specific wersion of packages the ebuild maintaner had, forcing me to unnecessary upgraded (via modem line!).
Comment 1 Lars Weiler (RETIRED) gentoo-dev 2004-05-13 19:53:27 UTC
It works with pygtk-2.0.0-r1, but you really need pyxml-0.8.3.
Comment 2 Ian Leitch (RETIRED) gentoo-dev 2004-06-26 09:39:43 UTC
Fixed in 0.3.1.