Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44741

Re: Python not starting

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 <python-python-list@m.gmane.org>
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 <breamoreboy@yahoo.co.uk>
Subject Re: Python not starting
Date Sun, 05 May 2013 15:26:58 +0100
References <9ace60b8-a07d-41bc-ac9f-507f6c61f955@googlegroups.com> <roy-E16D26.09515805052013@news.panix.com> <c7c26e78-b786-4205-9ffa-5eb29006479c@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 <c7c26e78-b786-4205-9ffa-5eb29006479c@googlegroups.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1291.1367764041.3114.python-list@python.org> (permalink)
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

Show key headers only | View raw


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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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