[twill] BeautifulSoup conflicts
Titus Brown
titus at caltech.edu
Tue Aug 8 10:19:21 PDT 2006
On Tue, Aug 08, 2006 at 05:54:05PM +0100, John J Lee wrote:
-> On Tue, 8 Aug 2006, twill.overbored at spamgourmet.com wrote:
->
-> > I found that one way to workaround this is to simply rename
-> > BeautifulSoup.py to TwillBeautifulSoup.py and replace all "import
-> > BeautifulSoup" with "import TwillBeautifulSoup as BeautifulSoup" in
-> > the .py files. I tried this with both 0.8.5 and 0.9a. I hope this
-> > simple change is introduced in the actual program to prevent such
-> > conflicts with BeautifulSoup. Thanks.
-> [...]
->
-> At least for mechanize itself, I intend simply to declare a setuptools
-> dependency on BeautifulSoup 2, and then declare anybody who objects to
-> setuptools' multiple versions support a luddite <0.5 wink>
->
-> I thought Titus had already bundled BeautifulSoup with twill, though.
It is indeed bundled -- the problem is that you can then get name
conflicts between BS 2.x (included with twill) and BS 3.x. It's a good
idea to rename it.
--titus
More information about the twill
mailing list