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


Groups > comp.lang.python > #3266

Re: TextWrangler "run" command not working properly

Subject Re: TextWrangler "run" command not working properly
From Brian Blais <bblais@bryant.edu>
Date 2011-04-15 05:57 -0400
References <oakwood-DAC806.22525414042011@news.free.fr> <382709dd-5e3f-4b07-a642-4ce141ef442b@18g2000prd.googlegroups.com> <oakwood-239C29.10512015042011@news.free.fr>
Newsgroups comp.lang.python
Message-ID <mailman.393.1302865048.9059.python-list@python.org> (permalink)

Show all headers | View raw


Hello Fabio You have two versions of 2.6 on your system.  

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, 

#!/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


-- 
Brian Blais
bblais@bryant.edu
http://web.bryant.edu/~bblais
http://bblais.blogspot.com/


Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

[Mac OSX] TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-14 22:52 +0200
  Re: TextWrangler "run" command not working properly Jon Clements <joncle@googlemail.com> - 2011-04-14 14:01 -0700
    Re: TextWrangler "run" command not working properly Ernest Obusek <ernest@willowfalls.net> - 2011-04-14 17:14 -0400
      Re: TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-17 14:07 +0200
    Re: TextWrangler "run" command not working properly Fabio <oakwood@email.it> - 2011-04-15 10:51 +0200
      Re: TextWrangler "run" command not working properly Brian Blais <bblais@bryant.edu> - 2011-04-15 05:57 -0400

csiph-web