On Wed, Sep 14, 2005 at 02:25:08PM +0200, Sebastien Bacher wrote: > Does a "import gtk._gtk" work? If not what does it say?
Bingo. That module import fails when DISPLAY is not set or invalid, which means the configure test for gnome.canvas in gcompris will fail on buildd's. Now is there another way than "import" to check that gnome.canvas is available and works to some extent, or is it really a bug in gtk._gtk ? $ python Python 2.3.5 (#2, Aug 30 2005, 14:49:31) [GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk._gtk Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import * RuntimeError: could not open display >>> Best regards, -- Yann Dirson <[EMAIL PROTECTED]> | Debian-related: <[EMAIL PROTECTED]> | Support Debian GNU/Linux: | Freedom, Power, Stability, Gratis http://ydirson.free.fr/ | Check <http://www.debian.org/> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]