New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDLE will not load #49957
Comments
I downloaded Python 3.0.1 and installed on Vista. I opened IDLE and it |
Reproduced with the console python.exe. Exception in Tkinter callback
Traceback (most recent call last):
File "c:\Python30\lib\tkinter\__init__.py", line 1405, in __call__
return self.func(*args)
File "c:\Python30\lib\idlelib\keybindingDialog.py", line 158, in
FinalKeySelected
self.BuildKeyString()
File "c:\Python30\lib\idlelib\keybindingDialog.py", line 165, in
BuildKeyString
keyList.append(finalKey)
AttributeError: 'filter' object has no attribute 'append'
Then it is still possible to save these settigs, but the binding
contains event=="Control", and IDLE fails on startup:
Traceback (most recent call last):
File "c:\afa\python\py3k\lib\runpy.py", line 128, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "c:\afa\python\py3k\lib\runpy.py", line 34, in _run_code
exec(code, run_globals)
File "c:\afa\python\py3k\lib\idlelib\idle.py", line 22, in <module>
idlelib.PyShell.main()
File "c:\afa\python\py3k\lib\idlelib\PyShell.py", line 1375, in main
shell = flist.open_shell()
File "c:\afa\python\py3k\lib\idlelib\PyShell.py", line 276, in open_shell
self.pyshell = PyShell(self)
File "c:\afa\python\py3k\lib\idlelib\PyShell.py", line 800, in __init__
OutputWindow.__init__(self, flist, None, None)
File "c:\afa\python\py3k\lib\idlelib\OutputWindow.py", line 16, in
__init__
EditorWindow.__init__(self, *args)
File "c:\afa\python\py3k\lib\idlelib\EditorWindow.py", line 117, in
__init__
self.apply_bindings()
File "c:\afa\python\py3k\lib\idlelib\EditorWindow.py", line 943, in
apply_bindings
text.event_add(event, *keylist)
File "c:\afa\python\py3k\lib\idlelib\MultiCall.py", line 359, in event_add
widget.event_add(self, virtual, seq)
File "c:\afa\python\py3k\lib\tkinter\__init__.py", line 1353, in event_add
self.tk.call(args)
_tkinter.TclError: bad event type or keysym "Control" Simple patch attached. |
Thank you for the patch. I have applied it (which is to say, swapped out return filter(None, modList)
for
return [mod for mod in modList if mod] in keybindingDialog.py), but the problem persists. python.exe continues |
The incorrect settings have been saved in your %USERPROFILE%\.idlerc BTW, "pythonw.exe" is not IDLE. It's a plain python interpreter without To see the IDLE error messages, I often type this in a console window: |
r71998 Thanks for the patch! backport to 30-maint. If OP has further problems getting installation working, delete .idlerc |
Modification to "customer key set" would make IDLE fail to start To re-produce: I believe that bpo-5707 is still exist in Ver. 3.1.1 for Mac OS X. OS: Mac OS X 10.6.1 The error message from console of Mac OS X is attached as following: Last login: Sat Nov 7 03:34:20 on ttys000
/Applications/Python\ 3.1/IDLE.app/Contents/MacOS/IDLE ; exit;
localhost:~ gcd$ /Applications/Python\ 3.1/IDLE.app/Contents/MacOS/IDLE
; exit;
Traceback (most recent call last):
File "/Applications/Python
3.1/IDLE.app/Contents/Resources/idlemain.py", line 73, in <module>
main()
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/PyShell.py", line 1386, in main
flist.new()
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/FileList.py", line 49, in new
return self.EditorWindow(self, filename)
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/PyShell.py", line 107, in __init__
EditorWindow.__init__(self, *args)
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/EditorWindow.py", line 135, in __init__
self.apply_bindings()
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/EditorWindow.py", line 961, in apply_bindings
text.event_add(event, *keylist)
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/idlelib
/MultiCall.py", line 359, in event_add
widget.event_add(self, virtual, seq)
File
"/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/tkinter
/__init__.py", line 1353, in event_add
self.tk.call(args)
_tkinter.TclError: bad event type or keysym "Control"
logout |
Amaury's patch has already been applied in (d31be8c9c8a2). GUO's description does cause an error. TclTk does not allow "<Control>" by itself to be bounded. This underlying cause for that error is addressed in bpo-6739 I think this issue should be closed. |
Closing the issue. If somebody has a problem related to this — please make a new report. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: