Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Newbie Prob : IDLE can't import Tkinter

Reply
Thread Tools

Newbie Prob : IDLE can't import Tkinter

 
 
Romain FEUILLETTE
Guest
Posts: n/a
 
      05-10-2007
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




http://www.velocityreviews.com/forums/(E-Mail 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 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 Removed){Python-2.5.1}410 : which wish
/usr/bin/wish
(E-Mail Removed){Python-2.5.1}411 : wish
% (E-Mail Removed){Python-2.5.1}412 : which tclsh
/usr/bin/tclsh
(E-Mail Removed){Python-2.5.1}413 : tclsh
% info tcl
8.3
% exit



 
Reply With Quote
 
 
 
 
Asun Friere
Guest
Posts: n/a
 
      05-10-2007
On May 10, 6:31 pm, Romain FEUILLETTE <(E-Mail Removed)>
wrote:
> 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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
from Tkinter import *,win = Tk() "from Tkinter import *" Pierre Dagenais Python 0 08-03-2008 10:33 PM
Audio prob that's more than a sound card prob LineOut Computer Support 2 04-19-2008 02:30 PM
IDLE can't import Tkinter Romain FEUILLETTE Python 0 05-09-2007 02:01 PM
tkinter prob JyotiC Python 6 08-21-2006 08:32 AM
Printer prob and also networking prob Gareth not NLL or anybody else. Computer Support 2 01-02-2004 07:48 PM



Advertisments