Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4797 > unrolled thread

Re: 回复: Re: BeautifulSoup import error

Started byStefan Behnel <stefan_ml@behnel.de>
First post2011-05-06 07:57 +0200
Last post2011-05-06 07:57 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: 回复:  Re: BeautifulSoup import error Stefan Behnel <stefan_ml@behnel.de> - 2011-05-06 07:57 +0200

#4797 — Re: 回复: Re: BeautifulSoup import error

FromStefan Behnel <stefan_ml@behnel.de>
Date2011-05-06 07:57 +0200
SubjectRe: 回复: Re: BeautifulSoup import error
Message-ID<mailman.1224.1304661486.9059.python-list@python.org>
1011_wxy, 06.05.2011 04:29:
> 发件人: James Mills
>> On Fri, May 6, 2011 at 11:37 AM, 1011_wxy wrote:
>>> I got a import error when I use Python 3.2 to import BeautifulSoup 3.2.0 .
>>> Is there any differences between Python 3.2 and other version? This is my
>>> first time to use Python3.2 .
>>> And the error message will be as below.
>>
>> Judging from your tracebacks, it would appear
>> that BeuituflSoup has not yet been ported to
>> and/or fixed for Python 3 compatibility.
>
> BeautifulSoup does not work well with Python3.2 .

You can try to convert it using 2to3, though.


> I might suggest you take a look at using lxml instead

... which works with all Python versions from 2.3 through 3.2.


> which ships with the standard library.

No. While this has been suggested, it will not become part of the stdlib in 
the foreseeable future. It's readily available as a separate package on 
PyPI, though.

Stefan

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web