[twill] BeautifulSoup conflicts

William K. Volkman wkvsf at users.sourceforge.net
Sun Jul 2 18:57:35 PDT 2006


Hi,
On Sun, 2006-07-02 at 18:11, twill.overbored at spamgourmet.com wrote:
> 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

I suspect you're stepping on twill's desire to use BeautifulSoup,
the quick and dirty solution solution would be:

from BeautifulSoup import BeautifulSoup as MySoup

A closer look at the twill documentation might reveal a way
to get a BeautifulSoup object from twill directly...

> 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.

HTH,
William.




More information about the twill mailing list