| Summary: | Porthole ImportError + solution | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | viktor |
| Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | 2004.1 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
It works with pygtk-2.0.0-r1, but you really need pyxml-0.8.3. Fixed in 0.3.1. |
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!).