Deleted System default Python on Leopard

Benjamin Kaplan benjamin.kaplan at case.edu
Mon Jan 16 11:03:02 EST 2012


On Mon, Jan 16, 2012 at 7:41 AM, Francesco Zhu
<franciszhu1990 at hotmail.com> wrote:
> Hello everyone,
>
> recently I've started to be try Python on my Mac OS X 10.5.8 Leopard and
> I've already messed up with it...
>
> I was compiling a Python souce code but didn't succeed and so I decided to
> install a newer version of Python.
> But before that, I did a stupid thing: I deleted manually all the folders of
> the Leopard's system default Python 2.5.1...
>
> Before when I was using the system Python, the program namebench worked
> perfectly.
> After that I messed everything up and installed MacPython 2.5 from the site
> python.org, now namebench always crashes.
>
> On the problem report system of Apple it gives me these errors:
> http://bpaste.net/show/21904/
>
> While this is the Console:
> http://bpaste.net/show/21905/
>
> What problem can it be?
> Can I clean up all the Pythons and restore the system one?
>
> Thanks everyone.
>
> Regards,
> Francesco Zhu

For compatibility reasons, a lot of programs specify the system
Python: either /usr/bin/python for the executable or
/System/Library/Frameworks/Python.Framework/Versions/2.5/python for
the library. If they didn't and you (for example) installed 3.2 and
set it as the default Python, everything would break.

You could download the Apple's Python 2.5.1 from
http://opensource.apple.com/source/python/python-30.1.3/, apply the
patches, and attempt to put everything back the way you found it but
it's probably easiest just to reinstall Leopard from the DVD. It
shouldn't wipe anything but I would suggest backing up just in case.



More information about the Python-list mailing list