From: Werner F. B. <wer...@fr...> - 2005-04-11 13:39:23
|
Hi Andrea and others, I think the timezone stuff you can solve by putting "pytz" into the packages to include. Isn't the optimize : 2 getting rid of the doc stuff? # options for py2exe options = {"py2exe": {"compressed": 1, "optimize": 2, "packages": ["encodings", "kinterbasdb", "pytz"], "includes": ["ntpath"]} } I get an error about ntpath, that is why I put it to includes, but it doesn't solve the problem - posted it on the py2exe newsgroup. See you Werner and...@ti... wrote: > Hello NG, > > I found where the incompatibilities between Matplotlib and py2exe reside, > at least on my configuration (Windows XP or 2000, Matplotlib 0.74 or 0.72pre, > wxPython 2.5.5.1 or previous). The following line in dates.py: > > UTC = timezone('UTC') (line 94) > > Breaks the executable with the error "Unknown timezone" or something similar. > > Next, the way the Matplotlib developers are handling docstrings in pylab.py > (and others), like: > > figimage.__doc__ = Figure.figimage.__doc__ + """ > Addition kwargs: hold = [True|False] overrides default hold state""" > > Breaks py2exe with an error like: > > "Can not concatenate NoneType with str" > > I just commented out these lines because I don't need docstrings in my executable, > but if someone has a better idea, I welcome all suggestions. > > Thank you a lot. > > Andrea. > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id396&op=click |