[IPython-user] IPython WinXP readline support

Fernando Perez Fernando.Perez at colorado.edu
Tue Jun 29 22:44:08 CDT 2004

Marc Sibson wrote:
> Hello, 
> I have been trying to get Gary Bishop's readline module to work with IPython
> under WinXP, with no luck.   I have installed ctypes 0.6.3 and tried readline
> 1.3 and 1.4 under both python 2.2 and 2.3 with IPython 6.0 and 6.1-cvs. With no
> extra readline install IPython works with out tab completion etc.  By installing
> Gary Bishop's readline it dies on startup.  Either with no error message or with
> the following, depending on the combination packages used.
> C:\Python22\Scripts>..\python ipython
> Traceback (most recent call last):
>   File "ipython", line 27, in ?
>     import IPython
>   File "C:\Python22\Lib\site-packages\IPython\__init__.py", line 37, in ?
>     __import__(name,globals(),locals(),[])
>   File "C:\Python22\lib\site-packages\IPython\Shell.py", line 26, in ?
>     from ipmaker import make_IPython
>   File "C:\Python22\lib\site-packages\IPython\ipmaker.py", line 60, in ?
>     from iplib import InteractiveShell,qw_lol,import_fail_info
>   File "C:\Python22\lib\site-packages\IPython\iplib.py", line 98, in ?
>     import FlexCompleter
>   File "C:\Python22\Lib\site-packages\IPython\FlexCompleter.py", line 195, in ?
>     readline.set_completer(Completer().complete)
> AttributeError: 'module' object has no attribute 'set_completer'

I am going to guess that you have more than one readline installed on your 
system.  This is a python 2.2 traceback.  The ipython from below is 2.3:

> C:\>python23\python.exe Python23\Scripts\ipython -noreadline
> Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.

It's quite possible that you have Gary's readline under 2.3 and something else 
under 2.2, or some other combination.  It's also true that using 0.6.0, Gary's 
readline is NOT auto-configured by ipython (though it can be done manually). 
Current CVS code does auto-configure Gary's library, and that's what will 
become 0.6.1.

I hope this helps.



More information about the IPython-user mailing list