idle on linux
Miki Tebeka
tebeka at cs.bgu.ac.il
Sun Mar 16 03:41:22 EST 2003
Hello Luke,
> I've tried to install idle in RedHat 8.0
> Installed python tools, tcl, tk
> But when I start idle at the prompt ('/usr/bin/idle') I get the following
> message:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.2/site-packages/idle/idle.py", line 3, in ?
> import PyShell
> File "/usr/lib/python2.2/site-packages/idle/PyShell.py", line 13, in ?
> from Tkinter import *
> ImportError: No module named Tkinter
>
> can anyone tell me what's wrong, and how to fix it.
idle uses Tkinter module (a wrapper for tcl/tk). Look like your Python
wasn't built with tkinter. If you built Python manually then edit
Modules/Setup in the source directory. Look for _tkinter.
HTH.
Miki
More information about the Python-list
mailing list