about the matplotlib and py2exe
this is another error situation when I tried to use py2exe to packet the
procedure to '.exe'.
from distutils.core import setup
from distutils.filelist import findall
import matplotlib
import py2exe
setup(console=["main.py","debug.py"],data_files =
matplotlib.get_py2exe_datafiles(),options={
'py2exe': {
'packages' : ['matplotlib', 'pytz'],
'includes' :
["sip","matplotlib.backends","matplotlib.backends.backend_qt4agg",
"matplotlib.figure","pylab", "numpy",
"matplotlib.backends.backend_tkagg"],
'excludes' : ['_gtkagg', '_tkagg', '_agg2',
'_cairo', '_cocoaagg',
'_fltkagg', '_gtk', '_gtkcairo', ],
'dll_excludes': ['libgdk-win32-2.0-0.dll',
'libgobject-2.0-0.dll',
'libgdk_pixbuf-2.0-0.dll']
}})
Error:
_tkinter.TclError: couldn't open"dist\mpl-data\images\matplotlib.gif":no
such file or directory.
No comments:
Post a Comment