I encountered an error like this when I had tried to import gobject: File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py", line 22, in <module> from _gobject import type_from_name ImportError: No module named _gobject There is _gobject.so in gobject directory, but it should be _gobject.bundle to be able to be imported. Reproducible: Always Steps to Reproduce: % python >>> import gobject Actual Results: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py", line 30, in <module> from gobject.constants import * File "/Users/tetsushi/Gentoo/usr/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py", line 22, in <module> from _gobject import type_from_name ImportError: No module named _gobject >>> Expected Results: The module should be imported without any errors. dev-python/pygtk's bundle files as well: atk.so gtkunixprint.so pango.so pangocairo.so gtk/_gtk.so gtk/glade.so
I forgot to mention the versions: dev-python/pygobject-2.14.2 dev-python/pygtk-2.12.1-r2
true... that's exactly why portage warns about this... needs fix0rzing
I fixed pygobject-2.14.2, but it takes some time before the dependencies of pygtk+ are compiled ...
ok, fixed, thanks.
Sorry for reopen but new pygobject 2.15.4 installs a few more .so files. The patch renames each .so file to .bundle.
Created attachment 175926 [details, diff] patch for ebuild
thanks, applied.