Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44738
| From | Roy Smith <roy@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Python not starting |
| Date | 2013-05-05 09:51 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <roy-E16D26.09515805052013@news.panix.com> (permalink) |
| References | <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com> |
In article <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com>, rama29065@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.
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