View Single Post
Old Jul 25th, 2006, 6:32 PM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
py2exe with matplotlib

I'm trying to compile my Python program (just 2 files) with py2exe. It uses a number of modules, including wx, matplotlib, and numeric. After some tweaking, I got py2exe to produce the executable, however, I get the following error message whenever I run it:

import core -> failed: No module named _internal
import lib -> failed: 'module' object has no attribute '_ARRAY_API'
import linalg -> failed: 'module' object has no attribute '_ARRAY_API'
import dft -> failed: 'module' object has no attribute '_ARRAY_API'
import random -> failed: 'module' object has no attribute 'dtype'
Traceback (most recent call last):
  File "dataview_gui.py", line 9, in ?
  File "datareader.pyc", line 7, in ?
    
  File "pylab.pyc", line 1, in ?
    mò
  File "matplotlib\pylab.pyc", line 196, in ?
    roots     - the roots of the polynomial coefficients in p
  File "matplotlib\cm.pyc", line 5, in ?
    
  File "matplotlib\colors.pyc", line 33, in ?
    For a greater range of colors, you have two options.  You can specify
  File "matplotlib\numerix\__init__.pyc", line 67, in ?
    %(specific)s could not be satisfied, or because the build flag for
  File "numpy\__init__.pyc", line 49, in ?
    
  File "numpy\add_newdocs.pyc", line 2, in ?
    gkDc
  File "numpy\lib\__init__.pyc", line 5, in ?
    
  File "numpy\lib\type_check.pyc", line 8, 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'
Help!
titaniumdecoy is offline   Reply With Quote