Newbie Prob : IDLE can't import Tkinter

R

Romain FEUILLETTE

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




(e-mail address removed){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/

(e-mail address removed){Python-2.5.1}409 : build/scripts-2.5/idle
** IDLE can't import Tkinter. Your Python may not be configured for Tk. **


(e-mail address removed){Python-2.5.1}410 : which wish
/usr/bin/wish
(e-mail address removed){Python-2.5.1}411 : wish
% (e-mail address removed){Python-2.5.1}412 : which tclsh
/usr/bin/tclsh
(e-mail address removed){Python-2.5.1}413 : tclsh
% info tcl
8.3
% exit
 
A

Asun Friere

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

Perhaps you haven't installed Tkinter?

I'm not sure which distribution you are using, but on my box (with
Python2.4 installed) the relevant package is tkinter-2.4.4-1.fc6.rpm.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top