PyGTK - 1.5.2 not 2.1x
ignacio at openservices.net
Mon Aug 27 04:09:32 CEST 2001
On Mon, 27 Aug 2001, Adam 'Vonlia' Seyfarth wrote:
> OK, it works now (I know I did it before, but I'll try to forget that
> :)...almost. I can do "from gtk import *", but here is a Python session
> that is strange:
> Python 2.1.1 (#1, Jul 22 2001, 14:53:37)
> [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-81)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import gtk
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "gtk.py", line 21, in ?
> import _gtk
> ImportError: No module named _gtk
> >>> from gtk import *
> has this happened to anyone else?
It looks like it can't find _gtkmodule.so. If you copied it over, try copying
that file too. If you recompiled, try to import it directly.
Also, I've helped you as much as I can. For further help, it might be better
if you look at the PyGTK mailing list/archives at
http://www.daa.com.au/mailman/listinfo/pygtk. They'll probably be able to help
you where I can't.
Ignacio Vazquez-Abrams <ignacio at openservices.net>
More information about the Python-list