Problem with tkinter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rolf peter

    Problem with tkinter

    Hello Friends,

    i installed the new Python 2.3 tarball but have a little (or big) problem.

    When testing turtle.py i get the following message.
    I am using Linux SUSE 8.2, Tk ist installed as version 8.4

    ../configure, make and make install work fine ....

    Python 2.3 (#2, Nov 11 2003, 17:40:46)
    [GCC 3.3 20030226 (prerelease) (SuSE Linux)] on linux2
    Type "help", "copyright" , "credits" or "license" for more information.[color=blue][color=green][color=darkred]
    >>>[/color][/color][/color]

    but:

    ropebu@z3pc47:/usr/local/lib/python2.3/lib-tk> python turtle.py
    Traceback (most recent call last):
    File "turtle.py" , line 4, in ?
    import Tkinter
    File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 38, in ?
    import _tkinter # If this fails your Python may not be configured for Tk
    ImportError: No module named _tkinter

    So the questions is: how to configure python to use Tk.

    Greeting from Karlsruhe
  • Jan S. Voges

    #2
    Re: Problem with tkinter

    Hi!

    ropebu@web.de (rolf peter) wrote:
    [color=blue]
    >So the questions is: how to configure python to use Tk.[/color]

    IIRC the package "tcl-devel" isn't installed by default, but nessesary
    before compiling python.

    hth
    Jan

    Comment

    • rolf peter

      #3
      Re: Problem with tkinter

      Thank You,

      that was it after installing the package tcl-devel it works.

      Do i have to modify the Modules/Setup - i did.

      Rolf



      Jan S. Voges <jasvo77@gmx.ne t> wrote in message news:<botd0m.2a o.1@serv435.zwo xxx.de>...[color=blue]
      > Hi!
      >
      > ropebu@web.de (rolf peter) wrote:
      >[color=green]
      > >So the questions is: how to configure python to use Tk.[/color]
      >
      > IIRC the package "tcl-devel" isn't installed by default, but nessesary
      > before compiling python.
      >
      > hth
      > Jan[/color]

      Comment

      Working...