[twill] twill, ez_setup and Python 2.4

Michele Simionato michele.simionato at gmail.com
Wed Feb 8 06:24:03 PST 2006

Today I tried to install twill with ez_setup.py and I have got problems
with ClientForm:

$ sudo python2.4 ez_setup.py twill
Searching for twill
Reading http://www.python.org/pypi/twill/
Reading http://www.idyll.org/~t/www-tools/twill.html
Best match: twill 0.8.2
Downloading http://darcs.idyll.org/~t/projects/twill-0.8.2.tar.gz
Processing twill-0.8.2.tar.gz
Running twill-0.8.2/setup.py -q bdist_egg --dist-dir
zip_safe flag not set; analyzing archive contents...
twill.__init__: module references __file__
Adding twill 0.8.2 to easy-install.pth file
Installing twill-sh script to /usr/bin
Installing twill-fork script to /usr/bin

Installed /usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg
Processing dependencies for twill

$ python2.4
Python 2.4.2 (#2, Nov 20 2005, 17:04:48)
[GCC 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import twill
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/__init__.py",
line 44, in ?
    from shell import TwillCommandLoop
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/shell.py",
line 12, in ?
    from twill import commands, parse, __version__
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/commands.py",
line 61, in ?
    browser = TwillBrowser()
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/browser.py",
line 35, in __init__
    factory = ConfigurableParsingFactory()
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/utils.py",
line 252, in __init__
    self.bs_ff = mechanize.RobustFormsFactory()
  File "/usr/lib/python2.4/site-packages/twill-0.8.2-py2.4.egg/twill/wwwsearch/mechanize/_html.py",
line 380, in __init__
    args.form_parser_class = ClientForm.RobustFormParser
AttributeError: 'module' object has no attribute 'RobustFormParser'

Is this expected? I though ClientForm was included in the distribution.

 Michele Simionato

More information about the twill mailing list