Python not starting

Roy Smith roy at panix.com
Sun May 5 09:51:59 EDT 2013


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.



More information about the Python-list mailing list