matplotlib py2exe problem

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

Are you using numarray as your numerix? If so, is it specified in
matplotlibrc of the exe bundle?

···

On 3/17/06, Daniel McQuillen <danmcquillen@...9...> wrote:

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

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users