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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'broken': 0.03; 'output': 0.04; 'attribute': 0.05; 'python)': 0.05; 'removes': 0.05; 'executed': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.11; 'module:': 0.16; 'outputs': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skip:/ 70': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'import': 0.21; '"",': 0.22; 'fine,': 0.22; 'subject:skip:i 10': 0.22; 'installation': 0.23; 'installed': 0.23; 'header:User-Agent:1': 0.26; 'looks': 0.26; '(most': 0.27; 'i.e.': 0.27; 'header:X -Complaints-To:1': 0.28; 'install': 0.29; 'file': 0.32; 'traceback': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'thanks': 0.34; 'list': 0.35; 'path': 0.35; 'received:org': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'being': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'shows': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'received:204': 0.72; 'article': 0.78; 'received:204.14': 0.84; 'response,': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: conflicting installations of python Date: Wed, 12 Sep 2012 22:55:51 -0700 References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 204.14.154.191 User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) 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: 41 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347515770 news.xs4all.nl 6864 [2001:888:2000:d::a6]:53599 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29015 In article , azandi@adconion.com wrote: > Thanks for your response, I think the path is fine, since which python > outputs the location where macports should install python i.e. > /opt/local/bin/python. > > also > > port list active | fgrep python > python27 @2.7.3 lang/python27 > > and > > port location python27 > > Port python27 2.7.3_0 is installed as an image in: > /opt/local/var/macports/software/python27/python27-2.7.3_0.darwin_11.x86_64.tb > z2 None of the above actually shows what is being executed when you type python. What is the output from the following commands? which python ls -l $(which python) python > Another problem caused by this installation is that somehow it removes > os.urandom module: > > >>> import os > >>> os.urandom > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute 'urandom' Looks like you are using a broken Python installation. -- Ned Deily, nad@acm.org