Hello,<br><br>I am trying to run a python based program on MacOSX, which needs following packages<br><br>numpy<br>PIL<br>matplotlib<br><br>I can successfully import all 3 using python2.5 (only using /sw64/bin/python or /sw64/bin/python2.5) , although i have python2.6 and 2.7 installed. I get following error when in run executable:<br>
<br><b>"Fatal Python error: Interpreter not initialized (version mismatch?)<br>Abort trap</b>"<br><br>Seems like a correct python version needs to be defined somewhere, that i am unable to find.<br><br>Some details about location of various pythons are as follows (i have not specified a python path in my .bashrc or .bash_profile):<br>
<br><b>$which python</b><br>/sw64/bin/python<br><br><b>$ ls -ltr /sw64/bin/python*</b><br>
-rwxr-xr-x  1 root  admin  1763200 Apr 14 19:45 /sw64/bin/python2.5<br>
-rwxr-xr-x  1 root  admin     1419 Apr 14 19:45 /sw64/bin/python2.5-config<br>
-rwxr-xr-x  1 root  admin     8984 Apr 14 19:47 /sw64/bin/python2.6<br>
-rwxr-xr-x  1 root  admin     1366 Apr 14 19:47 /sw64/bin/python2.6-config<br>
-rwxr-xr-x  1 root  admin     8984 Apr 14 19:49 /sw64/bin/python2.7<br>
-rwxr-xr-x  1 root  admin     1550 Apr 14 19:50 /sw64/bin/python2.7-config<br>
lrwxr-xr-x  1 root  admin        9 Apr 15 18:17 /sw64/bin/python -> python2.5<br>
lrwxr-xr-x  1 root  admin       16 Apr 15 18:17 /sw64/bin/python-config -> python2.5-config<br>
<br><b>$ls -ltr /System/Library/Frameworks/Python.framework/Versions</b><br>drwxr-xr-x   8 root  wheel  272 Jun  7  2010 2.3<br>drwxr-xr-x  12 root  wheel  408 Nov 30 13:46 2.5<br>drwxr-xr-x  12 root  wheel  408 Nov 30 13:46 2.6<br>
lrwxr-xr-x   1 root  wheel    3 Apr 19 11:20 Current -> 2.5<br><br><b>$ls -ltr /usr/bin/python*</b><br>-rwxr-xr-x  5 root  wheel    925 Jul  9  2009 /usr/bin/python-config<br>lrwxr-xr-x  1 root  wheel     76 Jun  7  2010 /usr/bin/pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6<br>
lrwxr-xr-x  1 root  wheel     76 Jun  7  2010 /usr/bin/pythonw2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/pythonw2.5<br>lrwxr-xr-x  1 root  wheel     82 Jun  7  2010 /usr/bin/python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config<br>
lrwxr-xr-x  1 root  wheel     75 Jun  7  2010 /usr/bin/python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6<br>lrwxr-xr-x  1 root  wheel     82 Jun  7  2010 /usr/bin/python2.5-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5-config<br>
lrwxr-xr-x  1 root  wheel     75 Jun  7  2010 /usr/bin/python2.5 -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5<br>-rwxr-xr-x  2 root  wheel  86000 Jun 25  2010 /usr/bin/pythonw<br>-rwxr-xr-x  2 root  wheel  86000 Jun 25  2010 /usr/bin/python<br>
<br><br>Could someone point me to a solution?<br><br>Thanks so much for your time.<br><br>Yogesh<br>