GNOME Bugzilla – Bug 521154
glchess requires import pygtk; pygtk.require('2.0') before import gtk.glade
Last modified: 2008-03-10 12:24:28 UTC
Traceback (most recent call last):
+ Trace 191729
start_game()
import main
import config
from defaults import *
import gtk.glade
[6968 refs]
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of 470038 ***
actually, not a duplicate pygtk and gnome-python are installed and available with the right environment variable set on some platforms, pygtk needs to be explicitly imported before any of the modules under it % python Python 2.5.2a0 (release25-maint:59940M, Jan 13 2008, 15:47:59) [GCC 3.3 20030304 (Apple Computer, Inc. build 1493)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import gtk.glade Traceback (most recent call last):
+ Trace 191779
[14035 refs] >>> import pygtk [18816 refs] >>> pygtk.require('2.0') [18817 refs] >>> import gtk.glade /opt/local/lib/python2.5/site-packages/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) [84595 refs] >>>
Created attachment 106867 [details] [review] small patch
This call used to be included, it was accidentally undone when moving (see bug 483556)
Requesting code-freeze break for this change.
We need to use the patch from bug 483556 as gtk can be imported before defaults.py has been imported.
Code freeze granted and patch committed http://svn.gnome.org/viewvc/gnome-games?view=revision&revision=7500