python-gtk2-dbg was installed, but python-tk-dbg was not

i can't test tkinter right now (with running X), but i can confirm over ssh 
that it does not segfaults after import with  installed python-tk-dbg
(same is true for sqlite: python-sqlite-dbg fixed the problem)

gtk however still has the problem:

$ dpkg-query -W python-gtk2-dbg
python-gtk2-dbg 2.12.1-0ubuntu1

$ python-dbg
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:16) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py", line 48, in 
<module>
    from gtk import _gtk
ImportError: /var/lib/python-support/python2.5/gtk-2.0/gtk/_gtk_d.so: undefined 
symbol: Py_InitModule4
[23397 refs]
>>> 

i looked into the gtk,atk,pango,pangocairo modules with nm (these segfault 
after import) and compared the result to the builtin modules which work fine 
(/usr/lib/python2.5/lib-dynload/_*_d.so) and found the following:
those modules which work has the symbol
         U Py_InitModule4TraceRefs
while the gtk mudules has
         U Py_InitModule4
instead

hope this helps

-- 
import gtk:- undefined symbol: Py_InitModule4
https://bugs.launchpad.net/bugs/282320
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to pygtk in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to