In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, rama29...@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. -- http://mail.python.org/mailman/listinfo/python-list