IDLE can't import Tkinter

Discussion in 'Python' started by Romain FEUILLETTE, May 9, 2007.

  1. 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



    {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/

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


    {Python-2.5.1}410 : which wish
    /usr/bin/wish
    {Python-2.5.1}411 : wish
    % {Python-2.5.1}412 : which tclsh
    /usr/bin/tclsh
    {Python-2.5.1}413 : tclsh
    % info tcl
    8.3
    % exit
     
    Romain FEUILLETTE, May 9, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. slomo

    Can't import Tkinter module.

    slomo, Jan 9, 2006, in forum: Python
    Replies:
    1
    Views:
    433
    Martin Franklin
    Jan 10, 2006
  2. Romain FEUILLETTE

    Newbie Prob : IDLE can't import Tkinter

    Romain FEUILLETTE, May 10, 2007, in forum: Python
    Replies:
    1
    Views:
    975
    Asun Friere
    May 10, 2007
  3. Pierre Dagenais
    Replies:
    0
    Views:
    343
    Pierre Dagenais
    Aug 3, 2008
  4. Stéphane Klein
    Replies:
    0
    Views:
    297
    Stéphane Klein
    Jul 5, 2011
  5. Frederic Rentsch

    Tkinter: IDLE can't get out of mainloop

    Frederic Rentsch, Mar 31, 2012, in forum: Python
    Replies:
    0
    Views:
    304
    Frederic Rentsch
    Mar 31, 2012
Loading...

Share This Page