matplotlib, py2exe import problems

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:
My recent error message is:

Traceback (most recent call last):

File “Uranium_Leaching_”, 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 script
look like this:



options = {


{“excludes”: [’_gtkagg’, ‘_tkagg’],

“dll_excludes”: [‘libgdk-win32-2.0-0.dll’, ‘libgobject-2.0-0.dll’],

“includes”: [‘scipy’,‘scipy.integrate’,‘matplotlib.*’,



“packages”: [‘encodings’,‘matplotlib.numerix.random_array’,‘pytz’,\




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 :