All right, so maybe I’ll finally use this space.
If you’ve tried to get IPython working on Mac OS X Leopard (that’d be 10.5, and 10.5.7 in particular) with an Intel based CPU, you’ve probably had some problems. I know I did! Let me cut to the chase, with a more technical explanation to follow. Oh, and some mild bitching, too.
I’m following the instructions I originally saw here, on IPython’s Launchpad site. Yes, my instructions are merely a reprint of someone else’s bug report. More on that after I explain.
Quick instructions
I’m going to assume you haven’t downloaded anything, although if, like me, you wrestled with this for a while, you can still do these steps and it’ll work. It worked for me, anyway. :/
- Download the
.egg for readline, presumably the latest version. Get IPython if you haven’t already. As of this writing, you can get it here at the IPython download site. You can s/i386/fat/ if you like.
- Copy it to a directory, such as
~/python.
- You can try to install readline and IPython: sudo easy_install readline ipython. One or both will fail.
- Open /usr/local/bin/ipython in your favorite text editor, and replace the contents of the file as described at the IPython Launchpad bug linked above. The key is to hardcode readline into the Python system path immediately after sys, and then to launch IPython explicitly.
- Launch ipython.
You should be OK now, tabbing and all. If you haven’t checked this shit out, using IPython for your system shell, I highly recommend that you do. It’s none too shabby. There’s a book on this, too.
Technical stuff after the jump.
Read the rest of this entry »