Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'attribute': 0.07; 'imported': 0.09; 'lawrence': 0.09; 'library?': 0.09; 'main()': 0.09; 'parsing': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'says.': 0.09; 'python': 0.11; 'doing:': 0.16; 'known_paths': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'module': 0.19; 'thanks.': 0.20; 'command': 0.22; '>>>': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'url:moin': 0.24; 'skip:" 30': 0.26; 'skip:" 20': 0.27; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'gives': 0.31; 'getting': 0.31; 'url:wiki': 0.31; 'follows': 0.31; 'yesterday': 0.31; 'file': 0.32; 'stuff': 0.32; 'run': 0.32; 'url:python': 0.33; '(most': 0.33; "can't": 0.35; 'but': 0.35; 'google': 0.35; 'url:org': 0.36; 'error.': 0.37; 'skip:o 20': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'bad': 0.39; 'guidance': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'unable': 0.39; 'received:org': 0.40; 'even': 0.60; 'read': 0.60; "you're": 0.61; 'email addr:gmail.com': 0.63; 'kind': 0.63; 'happen': 0.63; 'charset:windows-1252': 0.65; 'prompt': 0.68; 'smith': 0.68; 'article': 0.77; 'received:2': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Python not starting Date: Sun, 05 May 2013 15:26:58 +0100 References: <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-2-98-196-142.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: X-Antivirus: avast! (VPS 130505-0, 05/05/2013), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 46 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367764041 news.xs4all.nl 15912 [2001:888:2000:d::a6]:33088 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44741 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 >>> 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