Python not starting

DRJ Reddy rama29065 at gmail.com
Sun May 5 10:00:05 EDT 2013


On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote:
> In article <9ace60b8-a07d-41bc-ac9f-507f6c61f955 at googlegroups.com>,
> 
>  rama29065 at gmail.com wrote:
> 
> 
> 
> > I was using python from over an year and half.Suddenly from yesterday i'm 
> 
> > unable to run it.
> 
> > The error is as follows
> 
> > Traceback (most recent call last):
> 
> >   File "C:\Python27\lib\site.py", line 563, in <module>
> 
> >     main()
> 
> >   File "C:\Python27\lib\site.py", line 546, in main
> 
> >     known_paths = addsitepackages(known_paths)
> 
> >   File "C:\Python27\lib\site.py", line 324, in addsitepackages
> 
> >     if os.path.isdir(sitedir):
> 
> >   File "C:\Python27\lib\genericpath.py", line 44, in isdir
> 
> >     return stat.S_ISDIR(st.st_mode)
> 
> > AttributeError: 'module' object has no attribute 'S_ISDIR'
> 
> 
> 
> Just a wild guess, but did you happen to create a module of your own 
> 
> named "stat", which is getting imported instead of the one from the 
> 
> library?
> 
> 
> 
> Try doing:
> 
> 
> 
> >>> print stat.__file__
> 
> 
> 
> and see what it says.

Even from command prompt i can't start python.The error is coming up.Python in Windows7 box.



More information about the Python-list mailing list