Hi
I decided to give a quick try to 1.0.1 and py2exe and see what happens. When I try to start the compiled exe program I get this error log:
Traceback (most recent call last):
File "artisan.pyw", line 122, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "matplotlib\figure.pyo", line 18, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "matplotlib\axes.pyo", line 332, in <module>
File "matplotlib\axes.pyo", line 2014, in Axes
File "matplotlib\docstring.pyo", line 103, in dedent_interpd
File "matplotlib\docstring.pyo", line 36, in __call__
KeyError: 'Line2D'
It seems as if I did not include something important in the setup.py.
How could I modify the setup.py file to make it work?
Thanks for any suggestions.
######### setup.py ########################################
from distutils.core import setup
import matplotlib as mpl
import py2exe
INCLUDES = [
"sip",
"serial"
]
EXCLUDES = ['_tkagg',
'_ps',
'_fltkagg',
'Tkinter',
'Tkconstants',
'_cairo',
'_gtk',
'gtkcairo',
'pydoc',
'sqlite3',
'bsddb',
'curses',
'tcl',
'_wxagg',
'_gtagg',
'_cocoaagg',
'_wx']
setup(
windows=[{"script" : "E:\\Artisan\\artisan\\trunk\\artisan.pyw"}],
data_files = mpl.get_py2exe_datafiles(),
zipfile = None,
options={"py2exe" :{
"packages": ['matplotlib','pytz'],
"compressed": True,
"unbuffered": True,
"optimize":1,
"bundle_files": 1,
"dll_excludes":[
'tcl84.dll','tk84.dll','libgdk-win32-2.0-0.dll',
'libgdk_pixbuf-2.0-0.dll','libgobject-2.0-0.dll'],
"includes" : INCLUDES,
"excludes" : EXCLUDES}
}
)