[Tutor] Upgrading from Python 2.5 to Python 2.6 - IDLE not working...
Kent Johnson
kent37 at tds.net
Sun Nov 9 02:43:36 CET 2008
On Sat, Nov 8, 2008 at 6:34 PM, Dan <hooya27 at gmail.com> wrote:
> I am interested in learning Python, and to that end, I undertook to upgrade
> my current version of Python 2.5 (available via openSUSE repositories and
> YaST) to Python 2.6. I have Python 2.6 running (compiled from source [I'm
> not a total bonehead]) but idle gives me the following when I invoke it in
> bash:
>
> dan at linux-ypm1:~> idle
> Traceback (most recent call last):
> File "/usr/local/bin/idle", line 3, in <module>
> from idlelib.PyShell import main
> File "/usr/local/lib/python2.6/idlelib/PyShell.py", line 14, in <module>
> import macosxSupport
> File "/usr/local/lib/python2.6/idlelib/macosxSupport.py", line 6, in
> <module>
> import Tkinter
> File "/usr/local/lib/python2.6/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
> dan at linux-ypm1:~>
Are you running on MacOS or Linux? I'm confused by the import
macosxSupport. There is a known problem with IDLE on MacOSX:
http://bugs.python.org/issue4017
For linux I think there is a build option to include tkinter but
someone else will have to answer that one.
Kent
More information about the Tutor
mailing list