[IPython-user] ipython windows

Eric Zollars zollars at caltech.edu
Tue Oct 25 15:31:12 CDT 2005

The solution to getting ipython working on Windows Enthought Python is 
very simple: follow the directions on the ipython website.
New downloads of PyWin32,CTypes,and Readline lead to an IPython that can 
be imported. (I had thought Enthought came with PyWin32.)
Now, simple question.  How do I get ipython running from the windows 
command line?


Fernando Perez wrote:
> Hi Eric,
> Eric Zollars wrote:
>> I uninstalled ipython and readline.  Since I had allowed readline to 
>> overwrite the previous (Enthought) readline this left me with an empty 
>> readline folder in site-packages.  Reinstalled readline-1.12
>>  >>import readline
>>  >>dir(readline)
>> ['PyReadline','__builtins__','__doc__','__file__','__none__','__path__']
>>  >>print readline.__file__
>> C:\Python23\lib\site-packages\readline\__init__.pyc
>> So obviously I am not getting the expected result but I do not know why.
>> Eric
>> Fernando.Perez at colorado.edu wrote:
>>> The output I get is:
>>> ['CTRL', 'Console', 'GetOutputFile', 'PyReadline', 'Readline', 
>>> '__all__', '__bui
>>> ltins__', '__doc__', '__file__', '__name__', '__path__', 
>>> 'add_history', 'c32', '
>>> commonprefix', 'get_begidx', 'get_completer', 'get_completer_delims', 
>>> 'get_endid
>>> x', 'get_history_length', 'get_line_buffer', 'glob', 'insert_text', 
>>> 'key_text_to
>>> _keyinfo', 'keysyms', 'log', 'math', 'operator', 'os', 
>>> 'parse_and_bind', 'quote_
>>> char', 're', 'read_history_file', 'read_init_file', 'rl', 
>>> 'set_completer', 'set_
>>> completer_delims', 'set_history_length', 'set_pre_input_hook', 
>>> 'set_startup_hook
>>> ', 'string', 'sys', 'traceback', 'write_history_file']
> well, it's quite strange: you seem to be getting an _incomplete_ 
> readline import.  You may want to look inside the readline directory and 
> see if the code looks OK, and/or put a few print statements inside 
> there, to see why it's not building a complete module.
> Check for issues with ctypes imports inside readline and too-eager 
> try/except blocks which may be trapping an error and silencing it.
> Very strange.
> Cheers,
> f

More information about the IPython-user mailing list