[twill] Can't run twill-sh

Hancock, David (DHANCOCK) DHANCOCK at arinc.com
Mon Mar 13 03:18:55 PST 2006

Oops, spoke too soon. Running twill-sh as root, no traceback. Running as
an unprivileged user, here's the traceback:

[dhancock at dhancock DEV dhancock]$ which twill-sh
[dhancock at dhancock DEV dhancock]$ twill-sh
Traceback (most recent call last):
  File "/usr/local/bin/twill-sh", line 5, in ?
    pkg_resources.run_script('twill==0.8.4a5', 'twill-sh')
esources.py", line 407, in run_script
    self.require(requires)[0].run_script(script_name, ns)
esources.py", line 920, in run_script
    execfile(script_filename, namespace, namespace)
/scripts/twill-sh", line 20, in ?
    from twill import TwillCommandLoop, execute_file, __version__
init__.py", line 44, in ?
    from shell import TwillCommandLoop
ell.py", line 12, in ?
    from twill import commands, parse, __version__
rse.py", line 9, in ?
    from pyparsing import OneOrMore, Word, printables, quotedString,
Optional, \
her_packages/pyparsing.py", line 2373, in ?
    _escapedHexChar = Combine( Suppress(_bslash + "0x") + Word(hexnums)
).setParseAction(lambda s,l,t:unichr(int(t[0],16)))
her_packages/pyparsing.py", line 2199, in __init__
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]$

David Hancock | dhancock at arinc.com | 410-266-4384 

-----Original Message-----
From: twill-bounces at lists.idyll.org
[mailto:twill-bounces at lists.idyll.org] On Behalf Of Hancock, David
Sent: Monday, March 13, 2006 6:13 AM
To: titus at idyll.org
Cc: twill at lists.idyll.org
Subject: Re: [twill] Can't run twill-sh

Well, if getting "microsofty" works, I can't argue with it. I did the
easy_install of 0.8.4a5 and now twill-sh works. I stupidly forgot to
paste a complete traceback before I upgraded, so I can't show that. The
twill-sh was and is in /usr/local/bin.

Sorry about no traceback, but because it's changing in 0.8.4, it may not
be worth troubleshooting anyway.

Thanks for the fix, and
David Hancock | dhancock at arinc.com | 410-266-4384 

-----Original Message-----
From: Titus Brown [mailto:titus at caltech.edu] 
Sent: Monday, March 13, 2006 12:03 AM
To: Hancock, David (DHANCOCK)
Cc: twill at lists.idyll.org
Subject: Re: [twill] Can't run twill-sh

On Sun, Mar 12, 2006 at 08:36:24PM -0500, Hancock, David (DHANCOCK)
-> WhiteBox Linux 3.0 (RHEL 3.0 clone), Python 2.4.2, twill 0.8.3.
-> I picked up the latest twill, and installed it with python setup.py
-> install, and when I run twill-sh, I get:
-> 	AttributeError: 'module' object has no attribute 'getmro'
-> I'm not very familiar with Python eggs or easy-install, but an
-> easy-install.pth did get updated in
-> /usr/local/lib/python2.4/site-packages with the path to the
-> egg.
-> Has anybody got a clue for me? Or a place to look for more

Hi, David,

that's an odd one!  I can't think of anything twill-specific about that
error message -- which is not to say that it's not caused by twill, just
that I have no idea what's causing it!  There have been various Windows
issues, but not this message in particular; plus, you're on Linux ;).

Can you report back on a few things?

  - did twill-sh get installed in /usr/bin/ (or /usr/local/bin)?
  - is there a traceback of any kind?

I hate to act all Microsoft-y on you, but you might try upgrading to the
latest twill, which does the twill-sh script in a completely different
way.  You can get it by doing something like

	easy_install -f http://issola.caltech.edu/~t/dist -U twill

or saying

	wget http://issola.caltech.edu/~t/dist/twill-0.8.4a5-py2.4.egg
	easy_install twill-0.8.4*.egg


twill mailing list
twill at lists.idyll.org

More information about the twill mailing list