[twill] Twill shell can't find pp_get_title?

Ramon Felciano felciano at ingenuity.com
Fri Nov 3 12:45:27 PST 2006

I reinstalled everything and found one possible problem: should twill be
automatically installing a preferred version of mechanize? I was a bit
surprised to not see anything printed to the console after the
"Processing dependencies for twill" line...


C:\>easy_install twill
Searching for twill
Reading http://www.python.org/pypi/twill/
Reading http://twill.idyll.org/
Reading http://www.python.org/pypi/twill/0.8.5
Best match: twill 0.8.5
Downloading http://darcs.idyll.org/~t/projects/twill-0.8.5.tar.gz
Processing twill-0.8.5.tar.gz
Running twill-0.8.5\setup.py -q bdist_egg --dist-dir
zip_safe flag not set; analyzing archive contents...
twill.commands: module references __file__
twill.__init__: module references __file__
Adding twill 0.8.5 to easy-install.pth file
Installing twill-sh-script.py script to C:\Python25\Scripts
Installing twill-sh.exe script to C:\Python25\Scripts
Installing twill-fork script to C:\Python25\Scripts

Installed c:\python25\lib\site-packages\twill-0.8.5-py2.5.egg
Processing dependencies for twill

Traceback (most recent call last):
  File "C:\Python25\Scripts\twill-sh-script.py", line 8, in <module>
    load_entry_point('twill==0.8.5', 'console_scripts', 'twill-sh')()
py", line 236, in load_entry_point
py", line 2097, in load_entry_point
py", line 1830, in load
line 52, in <module>
    from shell import TwillCommandLoop
line 9, in <module>
    from twill import commands, parse, __version__
line 62, in <module>
    from browser import TwillBrowser
line 15, in <module>
    import mechanize, ClientCookie, ClientForm
ImportError: No module named mechanize

-----Original Message-----
From: Titus Brown [mailto:titus at caltech.edu] 
Sent: Friday, November 03, 2006 10:00 AM
To: Ramon Felciano
Cc: twill at lists.idyll.org
Subject: Re: [twill] Twill shell can't find pp_get_title?

-> I'm having difficulty running twill on a fresh Python 2.5 install. 
-> I'm getting stack trace below. There was a message last month about 
-> this, and Titus suggested it was due to an outdated version of
-> However, this is a clean install and I explicitly downloaded and 
-> installed the latest mechanize (mechanize-0.1.5b-py2.5.egg) from 
-> http://wwwsearch.sourceforge.net/mechanize/.
-> FWIW, if I import mechanize and do dir(mechanize), I don't see a 
-> pp_get_title...
-> Any suggestions?

Uninstall mechanize ;).  Or upgrade to the latest version of twill.

The problem is caused by a mismatch between the version of mechanize
that twill expects (which is included with twill) and the version of
mechanize that twill gets when it does an 'import'.  The versions are
seriously mismatched for twill-0.8.6 and mechanize latest, but twill
latest expects the latest version of mechanize.

I realize this is an insane situation and I will try to figure out how
to deal with it ;)


This email message (and any attached document) contains information from Ingenuity Systems Inc. which may be considered confidential by Ingenuity, or which may be privileged or otherwise exempt from disclosure under law, and is for the sole use of the individual or entity to whom it is addressed.  Any other dissemination, distribution or copying of this message is strictly prohibited.  If you receive this message in error, please notify me and destroy the attached message (and all attached documents) immediately. 

More information about the twill mailing list