Opened 16 years ago
Closed 15 years ago
#16004 closed defect (duplicate)
IDLE (installed with python25) fails to launch without py25-tkinter
Reported by: | jon.hermansen@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | jyrkiwahlstedt | |
Port: | python25 |
Description
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.)
Change History (5)
comment:1 Changed 16 years ago by jon.hermansen@…
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-tickets@… to mww@… |
Assigning to maintainer of python25.
comment:3 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Cc: | mww@… jwa@… added |
---|
Cc Me!
comment:5 Changed 15 years ago by jmroot (Joshua Root)
Cc: | mww@… removed |
---|---|
Port: | python25 added |
Resolution: | → duplicate |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Messed up the formatting a bit, this was not correct:
Running current install of python2.5 to interactively check for Tkinter