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 won't work (Mac) #64253
Comments
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, |
What happens if you try to start IDLE from a terminal session by typing: /usr/local/bin/idle3.3 |
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' |
This problem was reported and fixed in bpo-18270 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/ |
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? |
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) |
Sorry for not replying, I followed the solution on the other thread and got it to work! Thank you so much for your help!! |
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: