This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE can't be launched
Type: Stage: resolved
Components: macOS Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder: IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date
View: 18270
Assigned To: ronaldoussoren Nosy List: Ryan.Z, ned.deily, ronaldoussoren
Priority: normal Keywords:

Created on 2013-12-09 13:33 by Ryan.Z, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg205692 - (view) Author: Ryan Z (Ryan.Z) Date: 2013-12-09 13:33
After I installed a wrong version pygame on OSX 10.9, and may updated something OSX, Then, I can't launch the IDLE, 
It appears on the dock, then quit at the same moment.


bogon:~ RyanZ$ /usr/local/bin/python3.3 -m idlelib
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/__main__.py", line 9, in <module>
    idlelib.PyShell.main()
  File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/PyShell.py", line 1572, in main
    shell.interp.runcommand(''.join(("print('", tkversionwarning, "')")))
AttributeError: 'NoneType' object has no attribute 'interp'
msg205739 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-12-09 20:33
This is a duplicate of 18270.  As explained there, the workaround is to follow the instructions at http://www.python.org/download/mac/tcltk/ and, if possible, install an up-to-date Tcl/Tk 8.5 from ActiveState.  If that is not possible, then launch IDLE from the command line with an initial shell window:

/usr/local/bin/python3.3 -m idlelib -i

and be sure to change the preference to always launch with a shell window.
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64136
2013-12-09 20:33:01ned.deilysetstatus: open -> closed

superseder: IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date
nosy: + ned.deily
title: IDLE can't be launch -> IDLE can't be launched
messages: + msg205739

type: compile error ->
resolution: duplicate
stage: resolved
2013-12-09 13:33:40Ryan.Zcreate