|
From: cheflo <joe...@gm...> - 2013-11-07 22:35:35
|
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.
|