Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79400
| Return-Path | <mmr15@case.edu> |
|---|---|
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'definitions.': 0.07; 'exists.': 0.07; 'subject:Error': 0.07; 'output,': 0.09; 'run,': 0.09; 'subject:skip:O 10': 0.09; 'terminates': 0.09; 'python': 0.11; "'from": 0.16; 'attempted': 0.16; 'commented': 0.16; 'imports': 0.16; 'pylab': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'hey': 0.18; 'module': 0.19; 'trying': 0.19; 'everyone,': 0.19; 'working.': 0.19; 'thanks.': 0.20; 'seems': 0.21; 'import': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'script': 0.25; 'web.': 0.26; 'defined': 0.27; 'header:In-Reply- To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; "doesn't": 0.30; 'skip:g 30': 0.30; "i'm": 0.30; 'figure': 0.32; 'supposed': 0.32; 'run': 0.32; 'received:209.85': 0.35; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'executing': 0.36; 'web,': 0.36; 'should': 0.36; 'error.': 0.37; 'so,': 0.37; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; '(from': 0.39; "couldn't": 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'skip:p 20': 0.39; 'skip:u 10': 0.60; "you're": 0.61; 'name': 0.63; 'to:addr:gmail.com': 0.65; 'anything.': 0.68; 'fail.': 0.84; 'presumably': 0.84; 'on?': 0.91 |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=1oROhVDoIUtaMRAQTqwpDguzJaFT7Ay4Ua1OIgx9iS4=; b=XIdT1DMWPyjlhDXszNwjJAGaxn9WGJdo6Y+CKeL7LD2Bapqzz5DiFlC+gfhcEGYtjV DXeWaoviFzBFeClB0HUumT2THaspyf/hUBZuPHSI2ncRW2aZ9JZQM2EbhZDBNdZn4SzF 3E+nM6zgeqn64L/UtphlDXfe7+/m5+JVnoXbpal7sGPGuhQJ8zGjtr2wqew1KYWthKAM YhMJErJ3FlZotEEXLQygxl0tl1NdkzsCFkdbzy3owPToP2pl8v5ToJaN9gzSVvPQkxh9 KT/XRAPA21euIj4eR6gb30rD7fJLx/6kzychwZnXYHAWraiFeQdilq/pvXMz/zICpfYJ QZAQ== |
| X-Gm-Message-State | ALoCoQnP1qmis+FsIU2d17HeiZZ9BOkj7qmOc1RnZ9flW8FRg7TxY1d1X8MQuvw9OCU61IL3Pynvw2PrCyuAEDlWKOeC/aTb/BaOnK8qKQLxiHTa7sRw0VgfQwPXwkVK7wU2XUKj0aSJ |
| X-Received | by 10.107.14.145 with SMTP id 139mr6955447ioo.65.1413928699529; Tue, 21 Oct 2014 14:58:19 -0700 (PDT) |
| X-Received | by 10.107.14.145 with SMTP id 139mr6955435ioo.65.1413928699411; Tue, 21 Oct 2014 14:58:19 -0700 (PDT) |
| From | Matthew Ruffalo <mmr15@case.edu> |
| X-Google-Original-From | Matthew Ruffalo <matthew.ruffalo@case.edu> |
| Date | Tue, 21 Oct 2014 17:58:18 -0400 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| MIME-Version | 1.0 |
| To | ryguy7272 <ryanshuell@gmail.com>, python-list@python.org |
| Subject | Re: No Error; No Output...Nothing |
| References | <d84ad0d4-a742-4ca7-93a6-b21f0ed076dd@googlegroups.com> |
| In-Reply-To | <d84ad0d4-a742-4ca7-93a6-b21f0ed076dd@googlegroups.com> |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Junkmail-Whitelist | YES (by domain whitelist at mpv1.tis.cwru.edu) |
| 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.15047.1413929083.18130.python-list@python.org> (permalink) |
| Lines | 29 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1413929083 news.xs4all.nl 2915 [2001:888:2000:d::a6]:49077 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!usenet-fr.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:79400 |
Show key headers only | View raw
On 10/21/2014 05:44 PM, ryguy7272 wrote: > Hey everyone, I'm trying to run this code. > > ... > > I commented out the import pylab as pl because I couldn't get the matplotlib.pylab import working. So, anyway, I hit F5, and it seems to run, but it doesn't really do anything. Isn't this either supposed to be downloading data from the web, or throwing an error so I can troubleshoot, and try to figure out what's going on? It's hard to troubleshoot, when you don't get any error. Does this work for others? > > Thanks. No, it isn't supposed to be downloading data from the web. You have defined a few functions but you're not actually calling any of them. The script terminates successfully with no output, since there's nothing for it to do after executing your imports and function definitions. Additionally, your attempted use of 'urllib2' inside getConstituentsOfAnIndexFromYahoo will fail. Your import of that module is commented out, since (from your imports) you're presumably using Python 3 and a module with that name no longer exists. Since you have 'from urllib.request import urlopen', you can use the 'urlopen' module without any fully-qualified name. The relevant line in your getConstituentsOfAnIndexFromYahoo function should be 'pageResults = p.findall(urlopen(...'. MMR...
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
No Error; No Output...Nothing ryguy7272 <ryanshuell@gmail.com> - 2014-10-21 14:44 -0700
Re: No Error; No Output...Nothing Chris Angelico <rosuav@gmail.com> - 2014-10-22 08:49 +1100
Re: No Error; No Output...Nothing Chris Kaynor <ckaynor@zindagigames.com> - 2014-10-21 14:49 -0700
Re: No Error; No Output...Nothing Matthew Ruffalo <mmr15@case.edu> - 2014-10-21 17:58 -0400
Re: No Error; No Output...Nothing ryguy7272 <ryanshuell@gmail.com> - 2014-10-21 15:15 -0700
Re: No Error; No Output...Nothing Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-10-21 23:41 +0100
csiph-web