[twill] Can't run twill-sh

Titus Brown titus at caltech.edu
Mon Mar 13 08:29:56 PST 2006


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]$

OK, so it's happening in the standard lib as called by pyparsing.  Very
odd.  I'll see if Paul McGuire (the pyparsing author) has any ideas.

If you could try just one more thing... ;) Could you download the
.tar.gz, unpack it, and use 'python setup.py install' to install it?
This should install it as something other than an egg, if I'm not
mistaken.

thanks,
--titus



More information about the twill mailing list