Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'attribute': 0.05; 'removes': 0.05; 'alias': 0.07; 'skip:/ 10': 0.07; 'python': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'subject:python': 0.11; '2.7.3': 0.16; 'installs': 0.16; 'module:': 0.16; 'outputs': 0.16; 'path:': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'shell': 0.18; '>>>': 0.18; 'otherwise,': 0.20; 'import': 0.21; '"",': 0.22; 'default,': 0.22; 'fine,': 0.22; 'subject:skip:i 10': 0.22; 'wednesday,': 0.22; 'installation': 0.23; 'cc:2**0': 0.23; 'absolute': 0.23; 'this:': 0.23; 'installed': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'select': 0.26; '(most': 0.27; 'separate': 0.27; 'i.e.': 0.27; 'received:209.85.212': 0.28; 'skip:/ 80': 0.29; 'install': 0.29; 'file': 0.32; 'traceback': 0.33; 'problem': 0.33; 'another': 0.33; 'version': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'list': 0.35; 'path': 0.35; 'received:209.85': 0.35; 'something': 0.35; '12,': 0.36; 'should': 0.36; 'skip:p 20': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'shows': 0.38; 'where': 0.40; 'think': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'first': 0.61; 'export': 0.62; 'article': 0.78; 'received:209.85.212.56': 0.91; 'ports': 0.93; 'response,': 0.93 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=path:newsgroups:date:in-reply-to:complaints-to:injection-info :nntp-posting-host:references:user-agent:x-google-web-client :x-google-ip:mime-version:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=VzmpKNGj0purYsyi6WY2AkbqceA1Ok7RcKYeMCsF8Z4=; b=TfP2fTobsof39b+bpvbSMU9U3528fuRZlfJimI8r4qCxgZkuFxfJdk1XW/niHFolI8 giUqH1bQva8YGcEoSU4uq7NrT27NN6JqkDq7np5Nssuwh8lKEP8Yub9L5yt7DlJNuPx/ 1RQmtv3kzEP/pgkOidbdLGxhS7CzeKCwvqUxWt9OWUXsFrSd3Paa0AKXw/KnXH+UDays iPs38zcmrl+D2KRFpmdJN+OTcNODrCUSssNrXf8VQvBJiMGCClDRWgyluGuR/cJUepmO d5njlqRyrkytowwWro7ZOax67I1tp9jkkiGYoTUqMeldvqcqxOmsxzgImSmMlFizO0vW 9h0w== Newsgroups: comp.lang.python Date: Wed, 12 Sep 2012 21:36:19 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.159.85.198; posting-account=eDTw_QoAAAATV1j9GPqrt2FNwA0W7wC3 References: User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 98.159.85.198 MIME-Version: 1.0 Subject: Re: conflicting installations of python From: azandi@adconion.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkrb/qT45/h5YFbnAlfnO6cSgOxarBJv2Y9SKc1X0rOXX07wyEXxH9JCBi/3Fcqmh6GT9eB Cc: python-list@python.org 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: , Message-ID: Lines: 69 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347510983 news.xs4all.nl 6937 [2001:888:2000:d::a6]:43092 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29014 Hi Ned, 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.tbz2 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' On Wednesday, September 12, 2012 8:07:43 PM UTC-7, Ned Deily wrote: > In article , > > azandi wrote: > > > > > I installed python 2.7.3 using macports on Lion, and used port select python > > > python27. However python version still shows 2.7.1. > > > > > > Any ideas why is that happenning? And how to fix it? > > > > Macports installs its ports into a separate root. You need to ensure > > that the macports bin directory comes first on your shell search path; > > by default, it is /opt/local/bin. Try something like this: > > > > export PATH=/opt/local/bin:$PATH > > > > Otherwise, use an alias or an absolute path: > > > > /opt/local/bin/python > > > > -- > > Ned Deily, > > nad@acm.org