Python and Tk: Error on Memory Access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Markus Franke

    Python and Tk: Error on Memory Access

    Hi,

    i have a problem using Tk with python. Here is a simple script:

    import Tkinter
    root=Tkinter.Tk ()
    button=Tkinter. Button(root,tex t="Click")
    button.pack()

    I can see a Window with a Button in it. But the problem now
    is that every time I enter the Button with the Mouse-Arrow,
    the Program stops with a "Failure on Memory Access"...
    in German "Speicherzugrif fsverletzung".

    I have tried several versions of python, Tk and Tkinter but
    without success.

    My System:

    Red Hat 9(Severn), Kernel 2.4.21-20.1.2024.2.1.n ptl
    python 2.2.3 / I tried also version 2.3.2
    Tk-8.3.5-88
    Tkinter 2.2.3-26

    Hope anyone can help me.

    Thanx,

    Markus
  • Martin v. Loewis

    #2
    Re: Python and Tk: Error on Memory Access

    Markus Franke wrote:[color=blue]
    > I have tried several versions of python, Tk and Tkinter but
    > without success.
    >
    > My System:
    >
    > Red Hat 9(Severn)[/color]

    On Redhat 9, you should either use the packages that the
    system vendor provides, or you should compile Python yourself.
    Installing a foreignly-built Python is likely to give problems
    with Tk.

    Regards,
    Martin

    Comment

    • Markus Franke

      #3
      Re: Python and Tk: Error on Memory Access

      Hi,

      In article <bsrin7$aid$04$ 1@news.t-online.com>, Martin v. Loewis wrote:[color=blue]
      >
      > On Redhat 9, you should either use the packages that the
      > system vendor provides, or you should compile Python yourself.
      > Installing a foreignly-built Python is likely to give problems
      > with Tk.[/color]

      I have already installed the packages for Red Hat 9, but the Error
      still comes. Could this be perhaps a problem of my Developer-Kernel.

      Greets
      Markus Franke

      Comment

      Working...