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

Brian Granger ellisonbg.net@gmail....
Wed Oct 31 10:28:31 CDT 2007


Can you do look at the output of:

head `which ipython`

This will tell you which python your ipython (the ipython that is
first in your path if there are multiple) is using.

Brian


On 10/31/07, Boyd Waters <bwaters@nrao.edu> wrote:
>
>
>
>
> 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.
>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
>
>


More information about the IPython-dev mailing list