hmm. so I created a little script to test out glade importing. I know
that glade is installed on my system. but for some reason find_module
doesn't work but import does? this has to be something small but I'm
not certain what. ideas?
Dir listing showing glade.
***************************************
Directory of C:\Python26\Lib\site-packages\gtk-2.0\gtk
04/20/2009 01:15 PM <DIR> .
04/20/2009 01:15 PM <DIR> ..
11/01/2007 10:20 AM 2,449 compat.py
04/08/2009 03:07 PM 2,332 compat.pyc
04/08/2009 03:07 PM 2,332 compat.pyo
11/01/2007 10:20 AM 3,027 deprecation.py
04/08/2009 03:07 PM 3,631 deprecation.pyc
04/08/2009 03:07 PM 3,631 deprecation.pyo
01/12/2009 09:57 AM 15,360 glade.pyd ******** Here it is!!
11/01/2007 10:20 AM 29,921 keysyms.py
04/08/2009 03:07 PM 41,534 keysyms.pyc
04/08/2009 03:07 PM 41,534 keysyms.pyo
01/12/2009 09:57 AM 1,794,560 _gtk.pyd
11/01/2007 10:20 AM 2,759 _lazyutils.py
04/08/2009 03:07 PM 3,226 _lazyutils.pyc
04/08/2009 03:07 PM 3,226 _lazyutils.pyo
04/20/2009 01:08 PM 5,012 __init__.py
04/20/2009 01:15 PM 2,847 __init__.pyc
04/08/2009 03:07 PM 2,847 __init__.pyo
gladetest.py
****************************
import imp
try:
# WINDOWS can't get glade to work from cygwin or local.
#imp.find_module('gtk/glade') not found
#imp.find_module('gtk') #found
#imp.find_module('gtk.glade') #not found
#gtk = imp.find_module('gtk')
#imp.find_module('glade', gtk[1]) #not found
#gtk = imp.find_module('gtk')
#print gtk[1] works
#imp.find_module('gtk/compat') not found
#imp.find_module('gobject') found
#imp.find_module('glade') not found
import gtk.glade #found?? how come find_module doesn't work? package?
#import gtk.gladessd #not found so import on not exist will bark.
#imp.find_module('gtk\glade') #not found
#print imp
print "found"
except ImportError:
print "NO"
________________________________
From: Jérôme <romjerome@...>
To: Aaron R. Short <fuzzyfonzy@...>
Cc: gramps devel <gramps-devel@...>
Sent: Thursday, April 9, 2009 10:29:07 PM
Subject: Re: [Gramps-devel] last nagging issues for autogen on windows
Aaron,
> I never did find any .h extensions in any /glade directories but they aren't there in the current windows installer so I'm not worried about them (yet).
Seems not during 'make install', just during 'make gramps.pot' into /po directory for generating a new template.
True, don't be worried about them ! But if they exist or if you get glade.h references on new generated gramps.pot, them maybe your config knows that glade files are present and should be used.
Jérôme
Aaron R. Short a écrit :
>
> Concerning glade, and pygtk
> Jérôme,
> thanks for your help. I've tried to use it but after a few hours of testing different paths and installs I think I'm going to move on and keep working. So far it seems to work OK with just commenting out the check. I know that glade and pygtk and all other installs for running gramps outside of cygwin as directed in http://www.gramps-project.org/wiki/index.php?title=Windows_installer are installed and working OK. I also tried installing gtk after and before cygwin to see if any difference would happen. The GTK install does have an option for seting up for cygwin if it's installed first but it didn't seem to help me.
>
> I never did find any .h extensions in any /glade directories but they aren't there in the current windows installer so I'm not worried about them (yet).
>
> I guess if this bites me in the but later I could try building the pygtk source in cygwin.
> -- AaronS
>
>
|