Reinstall python 2.3 on OSX 10.3.5?

M

moa

Hi there

I started a very long and roundabout process of attempting to install
python 2.3.4 along side my apple-installed 2.3 system. To make a long
story short, I have completely confabulated my environment ( i deleted
the 2.3 binaries and so forth from the system in an attempt to start
things fresh), and now I cannot figure out how to reinstall the base
2.3 Apple python distribution.
Can somebody please point me in the right direction?

best -Nick
 
R

Robert Kern

Hi there

I started a very long and roundabout process of attempting to install
python 2.3.4 along side my apple-installed 2.3 system. To make a long
story short, I have completely confabulated my environment ( i deleted
the 2.3 binaries and so forth from the system in an attempt to start
things fresh), and now I cannot figure out how to reinstall the base
2.3 Apple python distribution.
Can somebody please point me in the right direction?

Borrow Guido's time machine and prevent your former self from doing
that. OS X depends on it's python being there untouched. They also have
compiled stuff that does not exist in the standard Python distribution.

Back up your data and reinstall the OS.

--
Robert Kern
(e-mail address removed)

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
 
R

Russell E. Owen

Hi there

I started a very long and roundabout process of attempting to install
python 2.3.4 along side my apple-installed 2.3 system. To make a long
story short, I have completely confabulated my environment ( i deleted
the 2.3 binaries and so forth from the system in an attempt to start
things fresh), and now I cannot figure out how to reinstall the base
2.3 Apple python distribution.
Can somebody please point me in the right direction?

Archive and Install of the operating system is the safest.

But if you have some kind a backup or know somebody with a similar Mac,
you could try reinstalling /System/Library/Frameworks/Python.framework.
You'd have to do this in a way that preserved ownership and permissions.
That would probably still leave a few unresolved symbolic links and/or
aliases lying around, but is worth a try (especially if you can examine
that system and see where the links go). In particular
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/s
ite-packages" points to "/Library/Python/2.3" and /usr/bin/python and
/usr/bin/pythonw point somewhere useful.

But...archive and install is really the safest and it's a chance to
clean up a bit of cruft. (But it messes with /usr/local and your web
site, so back all that up first).

-- Russell

P.S. I installed a separate unix/x11 Python 2.4 in /usr/local with no
problem using the default install process. However, I wanted X11 Tk
support for that, so I first:
- moved the aqua Tk (in /Library/Frameworks/Tk.framework, and
Tcl.framework) so the installers could not find them
- installed unix/x11 tcl and tk (again using the default install process)
This results in a perfectly workable python that uses the X11 Tk stuff.

It's a minor headache having two pythons -- every package has to be
installed twice if you want it available in both pythons.
 
D

Dominique O. Martel

0) compile and install GNU readline 5.0 with the usual ./configure
method
ftp://ftp.cwru.edu/pub/bash/readline-5.0.tar.gz

1) as an administrator, remove the contents of
"/System/Library/Frameworks/Python.framework"

2) install Python from the standard distribution:
./configure --enable-framework=/System/Library/Frameworks
make
sudo make frameworkinstall

3) install the extras in /Applications if you want to:
sudo make frameworkinstallextras
Move them to /Developer/Applications/Utilities/MacPython-2.3

4) remove every python* from /usr/local/bin
Those in /usr/bin/ are OK for Python 2.3

5) replace
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages"
with a symbolic link to "/Library/Python/2.3". Name it "site-packages".

I have installed and used Python 2.3.x this way without any problem
whatsoever.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,219
Messages
2,571,117
Members
47,730
Latest member
scavoli

Latest Threads

Top