From: Thomas H. <th...@ct...> - 2008-07-30 14:08:32
|
Keith Suda-Cederquist schrieb: > Hi All, > > I'm new to py2exe and just used it to generate an exe from python > code that uses matplotlib/pylab to create a png of an image from a > data file. > > I used the Matplotlib page on the py2exe website to get me started in > the correct direction: http://www.py2exe.org/index.cgi/MatPlotLib > > After a lot of frustration and some debugging I figured out that the > problem was that the "An easier way to get the list of datafiles" > method incorrectly says that the "matplotlib.get_py2exe_datafiles() > which returns a tuple." I belive that this function actually returns > a list of tuples, so when the author suggests that you use the line: > > > 13 data_files=[matplotlib.get_py2exe_datafiles()] This actually > creates a list of a list of tuples. Inputting this into distutils > setup returns an error since the split method does not exist for the > list. Removing the brackets fixed the problem for me. > > In the end, I got my code to work (which is what matters) and learned > a little bit about distutils and py2exe. However, it would probably > be helpful to others if someone changed the webpage so future new > users will have more of an easier time. http://www.py2exe.org/index.cgi/ is a wiki. You should just create an account (click on the Login link) and then you are able to change or add pages yourself. Thomas |