[twill] BeautifulSoup conflicts
John J Lee
jjl at pobox.com
Mon Jul 3 01:34:46 PDT 2006
On Sun, 2 Jul 2006, twill.overbored at spamgourmet.com wrote:
> Hi all,
>
> I'm trying to use both twill and BeautifulSoup. I downloaded the
> latest BeautifulSoup (3.0.3) and have the following simple program:
>
> from BeautifulSoup import BeautifulSoup
> from twill.commands import *
> from twill.errors import *
> from twill import *
> from sys import *
> go('http://youtube.com/')
> follow( 'Log In' )
>
> This raises a hard-to-decipher exception. Once I remove the
> BeautifulSoup improt, everything's fine. Should this be filed as a
> twill bug? Any workarounds in the meantime? Thanks in advance.
mechanize currently does not work with BeautifulSoup 3 -- it needs 2.x.
(And since you can't easily declare "optional dependencies", it's hard to
declare that to easyinstall / setuptools. Perhaps I should declare an
"extra" called simply "BeautifulSoup"...)
John
More information about the twill
mailing list