Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75294
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <1248283536@qq.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.085 |
| X-Spam-Evidence | '*H*': 0.84; '*S*': 0.01; 'subject:not': 0.03; 'win32': 0.03; "subject:' ": 0.07; 'python': 0.11; "'__doc__',": 0.16; "'__file__',": 0.16; '(am': 0.16; 'nameerror:': 0.16; 'skip:` 30': 0.16; 'subject:requests': 0.16; 'bit': 0.19; '>>>': 0.22; 'import': 0.22; '>>>': 0.24; 'defined': 0.27; 'skip:( 20': 0.30; 'requests': 0.31; "skip:' 10": 0.31; '"",': 0.31; 'file': 0.32; 'skip:c 30': 0.32; 'run': 0.32; '(most': 0.33; 'to:name:python-list': 0.33; 'there': 0.35; 'skip:& 10': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'from:charset:utf-8': 0.61; 'simple': 0.61; 'name': 0.63; 'more': 0.64; 'mar': 0.68; 'subjectcharset:utf-8': 0.72; '2014,': 0.84; 'from:addr:1248283536': 0.84; 'from:addr:qq.com': 0.84; 'message- id:@qq.com': 0.84; 'received:qq.com': 0.84; 'url:hk': 0.84; 'url:quote': 0.84; 'x-mailer:qqmail 2.x': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1406519526; bh=/p/55yLGETi0WbVZ1KNK0NnCu+YCPkLt/57cQK1zwCo=; h=X-QQ-FEAT:X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN: X-Originating-IP:X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date: X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer:X-QQ-SENDSIZE: X-QQ-FName:X-QQ-LocalIP; b=UB/1QB88vEceWWWTy4hHOd+hu42tnEFhVnwhWC8lW9AT0yIZS+F3AtBNdPoRL5jpW M7G4OMZV/YliMMB2NqFj4h/XvDX6DAakHOtR/xkV2qrdE1JypKt/e4xU7Q0SD92E1I BUGysQ36wAIgqtcgQkt4J0JWl1pzoZZWro7gF8dA= |
| X-QQ-FEAT | 4uw2MR82A9SYu5IxU2+A5IA+jcwngsCD2jKuKDZMg0J0u3+97EDBfJrYzqDtm dfE1XocPdGxZyZ/QbwWfU9qF4xJVKKm+Oxoj18SCkGAJjIbP0+teQmsD4V+rRmXa1fsX9JU 3NiauXNnlKExg3g64p1DONxVv46P1cTld1K/teo3eA7fDcCIXA== |
| X-QQ-SSF | 0000000A000000F000000000000000D |
| X-HAS-ATTACH | no |
| X-QQ-BUSINESS-ORIGIN | 2 |
| X-Originating-IP | 221.182.18.2 |
| X-QQ-STYLE | |
| X-QQ-mid | webmail603t1406519523t8373466 |
| From | "水静流深" <1248283536@qq.com> |
| To | "python-list" <python-list@python.org> |
| Subject | NameError: name 'requests' is not defined ? |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="----=_NextPart_53D5C8E3_08FEC850_6DF5198B" |
| Content-Transfer-Encoding | 8Bit |
| Date | Mon, 28 Jul 2014 11:52:03 +0800 |
| X-Priority | 3 |
| X-QQ-MIME | TCMime 1.0 by Tencent |
| X-Mailer | QQMail 2.x |
| X-QQ-Mailer | QQMail 2.x |
| X-QQ-SENDSIZE | 520 |
| X-QQ-FName | 8AECA1F37FA14D388C50B56DC87BB42D |
| X-QQ-LocalIP | 58.250.132.20 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12374.1406519536.18130.python-list@python.org> (permalink) |
| Lines | 51 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1406519537 news.xs4all.nl 2844 [2001:888:2000:d::a6]:34498 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75294 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
there is a simple file `mydown.py` saved in `D:\Python34\Lib\site-packages` there is only one line in mydown.py . import requests C:\Users\pengsir>d:\Python34\python Python 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:25:23) [MSC v.1600 64 bit (AM D64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import mydown >>> dir(mydown) ['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'requests'] >>> url='http://quote.eastmoney.com/hk/02222.html?StockCode=02222' >>> requests.get(url) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'requests' is not defined why it run into "NameError: name 'requests' is not defined"?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
NameError: name 'requests' is not defined ? "水静流深" <1248283536@qq.com> - 2014-07-28 11:52 +0800 Re: NameError: name 'requests' is not defined ? Miki Tebeka <miki.tebeka@gmail.com> - 2014-07-27 21:27 -0700 Re: NameError: name 'requests' is not defined � Steven D'Aprano <steve@pearwood.info> - 2014-07-28 05:07 +0000
csiph-web