[Pythonmac-SIG] Retroactively adding readline support to OS X
Calvin
calvin at xmission.com
Thu Jun 26 11:36:48 EDT 2003
> Are you sure it's getting installed into the right version of python? Have you tried "import readline" to see what happens?
>
> It definitely works on a bare Panther with XCode, and it works on a 2.3b1 install on 10.2.6 w/o fink.. but you have to make sure to "sudo /usr/local/bin/python2.3 setup.py install".
The short of this is I got readline.0.0.1 install to work, read on for
how.
FWIW:
It's a spanking new installation of python except for fiddling with
packagemanager and various attempts at readline installs.
Also I get this error on importing readline:
Python 2.3b1 (#4, Apr 29 2003, 13:28:17) ...
>>> import readline
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: Failure linking new module: /sw/lib/libreadline.4.dylib:
dyld: python can't open library: /sw/lib/libreadline.4.dylib (No such
file or directory, errno = 2)
it's the same error the packagemanger gets.
What I did:
I completely trash python everyything on my machine.
[thearthole:/Applications] calvin% sudo rm -rf MacPython-2.3
[thearthole:/usr/local/bin] calvin% sudo rm pyt*
[thearthole:/Library/Frameworks] calvin% sudo rm -rf Python.framework/
reinstall from the diskimage...clickable python install, so nice!
trash the readline.0.0.1 folder.
(probably unnecessary but that sudo rm -rf is so fun!)
untar readline.0.0.1
sudo /usr/local/bin/python2.3 setup.py install
and now readline works!
My conclusion is that readline.0.0.1 install works but not if
packagemanager has tried to install readline binary and failed
(eg no /sw/lib/ etc).
Additionally I reinstalled MySQLdb following the instructions and that
installed flawlessly too.
so on a clean python mac osx 10.2.6 your realine.0.0.1 install and
the mysqldb install work perfectly with MacPython-OSX 2.3b1-2
thanks for your help.
-calvin
now to get image installed with jpeg libs in /usr/local/lib...
More information about the Pythonmac-SIG
mailing list