Re: python27 IDLE doesn't run

2014-01-19 Thread Lenore Horner

On Jan 18, 2014, at 11:32, Jeremy Lavergne jer...@lavergne.gotdns.org wrote:

 I vaguely remember the py-tkinter port being split off from python (log says 
 3 years ago), perhaps it wasn’t a 100% clean split? 
 http://trac.macports.org/ticket/27768
 
 On Jan 18, 2014, at 11:16, Lenore Horner lenorehor...@sbcglobal.net wrote:
 
 Since py27-tkinter depends on python27, doesn’t IDLE have to be a separate 
 port from python27?  
 
 

Interesting that this hasn’t come up in 3 years.  Has something else changed?  
Anyway, I’ve filed a ticket #42191.
Lenore

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: python27 IDLE doesn't run

2014-01-19 Thread Lawrence Velázquez
On Jan 19, 2014, at 9:55 AM, Lenore Horner lenorehor...@sbcglobal.net wrote:

 Interesting that this hasn’t come up in 3 years.  Has something else changed?

It's come up a few times, but no one's tried to address the issue because it 
doesn't seem particularly widespread. I guess people who install Python through 
MacPorts tend not to be IDLE users.

vq

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


python27 IDLE doesn't run

2014-01-18 Thread Lenore Horner
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___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: python27 IDLE doesn't run

2014-01-18 Thread Kevin Walzer

On 1/18/14, 9:21 AM, Lenore Horner wrote:

This doesn’t really make sense to me though because I thought Macports
itself used Tcl so wouldn’t Tcl/Tk be installed already?


Python in MacPorts would not link against the system Tcl/Tk. Try 
installing the Tcl/Tk +quartz variant and then installing Tkinter (or 
re-installing, if necessary, not sure which package that is).


--Kevin


--
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: python27 IDLE doesn't run

2014-01-18 Thread Brandon Allbery
On Sat, Jan 18, 2014 at 9:34 AM, Kevin Walzer k...@codebykevin.com wrote:

 On 1/18/14, 9:21 AM, Lenore Horner wrote:

 This doesn’t really make sense to me though because I thought Macports
 itself used Tcl so wouldn’t Tcl/Tk be installed already?


 Python in MacPorts would not link against the system Tcl/Tk. Try
 installing the Tcl/Tk +quartz variant and then installing Tkinter (or
 re-installing, if necessary, not sure which package that is).


py??-tkinter for the appropriate Python version (so, in this case,
py27-tkinter). But this leads directly to the question: if it requires
py-tkinter, why isn't it installed with that port, or maybe a separate port
that depends on py-tkinter?

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: python27 IDLE doesn't run

2014-01-18 Thread Lenore Horner

On Jan 18, 2014, at 9:43, Brandon Allbery allber...@gmail.com wrote:

 On Sat, Jan 18, 2014 at 9:34 AM, Kevin Walzer k...@codebykevin.com wrote:
 On 1/18/14, 9:21 AM, Lenore Horner wrote:
 This doesn’t really make sense to me though because I thought Macports
 itself used Tcl so wouldn’t Tcl/Tk be installed already?
 
 Python in MacPorts would not link against the system Tcl/Tk. Try installing 
 the Tcl/Tk +quartz variant and then installing Tkinter (or re-installing, if 
 necessary, not sure which package that is).
 
 py??-tkinter for the appropriate Python version (so, in this case, 
 py27-tkinter). But this leads directly to the question: if it requires 
 py-tkinter, why isn't it installed with that port, or maybe a separate port 
 that depends on py-tkinter?

Since py27-tkinter depends on python27, doesn’t IDLE have to be a separate port 
from python27?  

Lenore Horner


___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: python27 IDLE doesn't run

2014-01-18 Thread Jeremy Lavergne
I vaguely remember the py-tkinter port being split off from python (log says 3 
years ago), perhaps it wasn’t a 100% clean split? 
http://trac.macports.org/ticket/27768

On Jan 18, 2014, at 11:16, Lenore Horner lenorehor...@sbcglobal.net wrote:

 Since py27-tkinter depends on python27, doesn’t IDLE have to be a separate 
 port from python27?  
 

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users