Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42590 - python 2.3 doesn't work with tk 8.4.x
Summary: python 2.3 doesn't work with tk 8.4.x
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 42592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-23 06:34 UTC by David Grant
Modified: 2004-02-24 00:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Grant 2004-02-23 06:34:56 UTC
Python 2.3 doesn't seem to want to play with tk 8.4.  I need tk 8.4 because it's open file dialog supports opening multiple files, but tk 8.3 doesn't.

According to python's website, python 2.3 is supposed to support or come with tk 8.4.

Upgrading to tk 8.4 gives some errors, so I re-emerged python-2.3.  It fixed those errors, but now I get the error, "cannot load _tkinter module".  Looking in /usr/lib/pyton2.3/lib-dynload, I see _tkinter_failed.so.  python2.2 and python2.1 have the proper _tkinter.so module there.

I tried tk 8.4.3 and 8.4.5, but don't work with python 2.3.

Can someone first tell me, is this a bug?  Or did I do something wrong?
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-02-23 08:49:27 UTC
*** Bug 42592 has been marked as a duplicate of this bug. ***
Comment 2 David Grant 2004-02-23 08:50:05 UTC
Here's the output during python emerge

building '_tkinter' extension

gcc -pthread -DNDEBUG -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -fPIC \
-fno-strict-aliasing -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11R6/include -I. -I/\
var/tmp/portage/python-2.3.3/work/Python-2.3.3/./Include -I/var/tmp/portage/pyt\
hon-2.3.3/work/Python-2.3.3/Include -I/var/tmp/portage/python-2.3.3/work/Python\
-2.3.3 -c /var/tmp/portage/python-2.3.3/work/Python-2.3.3/Modules/_tkinter.c -o\
 build/temp.linux-i686-2.3/_tkinter.o

gcc -pthread -DNDEBUG -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -fPIC \
-fno-strict-aliasing -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11R6/include -I. -I/\
var/tmp/portage/python-2.3.3/work/Python-2.3.3/./Include -I/var/tmp/portage/pyt\
hon-2.3.3/work/Python-2.3.3/Include -I/var/tmp/portage/python-2.3.3/work/Python\
-2.3.3 -c /var/tmp/portage/python-2.3.3/work/Python-2.3.3/Modules/tkappinit.c -\
o build/temp.linux-i686-2.3/tkappinit.o

gcc -pthread -shared build/temp.linux-i686-2.3/_tkinter.o build/temp.linux-i686\
-2.3/tkappinit.o -L/usr/X11R6/lib -L/usr/local/lib -lBLT -ltk8.4 -ltcl8.4 -lX11\
 -o build/lib.linux-i686-2.3/_tkinter.so

*** WARNING: renaming "_tkinter" since importing it failed: build/lib.linux-i686-2.3/_tkinter.so: undefined symbol: TkSetClassProcs

Looks like it is including the tk8.3 libraries properly, 
Comment 3 David Grant 2004-02-23 08:57:23 UTC
I may have found the answer to the problem:

http://mail.python.org/pipermail/python-list/2003-April/160335.html

I'll try this in a bit.

BTW, shouldn't revdep-rebuild have caught this?  Another interesting thing is that when I upgraded to tk-8.4, and then ran revdep-rebuild, it didn't catch python as needed a rebuild either...
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2004-02-23 14:28:51 UTC
revdep-rebuild doesn't look at python modules, afaik.

anyway, it is working for me, so maybe it is a local problem:

mcvaio /usr/lib/python2.3/lib-dynload % ldd _tkinter.so
        linux-gate.so.1 =>  (0xffffd000)
        libtk8.4.so => /usr/lib/libtk8.4.so (0x40027000)
        libtcl8.4.so => /usr/lib/libtcl8.4.so (0x400ff000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x401aa000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40287000)
        libc.so.6 => /lib/libc.so.6 (0x40298000)
        libdl.so.2 => /lib/libdl.so.2 (0x403c8000)
        libm.so.6 => /lib/libm.so.6 (0x403cb000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

this is with tk-8.4.5, but it has been working since 8.4.3, as far as i can remember.

do you have any other information you can provide? emerge info? full log of dev-lang/tk merge and python merge?
Comment 5 David Grant 2004-02-23 17:50:59 UTC
re-emerging blt fixed it.  thanks.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2004-02-24 00:40:58 UTC
thanks