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?
*** Bug 42592 has been marked as a duplicate of this bug. ***
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,
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...
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?
re-emerging blt fixed it. thanks.
thanks