<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">Sorry if this has been mentioned before. But on my Lion system, there are two places where python is installed: /usr/bin and /usr/local/bin:</div>
<div class="gmail_default"><div class="gmail_default"><font color="#000000" face="courier new, monospace"> Directory /usr/local/bin</font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace">ipython<span class="" style="white-space:pre"> </span>python3-config<span class="" style="white-space:pre"> </span>pythonw3</font></div>
<div class="gmail_default"><font color="#000000" face="courier new, monospace">ipython-qtconsole<span class="" style="white-space:pre"> </span>python3.1<span class="" style="white-space:pre"> </span>pythonw3.1</font></div>
<div class="gmail_default"><font color="#000000" face="courier new, monospace">python3<span class="" style="white-space:pre"> </span>python3.1-config</font></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small">
and</div><div><div><font color="#000000" face="courier new, monospace"> Directory /usr/bin</font></div><div><font color="#000000" face="courier new, monospace">python<span class="" style="white-space:pre"> </span>python2.6<span class="" style="white-space:pre"> </span>pythonw</font></div>
<div><font color="#000000" face="courier new, monospace">python-config<span class="" style="white-space:pre"> </span>python2.6-config<span class="" style="white-space:pre"> </span>pythonw2.5</font></div><div><font color="#000000" face="courier new, monospace">python2.5<span class="" style="white-space:pre"> </span>python2.7<span class="" style="white-space:pre"> </span>pythonw2.6</font></div>
<div><font color="#000000" face="courier new, monospace">python2.5-config<span class="" style="white-space:pre"> </span>python2.7-config<span class="" style="white-space:pre"> </span>pythonw2.7</font></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small">
<br></div></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small">If I use just "python" or "ipython" I end up with the new python3 system which fails with all sorts of errors. But the python2.x versions work fine.</div>
<div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small">This is a chronic difficulty with python and its package management. Probably a local expert can guide you through resolving this if you indeed have multiple, conflicting pythons. The simplest is simply to modify your PATH so that the preferred python is first.</div>
<div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:small"> -- Owen</div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sun, Jul 7, 2013 at 2:19 AM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 6 Jul 2013, at 21:31, Daniel Marcelino wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It seems that the default python version is 3 […] Any idea to fix this?<br>
</blockquote>
<br>
You should replace /usr/bin/python with the system’s original version. Maybe you have it on a backup?<br>
<br>
If you don’t have a backup, it may work to replace it with a custom build of python 2.7 (e.g. from Homebrew / MacPorts).<br>
<br>
Worst case, use your OS X install disk / receovery partition to perform a re-install of system files.<br>
<br>
______________________________<u></u>_________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/<u></u>listinfo/textmate</a></blockquote></div><br></div>