Re: Idle (Python) on OS X Mavericks
On 28 May 2014, at 07:40, Ned Deily n...@acm.org wrote: In article 53854428.7000...@macports.org, Joshua Root j...@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, n...@acm.org Hi sorry to have wasted your time, it was a few simple but stupid errors on my part. I needed the correct tkinter library for the python I'm using and a few environment variables. Thank you both for your help anyway. Jamie ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Idle (Python) on OS X Mavericks
Hi everyone 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/bin:/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? Many thanks. Jamie. ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Idle (Python) on OS X Mavericks
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/bin:/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.) PATH should have no effect here. PYTHONPATH could, though it would have to be set globally by launchd to affect an app launched from Finder. There are various other ways that sys.path can be modified in python, and these could certainly stop the tkinter module from being found. - Josh ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users