From: guylinton <guy...@gm...> - 2009-06-19 17:37:25
|
In the the Macports patch-configure, one of the two changes to configure you need to make is: @@ -6546,8 +6546,8 @@ try: # Do not import gtk.glade, this can raise a RuntimeError if the # display cannot be opened. Just search it. - import imp - imp.find_module('gtk/glade') + import imp + imp.find_module('glade', [imp.find_module('gtk')[1]]) out("gtk.glade") except ImportError: out("NO") Don't know why, but presumably some parts of the system are installed somewhere different on Mac. BTW, the other change is: @@ -6519,8 +6519,8 @@ import gnome # Do not import gnome.ui, this can kill python if the # display cannot be opened. Just search it. - import imp - imp.find_module('gnome/ui') + import imp + imp.find_module('ui', gnome.__path__) out("gnome.ui") except ImportError: out("NO") Regards, Tim. Emrys Williams wrote: > > I download the 3.1.2 source tarball and try ./configure and get stuck on > > checking Python bindings for glade... configure: error: > **** The python bindings for glade (pygtk2-libglade) could not be found. > > which is tedious. The script in configure says > import imp > imp.find_module('gtk/glade') > and this indeed does produce an error. Indeed, it also produces an > error when I execute it in IDLE, using the python 2.5.4 environment > which I installed with macports which... does run gramps. > > I must be doing something really silly here. Where does > pygtk2-libglade come from? I have lots of gtk and libglade source > installed, have I missed this somehow? I googled for help but > foundered in confusion :-( > > Thanks > Emrys > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > -- View this message in context: http://www.nabble.com/first-steps-at-building-gramps-from-source-tp24112468p24115917.html Sent from the GRAMPS - Dev mailing list archive at Nabble.com. |