[IPython-user] ipython / readline & scipy
cyril giraudon
cyril.giraudon@free...
Thu May 15 03:45:34 CDT 2008
Hi,
I use a 2007.0 mandriva linux box.
I 've installed python 2.5.2, ipython 0.8.2, numpy 1.0.4 from the
sources (3 months ago).
All worked very well.
Yesturday, I installed scipy 0.6.0 from sources too.
Ipython is broken, seems readline believes it is win32. I reinstalles
pyreadline 1.6, always the same message.
I don't know whether the scipy installation is the cause.
Any idea ?
Thanks a lot,
Cyril.
Here is the error message :
#####################################################""
[cyril@CGN-T pyreadline]$ ipython
WARNING: Readline services not available on this platform.
WARNING: The auto-indent feature requires the readline library
Python 2.5.2 (r252:60911, Apr 16 2008, 12:23:03)
Type "copyright", "credits" or "license" for more information.
IPython 0.8.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import readline
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/cyril/outils/python/pyreadline/<ipython console> in <module>()
/home/cyril/outils/python/pyreadline/readline.py in <module>()
1 # -*- coding: UTF-8 -*-
2 #this file is needed in site-packages to emulate readline
3 #necessary for rlcompleter since it relies on the existance
4 #of a readline module
----> 5 from pyreadline import *
/home/cyril/outils/python/pyreadline/pyreadline/__init__.py in <module>()
7 # the file COPYING, distributed as part of this software.
8
#*****************************************************************************
----> 9 import unicode_helper,logger,clipboard,lineeditor,modes
10 from rlmain import *
11 import rlmain
/home/cyril/outils/python/pyreadline/pyreadline/clipboard/__init__.py in
<module>()
10 else:
11 try:
---> 12 from win32_clipboard import
GetClipboardText,SetClipboardText
13 success=True
14 except ImportError:
/home/cyril/outils/python/pyreadline/pyreadline/clipboard/win32_clipboard.py
in <module>()
34
35 from ctypes import *
---> 36 from pyreadline.keysyms.winconstants import CF_TEXT, GHND
37 from pyreadline.unicode_helper import ensure_unicode,ensure_str
38
/home/cyril/outils/python/pyreadline/pyreadline/keysyms/__init__.py in
<module>()
16 except ImportError,x:
17 pass
18
19 if not success:
---> 20 raise ImportError("Could not import keysym for local
pythonversion",x)
ImportError: ('Could not import keysym for local pythonversion',
ImportError('cannot import name windll',))
###########################################################################
More information about the IPython-user
mailing list