Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip installing ipython with readline on OSX Lion

What is required to get ipython fully functional on OSX Lion? I'm trying to get ipython with readline working and having no success.

My approach:

(inside a virtual environment)

pip install ipython # runs, but only slightly useful because can't indent blocks pip install readline

The second completes with warnings and eventually says "Successfully installed readline" But I'm still left without the ability to indent blocks and going back in the command history leads to garbled terminal output.

I suspect these warnings are critical, but I'm at a loss about what to do about them.

ld: warning: ignoring file readline/libreadline.a, file was built for archive which is not the architecture being linked (i386)

ld: warning: ignoring file readline/libhistory.a, file was built for archive which is not the architecture being linked (i386)

(I've spent the morning googling the errors, to no avail)

tia,

like image 430
golliher Avatar asked Jul 31 '11 12:07

golliher


2 Answers

I've had the same issue and for some reason only the version of readline installed via easy_install readline works fine.

like image 79
Jakub Roztocil Avatar answered Sep 20 '22 21:09

Jakub Roztocil


1) Upgraded to latest Mac OS X dev tools

2) Installed Distribute

3) pip install ipython

4) pip install readline

Thanks to this article.

like image 39
wes Avatar answered Sep 18 '22 21:09

wes