| Summary: | from gtk import _gtk ImportError: dynamic module does not define init function (init_gtk) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Stefan Tolic <getraktna> |
| Component: | [OLD] Development | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
| Status: | RESOLVED NEEDINFO | ||
| Severity: | critical | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Well, if you "did a rather big update", did you run python-updater as well? (In reply to comment #1) > Well, if you "did a rather big update", did you run python-updater as well? > Yes Could you attach build log of pygtk ? |
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)