Issue 13071: IDLE accepts, then crashes, on invalid key bindings.
Created on 2011-09-30 00:05 by jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;sal, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (11)
msg144657 - (view)
Author: jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal (jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;sal)
Date: 2011-09-30 00:05
Date: 2011-09-30 00:29
Date: 2011-09-30 22:18
Date: 2011-10-03 08:17
Date: 2011-10-03 08:20
Date: 2011-10-03 08:51
Date: 2011-10-03 21:36
Date: 2011-10-03 22:15
I have tried all ways of opening IDLE and have uninstalled and reinstalled Python, but when I try to open it it crashes before anything happensmsg144659 - (view) Author: Ezio Melotti (ezio.melotti) *
Date: 2011-09-30 00:29
Try to open cmd (win+r -> type 'cmd' -> press enter), cd in the Python directory and do "python.exe Lib\idlelib\idle.py". If that doesn't work it should give you a traceback. Once you get the traceback copy/paste it here, so we can figure out what's going on.msg144709 - (view) Author: Terry J. Reedy (terry.reedy) *
Date: 2011-09-30 22:18
IDLE with Py3.2.2 works fine on Win 7 for me (desktop) and daughter (laptop), so there is something peculiar with your system.msg144804 - (view) Author: jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal (jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;sal) Date: 2011-10-03 05:22
Traceback (most recent call last): File "C:\Python32\Lib\idlelib/idle.py", line 11, in <module> idlelib.PyShell.main() File "C:\Python32\Lib\idlelib\PyShell.py",line 1377, in main shell = flist.open_shell() File "C:\Python32\Lib\idlelib\PyShell.py", line 273, in open_shell self.pyshell = PyShell(self) File "C:\Python32\Lib\idlelib\Pyshell.py", line 802, in __init__ OutputWindow.__init__(self,flist, none, none) File "C:\Python32\Lib\idlelib\OutputWindow.py", line 16, in __init__ EditorWindow.__init__(self,*args) File "C:\Python32\Lib\idlelib\EditorWindow.py", line 145, in __init__ self.aply_bindings() File "C:\Python32\Lib\idlelib\EditorWindow.py", line 985, in apply_bindings text.event_add(event, *keylist) File "C:\Python32\Lib\idlelib\MultiCall.py", line 359, in event_add widget.event_add(self, virtual, seq) File C:\Python32\Lib\tkinter\__init__.py", line 1353, in event_add self.tk.call(args) _tkinter.TclError: bad event type or keysym "Alt"msg144805 - (view) Author: jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal (jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;sal) Date: 2011-10-03 05:23
That is the traceback given when I run idle.py through windows command promptmsg144807 - (view) Author: Terry J. Reedy (terry.reedy) *
Date: 2011-10-03 08:17
Are you using the .msi installer from python.org? Or one from activestate or enthought?msg144808 - (view) Author: Ezio Melotti (ezio.melotti) *
Date: 2011-10-03 08:20
Are you using some "unusual" keyboard layout?msg144809 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *
Date: 2011-10-03 08:51
This issue is very similar to issue5707: it is possible to define a custom key binding to "<Alt>" or "<Control>": just click the Alt box and don't select a letter. There is no check, it's possible to save this buggy key binding, and IDLE won't start anymore. IDLE should: - check the validity of the binding and refuse to save it when it is invalid - gracefully skip invalid bindings from the config filemsg144842 - (view) Author: jfalskfjdsl;akfdjsa;l laksfj;aslkfdj;sal (jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;sal) Date: 2011-10-03 21:32
ok i have solved the problem it was the same as issue 4765msg144843 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) *
Date: 2011-10-03 21:36
What did you do to solve the problem?msg144845 - (view) Author: Terry J. Reedy (terry.reedy) *
Date: 2011-10-03 22:15
While this issue and #4765 are about the same effect, with a similar workaround, Amaury has indentified a separate bug in the custom key mechanism. So I retitled it to refer to that bug.
History
Date
User
Action
Args
2022-04-11 14:57:22adminsetgithub: 57280
2012-01-26 04:35:35terry.reedysetstatus: open -> closed
resolution: duplicate
title: IDLE refuses to open on windows 7 -> IDLE accepts, then crashes, on invalid key bindings. 2011-10-03 21:36:56amaury.forgeotdarcsetmessages: + msg144843 2011-10-03 21:32:40jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144842 2011-10-03 08:51:44amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg144809
2011-10-03 08:20:37ezio.melottisetmessages: + msg144808 2011-10-03 08:17:50terry.reedysetmessages: + msg144807 2011-10-03 05:23:03jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144805 2011-10-03 05:22:11jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144804 2011-09-30 22:18:39terry.reedysetnosy: + terry.reedy
messages: + msg144709
2011-09-30 00:29:07ezio.melottisetnosy: + ezio.melotti
messages: + msg144659
2011-09-30 00:05:21jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salcreate
resolution: duplicate
superseder: IDLE crash on startup with typo in config-keys.cfg
nosy:
+ roger.serwy
title: IDLE refuses to open on windows 7 -> IDLE accepts, then crashes, on invalid key bindings. 2011-10-03 21:36:56amaury.forgeotdarcsetmessages: + msg144843 2011-10-03 21:32:40jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144842 2011-10-03 08:51:44amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg144809
2011-10-03 08:20:37ezio.melottisetmessages: + msg144808 2011-10-03 08:17:50terry.reedysetmessages: + msg144807 2011-10-03 05:23:03jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144805 2011-10-03 05:22:11jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salsetmessages: + msg144804 2011-09-30 22:18:39terry.reedysetnosy: + terry.reedy
messages: + msg144709
2011-09-30 00:29:07ezio.melottisetnosy: + ezio.melotti
messages: + msg144659
2011-09-30 00:05:21jfalskfjdsl;akfdjsa;l.laksfj;aslkfdj;salcreate