Can someone tell me how to successfully
create an executable of a script that uses matplotlib? The example script in
the documentation does not appear to work for my case. I keep missing modules,
and everytime I add the missing module, a new one crops up. Much like the
problems listed here: http://mail.python.org/pipermail/python-list/2005-February/267595.html
My recent error message is:
Traceback (most recent call last):
File “Uranium_Leaching_
Modelv1.py”, line 162, in ?
File “pylab.pyc”, line 1,
in ?
File “matplotlib\pylab.pyc”,
line 217, in ?
File “matplotlib\backends_init_.pyc”,
line 24, in pylab_setup
ImportError: No module named backend_tkagg
The relevant parts of my setup.py script
look like this:
data=glob.glob(r’C:\Python23\share\matplotlib*’)
data.append(r’C:\Python23\share\matplotlib\matplotlibrc’)
options = {
"py2exe":
{“excludes”: [’_gtkagg’, ‘_tkagg’],
“dll_excludes”: [‘libgdk-win32-2.0-0.dll’, ‘libgobject-2.0-0.dll’],
“includes”: [‘scipy’,‘scipy.integrate’,‘matplotlib.*’,
‘scipy.special.’,'scipy.linalg.’,‘scipy.*’,\
],
“packages”: [‘encodings’,‘matplotlib.numerix.random_array’,‘pytz’,\
‘dateutil’
Thanks,
Noko
Dr Noko Phala
Process Research
Anglo American Research Laboratories
8 Schonland Street
Theta Johannesburg
PO Box 106 Crown Mines 2025
Republic of South Africa
Tel: +27 (11) 377 4817
e-mail: nphala@…683…1…
···
This e-mail was checked by the e-Sweeper Service.
For more information visit our website, Clearswift Corporation e-Sweeper :
http://www.mimesweeper.com/products/esweeper/