| Summary: | Running straw gives "No module named pygtk" and "'module' object has no attribute 'DefaultHandler'" | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Tor Klingberg <tor.klingberg> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 49877 | ||
do you have pyxml installed? if you have, try to reemerge it. btw, this version of straw is really outdated (released on 2003-09-07). try updating it to newer release. I had pyxml 0.8.2 installed. After emerging to 0.8.3 Straw is working. Shouldn't Straw depend on pyxml 0.8.3 then, so it will be emerged automatically? I do get a (straw:6743): Gtk-WARNING **: gtkwidget.c:2781: widget `GnomeApp' has no activatable signal "delete_event" without arguments when I run Straw, but it doesn't seem to matter. Also, Straw 0.19.2 is the latest version available in portage without mask (I just did emerge sync). It it's so old I guess one of the newer versions should be unmasked. Ah, and thanks Lukasz! /Tor Straw seems to work ok with pyxml-0.8.2, probably your instalation was broken. |
I just emerged straw (net-www/straw 0.19.2), but when I try to run it i get this: Traceback (most recent call last): File "/usr/bin/straw", line 30, in ? import straw File "/usr/lib/python2.3/site-packages/straw/__init__.py", line 17, in ? from Main import Main File "/usr/lib/python2.3/site-packages/straw/Main.py", line 8, in ? import pygtk ImportError: No module named pygtk My python version: 2.3.3 dev-python/pygtk version: 2.0.0 (2.0.0-r1 is latest) From make.conf: USE="X gtk gnome -qt -kde alsa cdr cups foomaticdb ppds usb oggvorbis" Updating dev-python/pygtk changes the error to: Traceback (most recent call last): File "/usr/bin/straw", line 30, in ? import straw File "/usr/lib/python2.3/site-packages/straw/__init__.py", line 21, in ? from SummaryParser import SummaryParser File "/usr/lib/python2.3/site-packages/straw/SummaryParser.py", line 55, in ? class HandlerBase(saxutils.DefaultHandler): AttributeError: 'module' object has no attribute 'DefaultHandler' Reproducible: Always Steps to Reproduce: 1. 2. 3.