I have changed my setup.py to equal this
>from distutils.core import setup
>import py2exe
>from distutils.filelist import findall
>import os
>import matplotlib
>matplotlibdatadir = matplotlib.get_data_path()
>matplotlibdata = findall(matplotlibdatadir)
>matplotlibdata_files = []
>for f in matplotlibdata:
> dirname = os.path.join('matplotlibdata', f[len(matplotlibdatadir)+1:])
> matplotlibdata_files.append((os.path.split(dirname)[0], [f]))
>setup(
> console=['templatewindow.py'],
> options={
> "py2exe": {
> "compressed": 1,
> "optimize": 2,
> "packages": ["encodings",
> "kinterbasdb",
> "pytz.zoneinfo.UTC",
> "matplotlib.numerix",
> ],
> "dll_excludes": ["tcl84.dll", "tk84.dll"]
> }
>mpldata = glob.glob(r'C:\Python24\share\matplotlib\*')
>mpldata.append(r'C:\Python24\share\matplotlib\.matplotlibrc')
> data_files = [("prog\\locale\\fr\\LC_MESSAGES",
> mylocaleFR),
> ("prog\\locale\\de\\LC_MESSAGES",
> mylocaleDE),
> ("prog\\locale\\en\\LC_MESSAGES",
> mylocaleEN),
>...
> ("matplotlibdata", mpldata),
> ("prog\\amaradata", amaradata),
> ("prog\\amaradata\\Schemata", amaraschemata),
> ]
> )
And this is the error that i recieve
C:\Lameness\dist>templatewindow.exe
Traceback (most recent call last):
File "templatewindow.py", line 7, in ?
File "wxmpl.pyc", line 25, in ?
File "matplotlib\numerix\__init__.pyc", line 60, in ?
File "Numeric.pyc", line 91, in ?
File "numpy\__init__.pyc", line 35, in ?
File "numpy\core\__init__.pyc", line 6, in ?
File "numpy\core\umath.pyc", line 12, in ?
File "numpy\core\umath.pyc", line 10, in __load
AttributeError: 'module' object has no attribute '_ARRAY_API'
C:\Lameness\dist>
I guess at least the matplotlib errors have deceases or are just hiding :)
Any clues as to how to fix this one though?
-Kenny
|