Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4791
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <1011_wxy@163.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.006 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; '2.x': 0.05; '3.2': 0.07; 'exception,': 0.07; 'version?': 0.07; 'python': 0.07; '3.x': 0.09; 'exception': 0.12; 'subject:error': 0.12; 'syntax': 0.12; 'am,': 0.14; 'wrote:': 0.14; 'cc:name:python list': 0.16; 'ported': 0.16; 'received:220.181.13': 0.16; 'subject:import': 0.16; 'email addr:python.org>': 0.18; '>': 0.18; 'suggest': 0.19; 'appear': 0.19; 'cc:2**0': 0.20; 'maybe': 0.21; 'cc:addr:python- list': 0.22; 'version': 0.25; 'library.': 0.25; 'instead': 0.26; 'later': 0.26; 'url:mailman': 0.27; 'fixed': 0.27; 'error': 0.29; 'fri,': 0.29; 'yet': 0.30; 'list': 0.30; 'cc:addr:python.org': 0.31; 'differences': 0.31; 'solved': 0.31; 'does': 0.31; 'import': 0.32; 'thank': 0.32; '...': 0.32; 'url:listinfo': 0.33; 'several': 0.33; 'using': 0.34; 'got': 0.34; 'there': 0.35; 'url:python': 0.37; 'url:org': 0.38; 'much.': 0.39; 'except': 0.39; 'would': 0.40; 'might': 0.40; 'received:220': 0.60; '2011': 0.62; 'below.': 0.64; 'dear': 0.64; 'subjectcharset:utf-8': 0.70; 'received:220.181': 0.72; 'skip:\xe5 10': 0.73; 'from:addr:163.com': 0.77; 'received:163.com': 0.77; '11:37': 0.84; 'url:nbsp': 0.84; 'ships': 0.91 |
| Date | Fri, 6 May 2011 10:29:15 +0800 |
| From | "1011_wxy"<1011_wxy@163.com> |
| To | "James Mills"<prologic@shortcircuit.net.au> |
| Subject | 回复: Re: BeautifulSoup import error |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="__=_Part_Boundary_008_011882.019550" |
| X-Mailer | NetEase Flash Mail 2.0.2.30 |
| X-Priority | 3 (Normal) |
| X-Originating-IP | [220.248.57.11] |
| X-CM-TRANSID | 58KowKCLHPJPXMNN3Z4DAA--.16960W |
| X-CM-SenderInfo | yrqrisxz01qiywtou0bp/1tbiMAY3R0iNbWW5tgABsF |
| X-Coremail-Antispam | 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== |
| Cc | python list <python-list@python.org> |
| 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.1221.1304649711.9059.python-list@python.org> (permalink) |
| Lines | 103 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1304649712 news.xs4all.nl 81485 [::ffff:82.94.164.166]:44204 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4791 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Dear JM: Thank you very much. BeautifulSoup does not work well with Python3.2 . 2011-05-06 Kerry 发件人: James Mills <prologic@shortcircuit.net.au> 发送时间: 2011-05-06 09:47 主 题: Re: BeautifulSoup import error 收件人: python list <python-list@python.org> On Fri, May 6, 2011 at 11:37 AM, 1011_wxy <1011_wxy@163.com> 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. Maybe there's a later version of BeauitifulSOup or a development version that does support Python 3? There are several Syntax differences between Python 2.x and Python 3.x - notably: except Exception, e: # Python 2.x except Exception as e: # Python 3.x I might suggest you take a look at using lxml instead which ships with the standard library. [ ... ] cheers James -- -- James Mills -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
回复: Re: BeautifulSoup import error "1011_wxy"<1011_wxy@163.com> - 2011-05-06 10:29 +0800
csiph-web