<font color='black' size='2' face='arial'><font color="black" face="arial" size="2">

<div> <br>

</div>



<div> Ooops, I think should have included this here!<br>
<br>
<br>

</div>



<div> <br>

</div>



<div style="font-family:helvetica,arial;font-size:10pt;color:black">-----Original Message-----<br>

From: ugajin@talktalk.net<br>

To: ryandesign@macports.org<br>

Sent: Wed, 2 Apr 2014 10:55<br>

Subject: Re: Python and Tkinter<br>

<br>









<div id="AOLMsgPart_2_c8a85075-71ec-41c9-a655-ea7a2c292ba1">

<font color="black" face="arial" size="2"><font color="black" face="arial" size="2">



<div> Thanks for the reply. I would like to stay with Macports but, Tkinter does not run, this is the traceback:<br>


<br>


&gt;&gt;&gt; import Tkinter<br>


Traceback (most recent call last):<br>


&nbsp; File "&lt;stdin&gt;", line 1, in &lt;module&gt;<br>


&nbsp; File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 39, in &lt;module&gt;<br>


&nbsp;&nbsp;&nbsp; import _tkinter # If this fails your Python may not be configured for Tk<br>


ImportError: No module named _tkinter<br>


&gt;&gt;&gt; <br>


<br>


It is unclear what steps need to be taken by me, to configure Python, but as you say it is included. I found it here in fact: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk<br>


<br>


IDLE.app also fails to run.<br>


<br>


Yes, I believe I was invited to run python 2.7 as default. I am unable to report this as a bug as I do not know my login password. However, I hope this will be sufficient. <br>


<br>


In the meantime; what to do?<br>



</div>







<div> <br>



</div>







<div> Thanks<br>


<br>


-A<br>


<br>



</div>







<div style="font-family:helvetica,arial;font-size:10pt;color:black">-----Original Message-----<br>



From: Ryan Schmidt &lt;<a href="mailto:ryandesign@macports.org">ryandesign@macports.org</a>&gt;<br>



To: <a href="mailto:ugajin@talktalk.net">ugajin@talktalk.net</a><br>



CC: MacPorts Users &lt;<a href="mailto:macports-users@lists.macosforge.org">macports-users@lists.macosforge.org</a>&gt;<br>



Sent: Wed, 2 Apr 2014 3:40<br>



Subject: Re: Python and Tkinter<br>



<br>













<div id="AOLMsgPart_0_1ceff9be-535e-4c26-851d-40c4400a92d0" style="margin: 0px;font-family: Tahoma, Verdana, Arial, Sans-Serif;font-size: 12px;color: #000;background-color: #fff;">

<pre style="font-size: 9pt;"><tt>
On Apr 1, 2014, at 19:15, <a>ugajin@talktalk.net</a> wrote:

&gt; I run OSX v10.6.8 (Snow Leopard) and I have a few versions of Python 
installed. The latest version is 2.7.6 installed itself along with (I beleive) a 
Macport installation of Fontforge. Being a Macport installation it is not 
located in the usual System &gt; Library &gt; . . . location. Nonetheless, if I run 
Terminal in interactive Python mode, this is the (default) version launched.

Presumably because at some time you requested for that to happen, by running:

sudo port select python python27

If you want to return to the OS X version of python being default, you would 
run:

sudo port select python none


&gt; I do not seem to be able to launch IDLE, but more importantly to me, is that I 
wish to install TKinter. I have downloaded the installer from ActiveState but I 
have not run it (at the time of writing). This is what the Read Me file states:
&gt;         • ActiveTcl 8.5.15.1.297588 installs
&gt;                 • Tcl as a framework in "/Library/Frameworks/Tcl.framework/Versions/8.5".
&gt;                 • Tk as a framework in "/Library/Frameworks/Tk.framework/Versions/8.5".
&gt;                 • the packages in "/Library/Tcl/".
&gt;         • Symbolic links and stubs are created in "/usr/local/bin" for launching 
tclsh, and wish from the command line.
&gt;         • Symbolic links are created in "/Applications/Utilities" for launching wish 
from the Finder, Panel, etc.
&gt;         • The ActiveTcl documentation is installed in the Tcl framework, but a 
symbolic link is created in "/Library/Documentation/Help/ActiveTcl-8.5" to them.
&gt; The question is; should I proceed with the ActiveState installation, or is 
their a better alternative Port option? 
&gt; 
&gt; I am concerned that the location of Python v2.7.6 which is located in 
/opt/local/Library/Frameworks/Python.framework/Versions/2.7 may be on issue.

Software installed in /usr/local or /Library/Frameworks often causes problems 
for MacPorts-installed software. You should use MacPorts, or manually-installed 
software in those locations, not both together; to avoid problems, please 
uninstall the one you don’t want to use.

If you want to stick with MacPorts, then IDLE is already included with the 
python27 port, and tkinter is in the py27-tkinter port. If they don’t work, 
please report the bugs to us.

</tt></pre>
</div>



 



</div>



</font></font>
</div>

 <!-- end of AOLMsgPart_2_c8a85075-71ec-41c9-a655-ea7a2c292ba1 -->



</div>

</font></font>