Ticket #153 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

pyreadline Install crash on python 2.3, caused by use of set builtin available from python 2.4

Reported by: jstenar Assigned to: jstenar
Priority: normal Milestone:
Component: pyreadline Version:
Severity: normal Keywords:
Cc:

Description

Problem reported by Uwe Fechner in mail included below. Fix: Don't depend on builtin set import from Sets instead when using 2.3.

Hello,

I was trying to install ipython on windows xp, but I get the following error message during the post install script:

Traceback (most recent call last):

File "<string>", line 76, in ? File "<string>", line 15, in install File "C:\PYTHON23\Lib\site-packages\IPython\init.py", line 60, in ?

import(name,glob,loc,[])

File "C:\PYTHON23\Lib\site-packages\IPython\genutils.py", line 93, in ?

import IPython.rlineimpl as readline

File "C:\PYTHON23\Lib\site-packages\IPython\rlineimpl.py", line 18, in ?

import pyreadline.rlmain

File "C:\PYTHON23\Lib\site-packages\pyreadline\init.py", line 9, in ?

import logger,clipboard,lineeditor,modes

File "C:\PYTHON23\Lib\site-packages\pyreadline\clipboard\init.py", line 12, in ?

from win32_clipboard import GetClipboardText?,SetClipboardText?

File "C:\PYTHON23\Lib\site-packages\pyreadline\clipboard\win32_clipboard.py", line 36, in ?

from pyreadline.keysyms.winconstants import CF_TEXT, GHND

File "C:\PYTHON23\Lib\site-packages\pyreadline\keysyms\init.py", line 14, in ?

from keysyms import *

File "C:\PYTHON23\Lib\site-packages\pyreadline\keysyms\keysyms.py", line 14, in ?

from common import validkey,KeyPress?,make_KeyPress_from_keydescr

File "C:\PYTHON23\Lib\site-packages\pyreadline\keysyms\common.py", line 11, in ?

validkey =set(['cancel', 'backspace', 'tab', 'clear',

NameError?: name 'set' is not defined *** run_installscript: internal error 0xFFFFFFFF ***

I installed:


python 2.3.5 ctypes-1.0.1.win32-py2.3.exe pyreadline-1.4.2.win32.exe pywin32-210.win32-py2.3.exe

Any idea how to fix this problem?

Best Regards:

Uwe Fechner Embedded Development

PEGASUS GMBH Firmensitz: Fraunhoferstr. 2-4, 24118 Kiel Amtsgericht Kiel, HRB 56 26 Geschäftsführer: Johannes Kritten

Tel.: +49 (0)431 220 75 - 14 Fax: +49 (0)431 220 75 - 75

Email: fechner@pegasus-gmbh.com

Home: www.pegasus-gmbh.com

_ IPython-user mailing list IPython-user@scipy.org http://lists.ipython.scipy.org/mailman/listinfo/ipython-user

Change History

05/09/07 14:19:40 changed by jstenar

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in rev2325