[MacPorts] #16004: IDLE (installed with python25) fails to launch without py25-tkinter
MacPorts
noreply at macports.org
Tue Jul 15 17:14:58 PDT 2008
#16004: IDLE (installed with python25) fails to launch without py25-tkinter
-------------------------------------+--------------------------------------
Reporter: jon.hermansen at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.0
Keywords: |
-------------------------------------+--------------------------------------
= Python 2.5 is installed, and some other stuff =
{{{
Emmett:~ Amy$ port installed | egrep -i "py[thon]*25"
py25-mutagen @1.13_0 (active)
py25-pyqt4 @4.4.2_0 (active)
py25-sip @4.7.6_0 (active)
py25-zlib @2.5.2_0 (active)
python25 @2.5.2_4+darwin_9 (active)
Emmett:~ Amy$ /opt/local/bin/python2.5 -V
Python 2.5.2
Emmett:~ Amy$ file /Applications/MacPorts/MacPython\
2.5/IDLE.app/Contents/MacOS/IDLE
/Applications/MacPorts/MacPython 2.5/IDLE.app/Contents/MacOS/IDLE: a
/opt/local/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
script text executable
}}}
= IDLE.app (comes with MacPorts package 'python25') does not run at all
without 'py25-tkinter' being installed (see below). =
{{{
Emmett:~ Amy$ /Applications/MacPorts/MacPython\
2.5/IDLE.app/Contents/MacOS/IDLE
Traceback (most recent call last):
File "/Applications/MacPorts/MacPython
2.5/IDLE.app/Contents/Resources/idlemain.py", line 6, in <module>
from idlelib.PyShell import main
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/PyShell.py",
line 14, in <module>
import macosxSupport
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/macosxSupport.py",
line 6, in <module>
import Tkinter
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for
Tk
ImportError: No module named _tkinter
= Running current install of python2.5 to interactively check for Tkinter
=
Emmett:~ Amy$ /opt/local/bin/python2.5 -i
Python 2.5.2 (r252:60911, Jul 10 2008, 10:49:04)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import _tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named _tkinter
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/lib-tk/Tkinter.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for
Tk
ImportError: No module named _tkinter
>>> quit()
}}}
= So, I install the package... =
{{{
Emmett:~ Amy$ sudo port install py25-tkinter
---> Unpacking tgz archive for py25-tkinter 2.5.2_0
---> Installing py25-tkinter @2.5.2_0
---> Activating py25-tkinter @2.5.2_0
---> Cleaning py25-tkinter
}}}
= I see that it is installed... =
{{{
Emmett:~ Amy$ port installed | egrep -i "py[thon]*25"
py25-mutagen @1.13_0 (active)
py25-pyqt4 @4.4.2_0 (active)
py25-sip @4.7.6_0 (active)
py25-tkinter @2.5.2_0 (active)
py25-zlib @2.5.2_0 (active)
python25 @2.5.2_4+darwin_9 (active)
}}}
= And the application works now, automatically launching X11.app as well =
{{{
Emmett:~ Amy$ /Applications/MacPorts/MacPython\
2.5/IDLE.app/Contents/MacOS/IDLE
}}}
= It works! =
I was able to reproduce this bug by uninstalling the py25-tkinter package
(after I'd noticed the bug.)
--
Ticket URL: <http://trac.macports.org/ticket/16004>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list