Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'skip:# 20': 0.03; 'subject:" ': 0.03; 'versions,': 0.05; 'received:verizon.net': 0.07; 'skip:/ 40': 0.07; 'python': 0.07; 'etc...': 0.09; 'header :In-reply-to:1': 0.09; 'received:206.46': 0.09; 'received:206.46.173': 0.09; 'am,': 0.14; 'wrote:': 0.14; '2.3,': 0.16; 'osx': 0.16; 'python2.5': 0.16; 'received:206.46.173.17': 0.16; 'received:vms173017pub.verizon.net': 0.16; 'skip:/ 50': 0.16; 'subject:command': 0.16; 'versions': 0.18; 'cc:2**0': 0.20; 'work,': 0.20; 'cc:addr:python-list': 0.22; 'version.': 0.23; 'skip:# 10': 0.25; 'url:edu': 0.28; 'installed': 0.29; 'problem': 0.29; 'subject:not': 0.29; 'cc:addr:python.org': 0.31; 'points': 0.31; '2.5,': 0.31; 'subject:working': 0.31; 'using': 0.34; 'change': 0.34; 'there': 0.35; '2.6': 0.35; 'brian': 0.36; 'charset:us-ascii': 0.36; 'system.': 0.37; 'two': 0.37; 'should': 0.37; 'apr': 0.38; 'comes': 0.39; "it's": 0.40; 'url:blogspot': 0.61; 'received:home': 0.84 Subject: Re: TextWrangler "run" command not working properly MIME-version: 1.0 (Apple Message framework v1084) Content-type: text/plain; charset=us-ascii From: Brian Blais In-reply-to: Date: Fri, 15 Apr 2011 05:57:17 -0400 Content-transfer-encoding: quoted-printable References: <382709dd-5e3f-4b07-a642-4ce141ef442b@18g2000prd.googlegroups.com> To: Fabio X-Mailer: Apple Mail (2.1084) Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 42 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302865048 news.xs4all.nl 65870 [::ffff:82.94.164.166]:57984 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3266 Hello Fabio You have two versions of 2.6 on your system. =20 On Apr 15, 2011, at 4:51 AM, Fabio wrote: > I have the "built-in" Python2.5 which comes installed by "mother = Apple". My OSX comes with 2.3, 2.5, and 2.6. :) These are under: /System/Library/Frameworks/Python.framework/Versions/ ^^^^^^^^^ the ones you installed are under: /Library/Frameworks/Python.framework/Versions/ I can reproduce this problem on my system, because /usr/bin/python2.6 = points to the system version. There is an easy solution: #!/usr/bin/env python will work, or,=20 #!/usr/local/bin/python it's better to use the former, as it will work even as you change = versions, etc... You should avoid using the shebang with a *specific* = python version. just use #!/usr/bin/env python bb --=20 Brian Blais bblais@bryant.edu http://web.bryant.edu/~bblais http://bblais.blogspot.com/