473,779 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IDLE can't import Tkinter

Hello,

I'have just install Python 2.5.1 on Linux and the IDLE doesn't seem to
works because it didn't find Tcl/Tk

Is there someone to explain how to modify the file "setup.py"
to tell the install that Tcl/Tk are at the paht : "/usr/bin/tclsh" and
"usr/bin/wish/" ?

I have attached to log file of my terminal.

Thanks a lot in advance.

Romain

fr**@crx925.cro .st.com{Python-2.5.1}405 : ll
total 8212
drwxr-s--- 19 fr18 Dk_pcell 4096 May 3 15:14 ./
drwxr-s--- 3 fr18 Dk_pcell 4096 May 3 14:01 ../
-rw-r----- 1 fr18 Dk_pcell 77512 May 3 15:15 2007_05_03_1505 _python_install .log
drwxr-s--- 5 fr18 Dk_pcell 4096 May 3 10:12 build/
-rw-r----- 1 fr18 Dk_pcell 336280 May 3 10:09 config.log
-rwxr-x--- 1 fr18 Dk_pcell 57416 May 3 10:09 config.status*
-rwxr-x--- 1 fr18 Dk_pcell 637991 Mar 12 11:50 configure*
-rw-r----- 1 fr18 Dk_pcell 96904 Mar 12 11:50 configure.in
drwxr-s--- 22 fr18 Dk_pcell 4096 Apr 18 05:56 Demo/
drwxr-s--- 24 fr18 Dk_pcell 4096 Apr 18 06:01 Doc/
drwxr-s--- 2 fr18 Dk_pcell 4096 Apr 18 05:56 Grammar/
drwxr-s--- 2 fr18 Dk_pcell 8192 Apr 18 05:55 Include/
-rwxr-x--- 1 fr18 Dk_pcell 7122 Jun 14 2003 install-sh*
drwxr-s--- 42 fr18 Dk_pcell 20480 May 3 15:14 Lib/
-rw-r----- 1 fr18 Dk_pcell 3949072 May 3 15:14 libpython2.5.a
-rw-r----- 1 fr18 Dk_pcell 13615 Apr 5 06:52 LICENSE
drwxr-s--- 11 fr18 Dk_pcell 4096 Apr 18 05:57 Mac/
-rw-r----- 1 fr18 Dk_pcell 38219 May 3 10:09 Makefile
-rw-r----- 1 fr18 Dk_pcell 35107 May 3 10:09 Makefile.pre
-rw-r----- 1 fr18 Dk_pcell 35070 Dec 8 21:46 Makefile.pre.in
drwxr-s--- 4 fr18 Dk_pcell 4096 Apr 18 05:56 Misc/
drwxr-s--- 7 fr18 Dk_pcell 12288 May 3 15:14 Modules/
drwxr-s--- 3 fr18 Dk_pcell 8192 May 3 15:14 Objects/
drwxr-s--- 2 fr18 Dk_pcell 4096 May 3 15:14 Parser/
drwxr-s--- 8 fr18 Dk_pcell 4096 Apr 18 05:58 PC/
drwxr-s--- 2 fr18 Dk_pcell 4096 Apr 18 05:55 PCbuild/
drwxr-s--- 2 fr18 Dk_pcell 4096 Apr 18 06:08 PCbuild8/
-rw-r----- 1 fr18 Dk_pcell 28357 May 3 10:09 pyconfig.h
-rw-r----- 1 fr18 Dk_pcell 27049 Oct 27 2006 pyconfig.h.in
-rwxr-x--- 1 fr18 Dk_pcell 2661658 May 3 15:14 python*
drwxr-s--- 2 fr18 Dk_pcell 8192 May 3 15:14 Python/
-rw-r----- 1 fr18 Dk_pcell 77512 May 3 14:51 python_install. log
-rw-r----- 1 fr18 Dk_pcell 55678 Apr 5 06:52 README
drwxr-s--- 5 fr18 Dk_pcell 4096 Apr 18 05:58 RISCOS/
-rw-r----- 1 fr18 Dk_pcell 67931 May 3 15:18 setup.py
drwxr-s--- 19 fr18 Dk_pcell 4096 Apr 18 05:58 Tools/

fr**@crx925.cro .st.com{Python-2.5.1}409 : build/scripts-2.5/idle
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **
fr**@crx925.cro .st.com{Python-2.5.1}410 : which wish
/usr/bin/wish
fr**@crx925.cro .st.com{Python-2.5.1}411 : wish
% fr**@crx925.cro .st.com{Python-2.5.1}412 : which tclsh
/usr/bin/tclsh
fr**@crx925.cro .st.com{Python-2.5.1}413 : tclsh
% info tcl
8.3
% exit
May 9 '07 #1
0 2199

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2044
by: Matthew Wilson | last post by:
Hi - I wrote this program: import Tkinter root = Tkinter.Tk() root.title('tkfun is tktastic!') cc = Tkinter.Canvas(root, width=400, height=400, bg="white")
6
3591
by: Batista, Facundo | last post by:
I tested the following simple code: ----------------- from Tkinter import * class App: def __init__(self, master): frame = Frame(master)
1
6731
by: dbrown2 | last post by:
I typically use IDLE for editing and debug. On Windows at least, IDLE and the standard turtle graphics module do not mix. I think both use Tkinter. For now I use IPython and Jedit when using the turtle module but it's not a great solution for me. Is there any known work-around to use turtle with IDLE? If not is there a planned fix for the problem. I find turtle is a convenient way to do simple graphics without having to install...
1
2792
by: Paul Dankoski | last post by:
Hello. I downloaded and installed Windows Python-2.3.exe. The install appears to be successful. There is a Start menu item showing "Python 2.3" --> "IDLE (Python GUI)". When I select this, nothing appears on my Windows 2000 screen. However, if I look at the task manager, I see "pythonw.exe", which I assume applies that the process is indeed running. I expect some sort of GUI to open.
4
2256
by: Sven Erik Knop | last post by:
Hi probably an old problem, but maybe you can help me: Just installed Python 2.3.4 on Windows XP SP1, and although the interpreter runs fine, IDLE will not start. Any ideas how to solve this? Cheers
4
2303
by: Dave Anderson | last post by:
I love using Idle as my IDE for python on Windows. I've briefly tried some other IDE's, but the clean and simple nature of Idle keeps me coming back to it. Recently, I tried out Idle on Fedora. The lack of font selection, the lack of anti-aliasing, and the gaudiness of the widgets were a real disappointment. I wish I could have something like a Gnome-Idle IDE, so I can have the beautiful IDE I'm enjoying in Windows over in...
1
2213
by: neutrinman | last post by:
How do I use Tkinter from IDLE? Tkinter can be used from IDLE attached to python 2.2, IDLE 0.8. But I couldn't use from IDLE attached to python 2.3, IDLE 1.0.3. When I execute the code below: from Tkinter import * root = Tk() the window appears form IDLE 0.8, but not from IDLE 1.0.3.
1
3421
by: gjohannes | last post by:
Hi. I use Idle 1.1.1 on Python 2.4.1. The "Ctrl-" key bindings for indenting do not work on non-us keyboards where brackets are accessed by the "Alt Gr" key. The Tab key seem to work for indenting a selected textblock on my swedish keyboard, but Shift-tab does not dedent as you would have expected.
2
3080
by: Satya Kiran | last post by:
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. # find / -iname idlelib /usr/local/lib/python2.4/idlelib # cd /usr/local/lib/python2.4/idlelib # python PyShell.py
0
9632
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8958
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6723
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5372
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4036
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.