Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4797
| From | Stefan Behnel <stefan_ml@behnel.de> |
|---|---|
| Subject | Re: 回复: Re: BeautifulSoup import error |
| Date | 2011-05-06 07:57 +0200 |
| References | <541cf585.23105.12fc3207ff9.Coremail.1011_wxy@163.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1224.1304661486.9059.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: 回复: Re: BeautifulSoup import error Stefan Behnel <stefan_ml@behnel.de> - 2011-05-06 07:57 +0200
csiph-web