Bug#489955: ImportError: dynamic module does not define init function (initgtk)

Manuel Metz mmetz at astro.uni-bonn.de
Thu Jul 17 11:54:50 UTC 2008


I just stumbled over this bug report...

   What this error message is telling you, is that python tries to 
import a module called "gtk", but can not find it's init method 
(something like the main function of a C program), which is called 
"initgtk". This can happen, if there is somewhere a library called 
"gtk.so" in the python path (even in your private python path), which is 
not a python module, or if there is somewhere a copy of _gtk.so, but it 
has been renamed to gtk.so.

   So, you might want to check that there is no file called "gtk.so" 
anywhere in your python path that erroneously gets imported.







More information about the pkg-gnome-maintainers mailing list