[IPython-user] IPython WinXP readline support

Marc Sibson bypassmuss at yahoo.com
Tue Jun 29 20:35:32 CDT 2004


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 ?
  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 ?
AttributeError: 'module' object has no attribute 'set_completer'


Passing the -noreadline option gives the same result or sometimes works, again
depending on the package combination.

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.

IPython 0.6.0 -- An enhanced Interactive Python.
?       -> Introduction to IPython's features.
@magic  -> Information about IPython's 'magic' @ functions.
help    -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: ^Z

Do you really want to exit ([y]/n)?


Having browsed the archive it seems others have got this to work.  So my first
question is what versions of each package are known to successfully work
together?  Beyond that is it my installation that is borked or is there
something else wrong.  I'll be happy to try any suggestions.


More information about the IPython-user mailing list