Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306171 - from gtk import _gtk ImportError: dynamic module does not define init function (init_gtk)
Summary: from gtk import _gtk ImportError: dynamic module does not define init functio...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High critical
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-21 11:56 UTC by Stefan Tolic
Modified: 2010-03-01 14:30 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 Stefan Tolic 2010-02-21 11:56:58 UTC
Hi.
I did a rather big update and now I'm having a problem with any pygtk apps.
I always get the following error when python tries to import gtk

from gtk import _gtk
ImportError: dynamic module does not define init function (init_gtk)

I googled around and found a suggestion to remove _gtk.so from the python path if it is somewhere. 

The only one I can find is /usr/lib64/python2.6/site-packages/gtk-2.0/gtk/_gtk.so and if I remove it, I naturally get 
ImportError: cannot import name _gtk 


Reproducible: Always

Steps to Reproduce:
adm64, python2.6, pygtk 2.14.1-r1 and 2.16.0-r1.

running python -c "import gtk"

Actual Results:  
raceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 40, in <module>
    from gtk import _gtk
ImportError: dynamic module does not define init function (init_gtk)
Comment 1 Doktor Notor 2010-02-21 19:14:26 UTC
Well, if you "did a rather big update", did you run python-updater as well?
Comment 2 Stefan Tolic 2010-02-21 19:15:39 UTC
(In reply to comment #1)
> Well, if you "did a rather big update", did you run python-updater as well?
> 

Yes
Comment 3 Rafał Mużyło 2010-02-23 01:34:45 UTC
Could you attach build log of pygtk ?