Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44746
| References | (1 earlier) <roy-E16D26.09515805052013@news.panix.com> <c7c26e78-b786-4205-9ffa-5eb29006479c@googlegroups.com> <roy-AB6F78.10164805052013@news.panix.com> <mailman.1292.1367766068.3114.python-list@python.org> <b8f7c4fe-2947-4143-b05d-5c1aedaebbf6@googlegroups.com> |
|---|---|
| Date | 2013-05-06 01:20 +1000 |
| Subject | Re: Python not starting |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1293.1367767261.3114.python-list@python.org> (permalink) |
On Mon, May 6, 2013 at 1:11 AM, DRJ Reddy <rama29065@gmail.com> 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 <roy@panix.com> wrote: >> >> > In article <c7c26e78-b786-4205-9ffa-5eb29006479c@googlegroups.com>, >> >> > DRJ Reddy <rama29065@gmail.com> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python not starting rama29065@gmail.com - 2013-05-05 06:43 -0700
Re: Python not starting Roy Smith <roy@panix.com> - 2013-05-05 09:51 -0400
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 07:00 -0700
Re: Python not starting Roy Smith <roy@panix.com> - 2013-05-05 10:16 -0400
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 07:28 -0700
Re: Python not starting Chris Angelico <rosuav@gmail.com> - 2013-05-06 01:00 +1000
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 08:11 -0700
Re: Python not starting Chris Angelico <rosuav@gmail.com> - 2013-05-06 01:20 +1000
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 09:25 -0700
Re: Python not starting Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-05-05 15:26 +0100
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 07:32 -0700
Re: Python not starting Roy Smith <roy@panix.com> - 2013-05-05 13:55 -0400
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-05 11:15 -0700
Re: Python not starting Chris Angelico <rosuav@gmail.com> - 2013-05-06 08:29 +1000
Re: Python not starting drjreddy7@gmail.com - 2013-05-05 20:15 -0700
Re: Python not starting Chris Angelico <rosuav@gmail.com> - 2013-05-06 14:02 +1000
Re: Python not starting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-06 06:06 +0000
Re: Python not starting DRJ Reddy <rama29065@gmail.com> - 2013-05-06 03:33 -0700
Re: Python not starting Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-05-05 18:55 +0000
Re: Python not starting Andrew Berg <bahamutzero8825@gmail.com> - 2013-05-05 14:47 -0500
Re: Python not starting drjreddy7@gmail.com - 2013-05-05 19:28 -0700
csiph-web