Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4797
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '3.2': 0.07; 'though.': 0.07; 'version?': 0.07; 'python': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; '>>>': 0.12; 'subject:error': 0.12; 'am,': 0.14; 'wrote:': 0.14; '3.2.': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'ported': 0.16; 'subject:import': 0.16; 'suggested,': 0.16; 'versions': 0.18; 'suggest': 0.19; 'appear': 0.19; 'header:In- Reply-To:1': 0.22; 'convert': 0.22; '2.3': 0.23; 'library.': 0.25; 'instead': 0.26; 'fixed': 0.27; 'error': 0.29; 'fri,': 0.29; 'stefan': 0.29; 'yet': 0.30; 'differences': 0.31; 'does': 0.31; 'separate': 0.31; 'import': 0.32; 'to:addr:python-list': 0.32; 'using': 0.34; 'header:X-Complaints-To:1': 0.34; 'got': 0.34; 'there': 0.35; 'header:User-Agent:1': 0.35; 'no.': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'received:de': 0.39; 'header:Mime-Version:1': 0.39; 'works': 0.40; 'would': 0.40; "it's": 0.40; 'header:Received:5': 0.40; 'might': 0.40; '2011': 0.62; 'below.': 0.64; 'subjectcharset:utf-8': 0.70; 'become': 0.70; 'received:93': 0.80; '11:37': 0.84; 'subject::': 0.87; 'ships': 0.91; 'readily': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Stefan Behnel <stefan_ml@behnel.de> |
| Subject | Re: 回复: Re: BeautifulSoup import error |
| Date | Fri, 06 May 2011 07:57:51 +0200 |
| References | <541cf585.23105.12fc3207ff9.Coremail.1011_wxy@163.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | ppp-93-104-166-174.dynamic.mnet-online.de |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 |
| In-Reply-To | <541cf585.23105.12fc3207ff9.Coremail.1011_wxy@163.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1224.1304661486.9059.python-list@python.org> (permalink) |
| Lines | 30 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1304661486 news.xs4all.nl 81474 [::ffff:82.94.164.166]:59319 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4797 |
Show key headers only | View raw
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