Hi, It is correct that the machine I'm building on does not
> have X11 running, though it is installed. I can, however,
> enter python and import gtk without error.
> [root@...142... examples]# python Python 2.4.1 (#1, May 16
> 2005, 15:15:14) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on
> linux2 Type "help", "copyright", "credits" or "license" for
> more information.
>>>> import gtk
>>>>
> [root@...142... examples]#
Hmm... something is fish, because the error message you printed in
your first message is triggered only by an attempt to import gtk.
Look in setup.py: here is what is happening
if BUILD_GTK:
try:
import gtk
except ImportError:
print 'GTK requires pygtk'
BUILD_GTK = 0
except RuntimeError:
print 'pygtk present but import failed'
I submit that something is different in your build environment in
which you triggered the original message and the one you are testing
in now.
JDH