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:
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.
Just my two cents.