<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">When I double-click the IDLE icon in the MacPorts Python folder nothing happens except that the following line gets written to console.<div><div>1/18/14 08:54:26.526 com.apple.launchd.peruser.502[185]: (org.python.IDLE.129216[59547]) Exited with code: 1</div></div><div><br></div><div>port installed python* yields</div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; python27 @2.7.6_0 (active)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; python_select @0.3_3 (active)</div></div><div><br></div><div>I’m not even sure how IDLE got there let alone what to reinstall to fix it or what to file a ticket against. &nbsp;I’ve tried the following.</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">locate org.python.IDLE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">/private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px;"><div style="font-family: Menlo; font-size: 11px; margin: 0px;">port provides /private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">/private/var/db/BootCaches/07AF3A6E-E096-404E-B37E-A310F2681E39/app.org.python.IDLE.playlist is not provided by a MacPorts port.</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;"><br></div><div style="margin: 0px;">OK it did come from MacPorts python.</div><div style="margin: 0px;"><div style="font-family: Menlo; font-size: 11px; margin: 0px;">port contents python27 | grep IDLE</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Info.plist</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/MacOS/IDLE</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/MacOS/Python</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/PkgInfo</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/IDLE.icns</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/PythonCompiled.icns</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/PythonSource.icns</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; /Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/idlemain.py</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;"><br></div><div style="margin: 0px;"><font face="Helvetica Neue">Ahah. &nbsp;Let’s try showing the contents and clicking on the IDLE&nbsp;terminal command there. &nbsp;That yields the following.</font></div><div style="margin: 0px;"><div style="font-family: Menlo; font-size: 11px; margin: 0px;">/Applications/MacPorts/Python\ 2.7/IDLE.app/Contents/MacOS/IDLE ; exit;</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">Traceback (most recent call last):</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; File "/Applications/MacPorts/Python 2.7/IDLE.app/Contents/Resources/idlemain.py", line 71, in &lt;module&gt;</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; &nbsp; from idlelib import macosxSupport</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/macosxSupport.py", line 6, in &lt;module&gt;</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; &nbsp; import Tkinter</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in &lt;module&gt;</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">&nbsp; &nbsp; import _tkinter # If this fails your Python may not be configured for Tk</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">ImportError: No module named _tkinter</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">logout</div><div style="font-family: Menlo; font-size: 11px; margin: 0px; min-height: 13px;"><br></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">[Process completed]</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;"><br></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">I just did port upgrade last night and this is still happening. &nbsp;I’m not sure why the console error seems to point to someplace other than the macports files. &nbsp;But the macports command also has errors if I run it directly from the command line. &nbsp;</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;"><br></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;">I found this which may be relevant.</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;"><a href="http://stackoverflow.com/questions/5459444/tkinter-python-may-not-be-configured-for-tk">http://stackoverflow.com/questions/5459444/tkinter-python-may-not-be-configured-for-tk</a></div><div style="margin: 0px;"><font face="Menlo"><span style="font-size: 11px;">"</span></font><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; background-color: rgb(238, 238, 238);">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&nbsp;</span><strong style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: rgb(238, 238, 238); line-height: 18px;">not</strong><span style="font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; font-size: 14px; line-height: 18px; background-color: rgb(238, 238, 238);">&nbsp;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.</span><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size: 14px; line-height: 18px;">”</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">This doesn’t really make sense to me though because I thought Macports itself used Tcl so wouldn’t Tcl/Tk be&nbsp;installed already?</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;"><br></span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;"><br></span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">10.9.1</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">Macports 2.2.1</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">MacBook Air (core2 duo chip)</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;"><br></span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">Thanks,</span></font></div><div style="margin: 0px;"><font face="Helvetica Neue"><span style="line-height: 18px;">Lenore</span></font></div></div></div></div></body></html>