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 won't work (Mac)
Type: behavior Stage: resolved
Components: IDLE 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: Nosy List: Sophie.Chancheong, ned.deily
Priority: normal Keywords:

Created on 2013-12-23 14:23 by Sophie.Chancheong, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg206859 - (view) Author: Sophie Chancheong (Sophie.Chancheong) Date: 2013-12-23 14:23
I'm having trouble with running Idle on my macbook pro os x 10.9.1 . two days ago it was running with absolutely no problem and now it won't start up. I've tried uninstalling and reinstalling, and I have updated the Tkinter and Tcl/Tk etc. It appears in the dock for a second then disappears. Any help would be appreciated.

Thanks,
Sophie
msg206880 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-12-23 22:50
What happens if you try to start IDLE from a terminal session by typing:

/usr/local/bin/idle3.3
msg206882 - (view) Author: Sophie Chancheong (Sophie.Chancheong) Date: 2013-12-24 00:08
when i try to start it from terminal i get:

sophiesmac:~ Sophie$ /usr/local/bin/idle3.3
Traceback (most recent call last):
  File "/usr/local/bin/idle3.3", line 5, in <module>
    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'
msg206887 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-12-24 06:26
This problem was reported and fixed in Issue18270 which will be in the next set of Python maintenance releases.  As explained there, what is causing this is that the Python 3.3 tkinter you are using is trying to use the known buggy system Tk 8.5 shipped with OS X.  If you are using a python.org 3.3, you can avoid the problem by installing a more up-to-date version of Tcl/Tk 8.5, such as the current ActiveTcl 8.5.15.0.  See http://www.python.org/download/mac/tcltk/
msg206909 - (view) Author: Sophie Chancheong (Sophie.Chancheong) Date: 2013-12-24 18:59
i have downloaded and installed activeTcl 8.5.15.0 and that's still what it says. do you mean a new version of python?
msg206918 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2013-12-25 07:26
I was assuming you were using a Python 3.3 from a binary installer downloaded from python.org.  Those Pythons are built to dynamically link with a compatible Tcl and Tk 8.5 frameworks in /Library/Frameworks, such as the ActiveTcl 8.5 ones, and fall back to the Apple-supplied version in /System/Library/Frameworks.  If you are using a Python 3.3 from another source or built yourself from source, it may not behave that way.

If you are using the current Python.org 3.3.3 64-bit/32-bit installer, the signature should be:

$ /usr/local/bin/python3.3 -c "import sys; print(sys.version)"
3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
$ /usr/local/bin/python3.3 -c "import _tkinter;print(_tkinter.__file__)"
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/_tkinter.so
$ otool -L $(/usr/local/bin/python3.3 -c "import _tkinter;print(_tkinter.__file__)")
/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/_tkinter.so:
	/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl (compatibility version 8.5.0, current version 8.5.15)
	/Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility version 8.5.0, current version 8.5.15)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
msg206976 - (view) Author: Sophie Chancheong (Sophie.Chancheong) Date: 2013-12-27 00:53
Sorry for not replying,

I followed the solution on the other thread and got it to work! Thank you so much for your help!!
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64253
2013-12-27 00:53:17Sophie.Chancheongsetmessages: + msg206976
2013-12-25 07:26:16ned.deilysetmessages: + msg206918
2013-12-24 18:59:04Sophie.Chancheongsetmessages: + msg206909
2013-12-24 06:26:50ned.deilysetstatus: open -> closed
superseder: IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date
messages: + msg206887

resolution: duplicate
stage: resolved
2013-12-24 00:08:05Sophie.Chancheongsetmessages: + msg206882
2013-12-23 22:50:40ned.deilysetnosy: + ned.deily
messages: + msg206880
2013-12-23 14:23:54Sophie.Chancheongcreate