2.3 Redhat 9 Tkinter IDLE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RT Lange

    2.3 Redhat 9 Tkinter IDLE

    im trying to get idle to work and its really getting frustrating
    (and from what ive read on other posts i am not alone)

    i think i have to edit the Modules/Setup file but im confused as
    to what to uncoment and what to change.

    i dont know where my Tcl/Tk libraries are
    i think my Tcl/Tk headers are in /usr/include/ (not in
    /usr/local/include)
    im not sure where my X11 headers are (they werent in /usr/x11r6/include)
    Tix/BLT - dont know what those are
    im pretty sure my tcl/tk version is 8.3(rpm -qa tcl/tk reveals 8.3.5-88)

    and so then i should rebuild and reinstall.
    and then "Make sure to enable the _tkinter module as well as the
    TKPATH variable definition."(no t sure what they mean by enable or
    what to do with TKPATH)

    2 questions:
    Why does this have to be so difficult?
    Can anyone provide step by step inststructions?

  • Martin v. Löwis

    #2
    Re: 2.3 Redhat 9 Tkinter IDLE

    "RT Lange" <whiteywidow@ya hoo.com> writes:
    [color=blue]
    > im trying to get idle to work and its really getting frustrating
    > (and from what ive read on other posts i am not alone)
    >
    > i think i have to edit the Modules/Setup file but im confused as
    > to what to uncoment and what to change.[/color]

    No, you don't have to edit Modules/Setup. _tkinter is built
    automatically if you have the header files installed.
    [color=blue]
    > Why does this have to be so difficult?[/color]

    Because you have limited disk space. As a result of that, Redhat
    decides not to install all header files by default. As a result of
    that, you have to make an explicit choise as to what header files to
    install.
    [color=blue]
    > Can anyone provide step by step inststructions?[/color]

    Sorry, I don't have Redhat 9, so I don't know what the name of the
    package is that contains the Tk header files. It probably has the
    strings "tcl" and "dev" in their name.

    I also don't know whether you installed the system from CD-ROM, DVD,
    or via the network, so I can't give precise instructions as to what
    media to insert into what slot.

    It would be better if you reported the steps you have been doing, and
    the problems you see.

    Regards,
    Martin

    Comment

    • RT Lange

      #3
      Re: 2.3 Redhat 9 Tkinter IDLE

      On Sun, 03 Aug 2003 09:50:26 +0200, Martin v. Löwis wrote:
      [color=blue]
      > No, you don't have to edit Modules/Setup. _tkinter is built
      > automatically if you have the header files installed.[/color]
      i have the header files: /usr/include/tcl.h;/usr/include/tk.h
      [color=blue]
      > Sorry, I don't have Redhat 9, so I don't know what the name of the
      > package is that contains the Tk header files. It probably has the
      > strings "tcl" and "dev" in their name.[/color]
      the package is buried under "Kernel Development"
      [color=blue]
      > It would be better if you reported the steps you have been doing, and
      > the problems you see.[/color]
      [root@/usr/lib/Python-2.3]# make
      case $MAKEFLAGS in \
      *-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall
      -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
      *) CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -O3 -Wall
      -Wstrict-prototypes' ./python -E ./setup.py build;; \
      esac
      running build
      running build_ext
      building '_tkinter' extension
      gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-strict-aliasing -DWITH_APPINIT=1
      -I/usr/X11R6/include -I. -I/usr/lib/Python-2.3/./Include -I/usr/local/include
      -I/usr/lib/Python-2.3/Include -I/usr/lib/Python-2.3 -c /usr/lib/Python-2.3/Modules/_tkinter.c
      -o build/temp.linux-i686-2.3/_tkinter.o
      /usr/lib/Python-2.3/Modules/_tkinter.c:96:2 : #error "unsupporte d Tcl configuration"
      /usr/lib/Python-2.3/Modules/_tkinter.c: In function `AsObj':
      /usr/lib/Python-2.3/Modules/_tkinter.c:947: warning: passing arg 1 of `Tcl_NewUnicode Obj' from
      incompatible pointer type
      /usr/lib/Python-2.3/Modules/_tkinter.c: In function `FromObj':
      /usr/lib/Python-2.3/Modules/_tkinter.c:1073 : warning: passing arg 1 of `PyUnicodeUCS2_ FromUnicode'
      from incompatible pointer type
      running build_scripts


      Comment

      • Martin v. Löwis

        #4
        Re: 2.3 Redhat 9 Tkinter IDLE

        "RT Lange" <whiteywidow@ya hoo.com> writes:
        [color=blue]
        > /usr/lib/Python-2.3/Modules/_tkinter.c:96:2 : #error "unsupporte d Tcl configuration"[/color]

        That is the problem. Quoting from README:

        Red Hat Linux: Red Hat 9 built Python2.2 in UCS-4 mode and hacked
        Tcl to support it. To compile Python2.3 with Tkinter, you will
        need to pass --enable-unicode=ucs4 flag to ./configure.

        In this case "it is so difficult" because Redhat chose to hack Tcl.

        HTH,
        Martin

        Comment

        Working...