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
PyInstaller 2.0 also has exactly the same error.
cx_Freeze unfortunately has problems with some tricks in numpy 1.7.x.
--
View this message in context:
http://matplotlib.1069221.n5.nabble.com/1-3-0-and-py2exe-regression-tp41723p41972.html
Sent from the matplotlib - users mailing list archive
No, this is still coming back to haunt me. I can't figure out how to be able
to package this via py2exe now:
I am running the command:
python setup2.py py2exe
via python 2.7.5 and matplotlib 1.3.0 and py2exe 0.6.9 and 0.6.10dev
I have read http://www.py2exe.org/index.cgi/ExeWithEggs and tried
I have little to no experience with py2exe, so I don't know how much I
can help there.
However, between 1.2.1 and 1.3.0, mpl_toolkits was changed to a
namespace package, which allowed basemap to install into it despite it
coming from matplotlib (and being installed with setuptools). I don't
Thanks, for the moment, it seems that removing the 'mpl_toolkits' from
packages makes it work.
Also, with the removal of dateutil from the binary, and installation of
dateutil from source pulling in six via easy_install/pip meant it also was
not found by py2exe. I got around this by using