Python not starting
Chris Angelico
rosuav at gmail.com
Sun May 5 11:20:52 EDT 2013
On Mon, May 6, 2013 at 1:11 AM, DRJ Reddy <rama29065 at 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 at panix.com> wrote:
>>
>> > In article <c7c26e78-b786-4205-9ffa-5eb29006479c at googlegroups.com>,
>>
>> > DRJ Reddy <rama29065 at 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
More information about the Python-list
mailing list