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

IDLE can't import Tkinter

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.