[twill] Can't run twill-sh

Titus Brown titus at caltech.edu
Tue Mar 14 09:55:38 PST 2006


On Mon, Mar 13, 2006 at 08:29:56AM -0800, Titus Brown wrote:
-> On Mon, Mar 13, 2006 at 06:18:55AM -0500, Hancock, David (DHANCOCK) wrote:
-> -> Oops, spoke too soon. Running twill-sh as root, no traceback. Running as
-> -> an unprivileged user, here's the traceback:
-> 
-> [ munch ]
-> 
-> -> "/usr/local/lib/python2.4/site-packages/twill-0.8.4a5-py2.4.egg/twill/pa
-> -> rse.py", line 9, in ?
-> ->     from pyparsing import OneOrMore, Word, printables, quotedString,
-> -> Optional, \
-> ->   File
-> -> "/usr/local/lib/python2.4/site-packages/twill-0.8.4a5-py2.4.egg/twill/ot
-> -> her_packages/pyparsing.py", line 2373, in ?
-> ->     _escapedHexChar = Combine( Suppress(_bslash + "0x") + Word(hexnums)
-> -> ).setParseAction(lambda s,l,t:unichr(int(t[0],16)))
-> ->   File
-> -> "/usr/local/lib/python2.4/site-packages/twill-0.8.4a5-py2.4.egg/twill/ot
-> -> her_packages/pyparsing.py", line 2199, in __init__
-> ->     self.leaveWhitespace()
-> ->   File
-> -> "/usr/local/lib/python2.4/site-packages/twill-0.8.4a5-py2.4.egg/twill/ot
-> -> her_packages/pyparsing.py", line 1874, in leaveWhitespace
-> ->     self.expr = copy.copy(self.expr)
-> ->   File "/usr/local/lib/python2.4/copy.py", line 87, in copy
-> ->     copier = _getspecial(cls, "__copy__")
-> ->   File "/usr/local/lib/python2.4/copy.py", line 67, in _getspecial
-> ->     for basecls in inspect.getmro(cls):
-> -> AttributeError: 'module' object has no attribute 'getmro'
-> -> [dhancock at dhancock DEV dhancock]$

Just for everyone's edification: Paul McGuire (pyparsing author) figured
out that something weird was happening with the 'inspect' module, and
then David discovered that his Webware install had put a new 'inspect'
in the path.

cheers,
--titus



More information about the twill mailing list