Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50029 - Running straw gives "No module named pygtk" and "'module' object has no attribute 'DefaultHandler'"
Summary: Running straw gives "No module named pygtk" and "'module' object has no attri...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 49877
  Show dependency tree
 
Reported: 2004-05-04 14:57 UTC by Tor Klingberg
Modified: 2004-06-27 08:50 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 Tor Klingberg 2004-05-04 14:57:18 UTC
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.
Comment 1 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-05-06 14:40:28 UTC
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.
Comment 2 Tor Klingberg 2004-05-07 14:46:04 UTC
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
Comment 3 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-06-27 08:50:12 UTC
Straw seems to work ok with pyxml-0.8.2, probably your instalation was broken.