Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235648 - dev-python/pygobject and pygtk install bundles as .so
Summary: dev-python/pygobject and pygtk install bundles as .so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-25 04:46 UTC by MATSUI Tetsushi
Modified: 2008-12-21 09:53 UTC (History)
0 users

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


Attachments
patch for ebuild (pygobject-2.15.4-bundle.patch,584 bytes, patch)
2008-12-20 06:06 UTC, MATSUI Tetsushi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MATSUI Tetsushi 2008-08-25 04:46:39 UTC
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
Comment 1 MATSUI Tetsushi 2008-08-25 07:09:48 UTC
I forgot to mention the versions:
dev-python/pygobject-2.14.2
dev-python/pygtk-2.12.1-r2
Comment 2 Fabian Groffen gentoo-dev 2008-08-25 07:50:18 UTC
true... that's exactly why portage warns about this... needs fix0rzing
Comment 3 Fabian Groffen gentoo-dev 2008-08-25 20:09:48 UTC
I fixed pygobject-2.14.2, but it takes some time before the dependencies of pygtk+ are compiled ...
Comment 4 Fabian Groffen gentoo-dev 2008-08-25 20:54:07 UTC
ok, fixed, thanks.
Comment 5 MATSUI Tetsushi 2008-12-20 06:06:13 UTC
Sorry for reopen but new pygobject 2.15.4 installs a few more .so files.
The patch renames each .so file to .bundle.
Comment 6 MATSUI Tetsushi 2008-12-20 06:06:24 UTC
Created attachment 175926 [details, diff]
patch for ebuild
Comment 7 Fabian Groffen gentoo-dev 2008-12-21 09:53:28 UTC
thanks, applied.