hello,
Can someone tell me how to include MatPlotLib in a Py2Exe package.
I seem to have trouble with the matplot's get_data_path
After running Py2exe, packing everything with inno setup, installing the resulting package and the run the program,
I get the following error message.
Traceback (most recent call last):
File "PyLab_Works.py", line 42, in ?
File "PyLab_Works_appform.pyc", line 13, in ?
File "control_matplot.pyc", line 42, in ?
File "pylab.pyc", line 1, in ?
File "matplotlib\__init__.pyc", line 639, in ?
File "matplotlib\__init__.pyc", line 562, in rc_params
File "matplotlib\__init__.pyc", line 517, in matplotlib_fname
File "matplotlib\__init__.pyc", line 207, in wrapper
File "matplotlib\__init__.pyc", line 447, in _get_data_path_cached
File "matplotlib\__init__.pyc", line 443, in _get_data_path
RuntimeError: Could not find the matplotlib data files
From another post I saw a py2exe script,
where the matplotlib data files were copied to the subdirectory "matplotlibdata" of the installed directory.
As this can be done far more easy in Inno Setup, I used:
I've copied the matplotlib datafiles with an inno command:
; MatPlotLib
Source: "P:\Python\Lib\site-packages\matplotlib\mpl-data\*.*"; \
DestDir: "{app}\{#prog_path}\matplotlibdata\"; \
Flags: ignoreversion recursesubdirs; \
Components: Program;
But apparently MatPlotLib can't find it ??
Suggestions would de very welcome (especially because a lot ofpeople seems to have trouble with this).
thanks,
Stef Mientki