Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42758
| Path | csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| 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; 'python.': 0.02; 'causing': 0.04; 'subject:IDLE': 0.04; 'syntax': 0.04; 'fixes': 0.07; 'subject:Error': 0.07; 'test,': 0.07; 'subject:script': 0.09; 'wrote': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idle.': 0.16; 'pause': 0.16; 'prefixed': 0.16; 'renaming': 0.16; 'wrote:': 0.18; 'library': 0.18; 'module': 0.19; 'trying': 0.19; 'file,': 0.19; 'seems': 0.21; 'error': 0.23; 'fairly': 0.24; 'regardless': 0.24; 'looks': 0.24; 'script': 0.25; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'appear': 0.29; 'on,': 0.29; 'am,': 0.29; 'quickly': 0.29; 'errors': 0.30; 'message-id:@mail.gmail.com': 0.30; 'clicked': 0.31; 'anyone': 0.31; 'run': 0.32; 'text': 0.33; 'fri,': 0.33; 'actual': 0.34; 'received:209.85': 0.35; 'test': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'idle': 0.36; 'module.': 0.36; 'url:org': 0.36; 'too': 0.37; 'received:209': 0.37; 'same.': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'called': 0.40; 'how': 0.40; 'deleting': 0.60; 'tell': 0.60; 'new': 0.61; 'numbers': 0.61; 'simple': 0.61; 'back': 0.62; "you've": 0.63; 'within': 0.65; 'url:png': 0.68; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=n/+WcpCGw3FUDu+mMFzd5oy/XBCzxoVqTIsQ50pNyyY=; b=m3Z0XmWmtUWyrlKRHUx6TmCTPrcbptboLX+L3HBnVqjBhcsXtZQt2qYkQs9nANkZIa Eq0+F4f3thGgZ5auf/DedjQVB4G2NuNIDz1WQJaqDU5w8drD4JgnF26scc7X8mJB5Dfp efq1IqQUs5pzS4iL4DShUIQY9j5aJ39BbDA8m6UhoXkF2QB3gMOlvhfjCJA1g7I7QrmN sUf5o3zlzmHjZIURU/GtCQ/n5kWUciLOf3f1K5iQMgZyuOkVf9VGfb135S5grSA5XIfp apbUiWI5n9rVcmBP23wEhibiv+O6u08guN8ATNa0URgezdOxSwapgafPt/4h71UNdlmI 105w== |
| MIME-Version | 1.0 |
| X-Received | by 10.58.15.193 with SMTP id z1mr5133186vec.40.1365089395607; Thu, 04 Apr 2013 08:29:55 -0700 (PDT) |
| In-Reply-To | <bb3ec5db-e9e3-46e5-8404-e29805c149ed@googlegroups.com> |
| References | <bb3ec5db-e9e3-46e5-8404-e29805c149ed@googlegroups.com> |
| Date | Fri, 5 Apr 2013 02:29:55 +1100 |
| Subject | Re: Error running any script in IDLE |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 | <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.103.1365089398.3114.python-list@python.org> (permalink) |
| Lines | 18 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1365089398 news.xs4all.nl 6975 [2001:888:2000:d::a6]:48946 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:42758 |
Show key headers only | View raw
On Fri, Apr 5, 2013 at 2:16 AM, <mattgraves7@gmail.com> wrote:
> Im fairly new to Python. I was trying to run a script using IDLE and it came back with an error and immediately shut down. After this, every script I tried to test within IDLE would do the same. I wrote the following script:
>
> while True
> x = input("test")
>
> It seems simple enough to not be screwed up in any way, but when I hit F5 to test, it gets red text and shuts down IDLE. It scrolls too fast to see before shutting down, but I right clicked the text quickly to pause it. This is what it comes back with:
> http://s21.postimg.org/4so8merdz/asdfg.png
>
> Can anyone tell me what's going on, and why this error comes up regardless of what script I try to run in IDLE?
It looks like you've made a module called 'random.py', which is
shadowing the standard library 'random' module. In that file, you
appear to have line numbers - note how line 42 is prefixed with the
actual number 42 - and that's causing syntax errors deep inside IDLE.
Try renaming or deleting your random.py to see if that fixes it.
ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Error running any script in IDLE mattgraves7@gmail.com - 2013-04-04 08:16 -0700
Re: Error running any script in IDLE Chris Angelico <rosuav@gmail.com> - 2013-04-05 02:29 +1100
Re: Error running any script in IDLE mattgraves7@gmail.com - 2013-04-04 08:33 -0700
Re: Error running any script in IDLE Chris Angelico <rosuav@gmail.com> - 2013-04-05 02:38 +1100
Re: Error running any script in IDLE mattgraves7@gmail.com - 2013-04-04 08:33 -0700
Re: Error running any script in IDLE Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-04-04 17:12 +0100
csiph-web