python27 IDLE doesn't run
Lenore Horner
LenoreHorner at sbcglobal.net
Sat Jan 18 06:21:16 PST 2014
When I double-click the IDLE icon in the MacPorts Python folder nothing happens except that the following line gets written to console.
1/18/14 08:54:26.526 com.apple.launchd.peruser.502[185]: (org.python.IDLE.129216[59547]) Exited with code: 1
port installed python* yields
python27 @2.7.6_0 (active)
python_select @0.3_3 (active)
I’m not even sure how IDLE got there let alone what to reinstall to fix it or what to file a ticket against. I’ve tried the following.
locate org.python.IDLE
/private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist
port provides /private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist
/private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist is not provided by a MacPorts port.
OK it did come from MacPorts python.
port contents python27 | grep IDLE
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/MacOS/IDLE
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/MacOS/Python
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/PkgInfo
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/IDLE.icns
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/PythonCompiled.icns
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/PythonSource.icns
/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/idlemain.py
Ahah. Let’s try showing the contents and clicking on the IDLE terminal command there. That yields the following.
/Applications/MacPorts/Python\ 2.7/IDLE.app/Contents/MacOS/IDLE ; exit;
Traceback (most recent call last):
File "/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/idlemain.py", line 71, in <module>
from idlelib import macosxSupport
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/macosxSupport.py", line 6, in <module>
import Tkinter
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
logout
[Process completed]
I just did port upgrade last night and this is still happening. I’m not sure why the console error seems to point to someplace other than the macports files. But the macports command also has errors if I run it directly from the command line.
I found this which may be relevant.
http://stackoverflow.com/questions/5459444/tkinter-python-may-not-be-configured-for-tk
"If it fails with "No module named _tkinter", your Python configuration needs to be modified to include this module (which is an extension module implemented in C). Do not edit Modules/Setup (it is out of date). You may have to install Tcl and Tk (when using RPM, install the -devel RPMs as well) and/or edit the setup.py script to point to the right locations where Tcl/Tk is installed. If you install Tcl/Tk in the default locations, simply rerunning "make" should build the _tkinter extension.”
This doesn’t really make sense to me though because I thought Macports itself used Tcl so wouldn’t Tcl/Tk be installed already?
10.9.1
Macports 2.2.1
MacBook Air (core2 duo chip)
Thanks,
Lenore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20140118/57cf4d93/attachment.html>
More information about the macports-users
mailing list