From: John H. <jdh...@ac...> - 2005-04-11 17:01:58
|
>>>>> "andrea" == andrea gavana <and...@ti...> writes: andrea> I still get the TimeZone error... I spent a little time looking at this this morning. I found that I needed to explicitly put the utc timezone in my script that I was freezing, it was not enough to include it in my includes list. Oddly, this was not consistent. In the simple_plot_wxagg example, I had the timezone info in my includes list only and it worked w/o incident. In the simple_plot_gtk example, I needed to manually add import pytz.zoneinfo.UTC to my simple_plot.py script. Strange... Also, what kinds of files should be in the includes list? For example, in Michael's list, he includes "matplotlib._na_image", "matplotlib._na_transforms", "matplotlib._nc_image", "matplotlib._nc_transforms", but not "matplotlib._image" "matplotlib._transforms" The latter two are python files, the former extension code. Do you typically need to manually point py2exe to the extension files? Anyway, the wxagg and gtk examples in the updated http://matplotlib.sourceforge.net/py2exe_examples.zip build and run on my machine. They are a bit of a hack in that I don't really understand why/how/when the includes work. If someone can rationalize these scripts, improve them, extend them, whatever, send the updates my way. JDH |