There is a quite simple workaround to this problem. Find the directory from which mpl_tools is imported and simply add an empty text file named "__init__.py" in that directory. py2exe will now find and include this module without any special imports needed in the setup file.
You can find the mpl_tools directory by typing the following in a python console: import importlib importlib.import_module('mpl_toolkits').__path__ I found the solution here http://stackoverflow.com/a/11632115/2166823 and it seems to apply to namespace packages in general. I posted this solution to Stack Overflow as well http://stackoverflow.com/a/19848039/2166823. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/1-3-0-and-py2exe-regression-tp41723p42472.html Sent from the matplotlib - users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users