473,382 Members | 1,258 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,382 software developers and data experts.

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 2180

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

Similar topics

1
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
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
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...
1
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,...
4
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...
4
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....
1
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...
1
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...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...

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.