Hi,
How to make pylab work together with py2exe?
Have anyone managed to build a stand alone exe with pylab package?
I have made a small test script but that does not work.
setup.py
------------
from distutils.core import setup
import py2exe
setup(name="test",
scripts=["test.py"],
console=['test.py']
)
test.py
----------
import pylab
print 'hello world'
when i try to run the exe i get following error
Traceback (most recent call last):
File "test.py", line 1, in ?
File "pylab.pyc", line 1, in ?
File "matplotlib\pylab.pyc", line 196, in ?
File "matplotlib\cm.pyc", line 5, in ?
File "matplotlib\colors.pyc", line 33, in ?
File "matplotlib\numerix\__init__.pyc", line 70, 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'