python - mpl data error with cx_freeze - Linux 13.10 -
i new on stack overflow , hope not asking obvious. in fact, did quite search online , not find proper answer/solution problem.
i building open-source cross-platform desktop application based on python. using cx_freeze build distribution version. cx_freeze works on windows 7 , mac os x 10.9.2 , app built. nonetheless, when try use same setup.py file build diet_version on linux 13.10, following error:
my building options are:
build_exe_options = {"includes":["matplotlib.backends.backend_tkagg","sys","os","pyqt4","numpy","sys","os","matplotlib"], "include_files":[(matplotlib.get_data_path(), 'mpl-data')], "excludes":[], }
and following error:
error: build/exe.linux-x86_64-2.7/mpl-data: directory
i tried use full path of mpl-data in building options, i.e.
build_exe_options = {"includes":["matplotlib.backends.backend_tkagg","sys","os","pyqt4","numpy","sys","os","matplotlib"], "include_files":[("/usr/share/matplotlib/mpl-data", 'mpl-data'), ("/usr/share/matplotlib/mpl-data/fonts", 'mpl-data/fonts'),("/usr/share/matplotlib/mpl-data/images", 'mpl-data/images'),("/etc/matplotlibrc", 'mpl-data')], "excludes":[], }
but keep getting same error mentioned above.
if not declare build_exe options, did on windows 7, following error on linux:
error: /usr/lib/pymodules/python2.7/matplotlib/mpl-data: no such file or directory
i afraid error happens because mpl-data located in $/usr/share/matplotlib/mpl-data rather $/usr/lib/pymodules/python2.7/matplotlib/mpl-data, have no clue why error persists after declaring path folder.
to sum up, release desktop app windows , mac os without problems (works charm!), linux version still pending stand-alone version (check linux source code here: http://concrete.fsv.cvut.cz/~wilson/software.html). can shed light on issue? how tell cx_freeze mpldata without errors.
thanks in advance,
wbr
Comments
Post a Comment