By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,486 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Configuring IDLE on Linux

P: n/a
Hello,
I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
I want to work with IDLE and ran a search to check it's presence.
Here is what I get.

[root@localhost bin]# find / -iname idlelib
/usr/local/lib/python2.4/idlelib

[root@localhost bin]# cd /usr/local/lib/python2.4/idlelib
[root@localhost idlelib]# python PyShell.py
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **

How do I resolve this and get IDLE working?

thanks in advance,
Kiran Satya
Jul 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Satya Kiran wrote:
Hello,
I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
I want to work with IDLE and ran a search to check it's presence.
Here is what I get.

[root@localhost bin]# find / -iname idlelib
/usr/local/lib/python2.4/idlelib

[root@localhost bin]# cd /usr/local/lib/python2.4/idlelib
[root@localhost idlelib]# python PyShell.py
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **

How do I resolve this and get IDLE working?

thanks in advance,
Kiran Satya
You must have the Tk libraries present in your system for Python to
compile Tkinter. Go to your distribution's site and try to see if they
offer a TCL/TK package and install it (being that it is Redhat they most
definitely must have one). Then recompile Python.

Hope this helps.

Adonis
Jul 14 '06 #2

P: n/a
On 2006-07-14, Adonis <ad****@DELETETHISTEXTearthlink.netwrote:
Satya Kiran wrote:
>Hello,
I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
I want to work with IDLE and ran a search to check it's presence.
Here is what I get.

[root@localhost bin]# find / -iname idlelib
/usr/local/lib/python2.4/idlelib

[root@localhost bin]# cd /usr/local/lib/python2.4/idlelib
[root@localhost idlelib]# python PyShell.py
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **

How do I resolve this and get IDLE working?

thanks in advance,
Kiran Satya

You must have the Tk libraries present in your system for Python to
compile Tkinter. Go to your distribution's site and try to see if they
offer a TCL/TK package and install it (being that it is Redhat they most
definitely must have one). Then recompile Python.
This is exactly right, on a SUSE system (at least) it's the tk-devel and
tcl-devel packages you need to have installed, because you're building
Python and it needs to link against those things, not just use them. So
although tcl/tk on its own it usually installed by default, you don't
always get those -devel packages in a default setup.
Jul 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.