Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #44741
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Subject | Re: Python not starting |
| Date | 2013-05-05 15:26 +0100 |
| References | <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com> <roy-E16D26.09515805052013@news.panix.com> <c7c26e78-b786-4205-9ffa-5eb29006479c@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1291.1367764041.3114.python-list@python.org> (permalink) |
On 05/05/2013 15:00, DRJ Reddy wrote: > On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: >> 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. > > Even from command prompt i can't start python.The error is coming up.Python in Windows7 box. > Place the call to print stat.__file__ in the file genericpath.py immediately before the line that gives the attribute error. Would you also be kind enough to read and use the guidance given in the link in my signature. My eyesight is bad enough without parsing double spaced stuff courtesy of google groups, thanks. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence
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