Daniel McQuillen <danmcquillen@...83...> writes:
A follow up note from my posting today:
Although the .exe was successfully created by py2exe,
when I try to run it,I only get an "Errors Occurred"
dialog window with the following written to the
log:
Traceback (most recent call last):
File "VizTool.py", line 2, in ?
File "VizTool\Controllers.pyo", line 4, in ?
File "VizTool\GraphPanels.pyo", line 1, in ?
File "wxmpl.pyo", line 32, in ?
File "matplotlib\numerix\__init__.pyo", line 145, in ?
ImportError: No module named random_array
Here's my setup script. Note that I've included the
line suggested by the py2exe wiki
(http://starship.python.net/crew/theller/moin.cgi/MatPlotLib)
to try to remedy this missing random_array module,
but am still getting that error.
import os
from distutils.core import setup
import py2exe
import glob
import matplotlib
opts = {
'py2exe': { 'includes': 'matplotlib.numerix.random_array',
'excludes': ['_gtkagg', '_tkagg'],
'dll_excludes': ['libgdk-win32-2.0-0.dll',
'libgobject-2.0-0.dll']
}
}
setup( version = '0.0.1',
windows = ['VizTool.py'],
data_files = [('data', ['data/CH2.csv']),
('conf',['conf/GraphStyles.ini']),
('',['matplotlibrc']),
matplotlib.get_py2exe_datafiles()],
options={"py2exe":{"optimize":2}},
)
This is the setup.py command at the DOST prompt:
C:>python.exe -OO setup.py py2exe -b 3 -c -p numarray,pytz -e numpy
Thanks for any help anybody can provide!
Regards,
Daniel McQuillen
Oakland, CA