Idle (Python) on OS X Mavericks

Ned Deily nad at acm.org
Tue May 27 23:40:19 PDT 2014


In article <53854428.7000705 at macports.org>,
 Joshua Root <jmr at macports.org> wrote:

> > Ok, I’ve got python2.7 and 3.4 from Macports installed. I’m trying to use 
> > idle but the error printed is:
> > 
> > ** IDLE can’t import Tkinter. Your Python may not be configured for tk **
> > 
> > I also installed the py34-tkinter port as I believe this port contains the 
> > required libraries for Idle. The same error is printed. 
> > 
> > Could it be a $PATH issue or missing libraries issue or both?
> > 
> > PATH is currently set to: 
> > 
> > /Users/jamie/bin:/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/Users/jamie
> > /bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bi
> > n:/usr/texbin
> > 
> > Some repetition of directories but that shouldn’t cause a problem (I don’t 
> > think)
> > 
> > Would anyone be able to offer some advice/info?
> 
> How are you starting IDLE? I just installed python34 and py34-tkinter
> and double-clicking on /Applications/MacPorts/Python 3.4/IDLE.app works
> fine. (If you want to run /Applications/MacPorts/Python 2.7/IDLE.app
> then of course you would need py27-tkinter.)

Also what port variant of tk are you using?  The quartz variant has open 
issues for 10.9.x and Xcode 5.1:

https://trac.macports.org/ticket/42850

(ping!)

-- 
 Ned Deily,
 nad at acm.org



More information about the macports-users mailing list