Re: [Grecipe-manager-devel] Gourmet 0.8.0 out for testing
GNOME Recipe Manager w/ nutrition information and other useful plugins
Status: Beta
Brought to you by:
thomas_hinkle
From: Thomas M. H. <tmh...@gm...> - 2005-02-26 16:57:07
|
On Sat, 26 Feb 2005 08:32:26 -0500, Roland Duhaime <rol...@gm...> wrote: > Fellow Developers, > > For the past couple days I have been working on a windows build. We > are getting an error that is preventing us from proceeding. I made a > proposed change from Tom, however, the problem still exists. If > anyone has any insight as to why this is not freezing, please let us > know: > > C:\home\python\cx_freeze-3.0.1\cx_Freeze-3.0.1>C:\home\python\cx_fre > eze-3.0.1\cx_Freeze-3.0.1\FreezePython.exe --target-dir=C:\Python23\dist --base- > binary=Win32GUI --include-modules=gourmet.defaults_en,gourmet.defaults_en_GB,gou > rmet.defaults_es,atk,tcl84,tk84,gtk,pango,gtk.glade,encodings,codecs,encodings.u > tf_8,encodings.string_escape C:\Python23\Lib\site-packages\gourmet\GourmetRecipe > Manager.pyw > Traceback (most recent call last): > File "Build\Server\Source\cx_Freeze\3.0.1\initscripts\consolekeeppath.py", lin > e 15, in ? > File "Build\Server\Source\cx_Freeze\3.0.1\FreezePython.py", line 187, in ? > File "C:\Python23\Lib\modulefinder.py", line 112, in run_script > self.load_module('__main__', fp, pathname, stuff) > File "C:\Python23\Lib\ModuleFinder.py", line 58, in load_module > # Python modules. > File "C:\Python23\Lib\modulefinder.py", line 270, in load_module > self.msgout(2, "load_module ->", m) > TypeError: compile() expected string without null bytes > > Thanks, > Roland Ok, so it has nothing to do with pango.parse_markup(markup_string, u'x\00') then :) It's a bit maddening that freeze doesn't give more error output. I'd like, for example, to know *which* module it is trying to load when it fails. One other "new" module I've included is the python debugger -- for my own testing convenience, Gourmet defaults to run the python profiler with performance printouts if you run it straight from src/lib/GourmetRecipeManager.py (this is a great help when I'm tracking down performance issues e.g. with mealmaster import). Anyway, perhaps this stuff is part of the problem (shot in the dark, but it's one of the only "new" things module-wise). If you go down to the bottom of the GRM.py file, you'll find the if __name__ == '__main__': block of code that includes the new import statements. Comment out everything in that "if" block and replace it with: if __name__ == '__main__: startGUI() As I said, it's a shot in the dark, but worth a try :) Tom |