Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.unit0.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'subject:not': 0.03; 'subject:Python': 0.06; 'steps:': 0.09; 'windows,': 0.09; 'python': 0.11; 'assume': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invoking': 0.16; 'roy': 0.16; 'unix,': 0.16; 'wrote:': 0.18; 'library': 0.18; 'command': 0.22; 'import': 0.22; 'error': 0.23; 'adds': 0.24; 'mon,': 0.24; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'apparently': 0.31; 'disable': 0.31; 'option.': 0.31; 'file': 0.32; 'there.': 0.32; 'guess': 0.33; "can't": 0.35; 'advice': 0.35; 'created': 0.35; 'problem.': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'idle': 0.36; 'done': 0.36; 'doing': 0.36; 'thanks': 0.36; 'similar': 0.36; 'should': 0.36; 'to:addr:python-list': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'even': 0.60; 'read': 0.60; 'is.': 0.60; 'manually': 0.60; 'prompt': 0.68; 'smith': 0.68; 'article': 0.77; 'find.': 0.84; 'stat': 0.84; 'steps.': 0.91; '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=tD1KbV2uAaY6RN1Ri+vk8h91RBbucyxu8QISmiGFRJY=; b=EOPymYPGlK+U103FM8U68CiGRYzp0Nn4hnU163TzuMzaYfPNvxfL3N4Pb6B2NVRg1U yCl60FmweJX+oiJ1KKvsD5TeKPZPLhxWDDSAqKjFakOOsHP/xp+72s4dhwnYfdRlGZmv 1nsi8afEv4JG9A3Lxg9FQnKT8leLSdd7rsgc5WRuS4D4Mdt3IMiCagURSJyjYyDfpkJb /5xNnfgpM91XYf3q3sy0TuregSii+MFNXueovfDIYXCEmCPJd0iMF2mN9vBOPz/xXkbM H8hheuQjwIHUepB20psblE/8ZkjpFZDgcMl7okS4eMkosCgUcdntjTE0uFht0AJcJ1Wr +mag== MIME-Version: 1.0 X-Received: by 10.52.120.83 with SMTP id la19mr3159394vdb.58.1367767252115; Sun, 05 May 2013 08:20:52 -0700 (PDT) In-Reply-To: References: <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com> Date: Mon, 6 May 2013 01:20:52 +1000 Subject: Re: Python not starting From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367767261 news.xs4all.nl 15943 [2001:888:2000:d::a6]:48459 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44746 On Mon, May 6, 2013 at 1:11 AM, DRJ Reddy wrote: > On Sunday, May 5, 2013 8:30:59 PM UTC+5:30, Chris Angelico wrote: >> On Mon, May 6, 2013 at 12:16 AM, Roy Smith wrote: >> >> > In article , >> >> > DRJ Reddy wrote: >> >> >> Even from command prompt i can't start python.The error is coming up.Python >> >> >> in Windows7 box. >> >> > >> >> > I don't know Windows, but my guess is still that it's finding some other >> >> > file called stat.py before it's finding the system library one. Try >> >> > doing a file system search for all files named "stat.py" and see what >> >> > you find. On unix, I would do "find / -name stat.py". I assume there's >> >> > something similar on Windows. >> >> >> >> Or alternatively, disable site.py by invoking python -S, and then >> >> manually import stat and see what its file is. >> >> >> >> ChrisA > > Thanks all of you,i have done it,by disabling,but what is the permanent solution.How can i start python idle Here's the steps: 1) Start Python with the -S option. You have apparently figured this part out. This should give you a working interactive Python. 2) Type: import stat stat.__file__ 3) See what the file is that was named there. If you created it, you now know the problem. 4) Read Mark Lawrence's signature. This post adds nothing to what has already been said; it's just coalescing the previously-given advice into exact steps. ChrisA