I have two python 2.5.4 installations on my Snow Leopard, don't ask why.
When I run just "python" from the cmdline, build 5363 is started. When I run /usr/bin/python2.5
then build 5646 (the one I need) is started. Before you ask, build number is not the only difference between those but also the "type" of the build, so I really can't even start getting somewhere with this 5363.
Problem is, the app I need crashes (exception in wxPython, couldn't google that one), and I'm suspicious that when I start main app with correct python build, threads are started with the wrong one (it happened before with the same app, on another system).
How do I go about changing "default" python 2.5 to start the right build?
my PATH is:
/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
which python
returns only:
/Library/Frameworks/Python.framework/Versions/Current/bin/python
ls -la /usr/bin/python*
returns:
-rwxr-xr-x 2 root wheel 86000 Sep 25 2010 /usr/bin/python
-rwxr-xr-x 5 root wheel 925 Sep 25 2010 /usr/bin/python-config
lrwxr-xr-x 1 root wheel 75 Sep 25 2010 /usr/bin/python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
lrwxr-xr-x 1 root wheel 82 Sep 25 2010 /usr/bin/python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 75 Sep 25 2010 /usr/bin/python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
lrwxr-xr-x 1 root wheel 82 Sep 25 2010 /usr/bin/python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
-rwxr-xr-x 2 root wheel 86000 Sep 25 2010 /usr/bin/pythonw
lrwxr-xr-x 1 root wheel 76 Sep 25 2010 /usr/bin/pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
lrwxr-xr-x 1 root wheel 76 Sep 25 2010 /usr/bin/pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6
ls -la /usr/local/bin/python*
returns:
lrwxr-xr-x 1 root wheel 68 Apr 22 2010 /usr/local/bin/python -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/python
lrwxr-xr-x 1 root wheel 75 Apr 22 2010 /usr/local/bin/python-config -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/python-config
lrwxr-xr-x 1 root wheel 71 Apr 22 2010 /usr/local/bin/python2.5 -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5
lrwxr-xr-x 1 root wheel 78 Apr 22 2010 /usr/local/bin/python2.5-config -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config
lrwxr-xr-x 1 root wheel 69 Apr 22 2010 /usr/local/bin/pythonw -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw
lrwxr-xr-x 1 root wheel 72 Apr 22 2010 /usr/local/bin/pythonw2.5 -> ../../../Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5
I'm neither python nor *nix guru, add Mac to the mix and I feel pretty helpless...
Please help!