473,396 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Configuring IDLE on Linux

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
2 3064
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
5
by: michael | last post by:
Hi. I am reasonably experienced with Python (and love it!) on Windows. I am a programmer that toils in c++ on Win 32 mostly but just to learn more, I am playing with Suse 9. Linux. Of course...
1
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools...
1
by: Paul Rubin | last post by:
In Windows if you click the Help dropdown, IDLE launches a help window as it should. The help contents are included in the installation. In Linux, clicking Help launches a web browser, which is...
5
by: Russ P. | last post by:
I've been programming in python for a few years using XEmacs on Solaris and Linux. I've been thinking about trying IDLE for a long time, but either it wasn't available on my system or I...
11
by: MartinRinehart | last post by:
I went to Python.org, DL'd Python 2.5 source code per the usual inadequate instructions and ran the make files successfully (sort of). Python 2.5 works fine. But "from Tkinter import *" gets a...
1
by: rada.lambretha | last post by:
Configuring Linux as a Firewall * Making installation choices * Introducing iptables * Using iptables commands * Simplifying things with firewall GUIs * Adding proxy functionality As...
1
by: najmi | last post by:
hai guys..i want to setup server for network and internet..it`s ok to use suse linux enterprise server 10 and how difficult to configure it..i very new with this thing and this is my first time to...
3
by: Only-Trouble | last post by:
Hi all I am running openSUSE 10.3 I am learning python on my own, it seems like the system has already installed a python IDLE The question is how to invoke it? Thanks Only-Trouble
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.