[twill] Twill shell can't find pp_get_title?

Ramon Felciano felciano at ingenuity.com
Sat Nov 4 13:21:06 PST 2006

I'm not sure that's necessary, and might confuse the issue. I think your approach is probably the right one (keep trying to get the fixes integrated with mainline mechanize). However, I would suggest that you flag your version internally somehow (e.g. a custom version number), and perhaps have twill check for that in order to spit out 
That said, I think I found the problem. In the twill __init__.py file you change the module look up path:
extensions = os.path.join(thisdir, 'extensions/')

That trailing slash is a problem on platforms that don't use *nix file conventions (notably Windows). I stripped the trailing slashes out for the extensions and other_packages directory lines, and everything works fine.


From: Titus Brown [mailto:titus at caltech.edu]
Sent: Sat 11/04/2006 09:16
To: Ramon Felciano
Cc: titus at idyll.org; twill at lists.idyll.org
Subject: Re: [twill] Twill shell can't find pp_get_title?

On Fri, Nov 03, 2006 at 12:45:27PM -0800, Ramon Felciano wrote:
-> 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...

Yep.  twill uses a patched version of mechanize.  Recently, the patches
have decreased in number (as I've fed them back to John Lee, the author
of mechanize) but there is still one patch that is necessary to robust
HTML parsing.

At some point I'll write a detailed explanation of why the patch is
necessary, in the hopes of getting it into mechanize, but John asked me
to wait a few months to make sure that it worked well.  (It appears to:
no one has ever mentioned any problems with it.)

In any case, when I first started working on twill, easy_install was not
very well tested.  Now I feel better about relying on it to handle

One solution to the twill+mechanize vs mechanize situation is for me to
rename the mechanize package included with twill.  Any thoughts?


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