[IPython-dev] [Pythonmac-SIG] readline support for OS X Leopard

Boyd Waters bwaters at nrao.edu
Wed Oct 31 10:48:06 EDT 2007



On Oct 31, 2007, at 3:27 AM, Hans Meine wrote:

>> BUT from inside *ipython* I get a segmentation fault.
>
> Again - are you sure that both use the same python version?


Thanks, good suggestion, but in this case I'm pretty sure.

I uninstalled all MacPorts pythons before running this test.
This is basically a clean install of Leopard.

$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 21:08:09)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os
 >>> import readline
 >>> import rlcompleter
 >>> print os.system("otool -L %s" % readline.__file__)
/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
lib-dynload/readline.so:
	/usr/lib/libedit.2.dylib (compatibility version 2.0.0, current  
version 2.9.0)
	/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current  
version 5.4.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current  
version 1.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current  
version 111.0.0)
0
 >>> readline.parse_and_bind ("bind ^I rl_complete")
 >>> readline.[TAB KEY PRESSED]
readline.__class__                    
readline.__class__                   readline.__class__
readline.__delattr__                  
readline.__delattr__                 readline.__dict__
...

 >>> ^D


$ ipython
In [1]: import os

In [2]: import readline

In [3]: import rlcompleter

In [4]: print os.system("otool -L %s" % readline.__file__)
/Library/Python/2.5/site-packages/IPython/rlineimpl.pyc: is not an  
object file
0


Hmm.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20071031/c36e4e08/attachment.html>


More information about the IPython-dev mailing list