From: Larry B. <lar...@we...> - 2006-04-17 19:20:10
|
ori Ganoni wrote: > hi, I am trying to use py2exe on my aplication and I am getting error's > related to > the numpy lib after symplifying the problem > I tryied a simple script (since the longer one is not relevant) and it > doesn't work > > this is the test script: > > #test.py > import numpy > > and the setup script is: > #setup.py > from distutils.core import setup > import py2exe > setup(console=["test.py"]) > > after compiling with py2exe I'am running test.exe from the dist dir. and > getting the errors: > --------------------------------------------------------------------------------------------------------------- > No scipy-style subpackage 'testing' found in > E:\ori\finalwork\toolkit\dist\libra > ry.zip\numpy. Ignoring. > No scipy-style subpackage 'core' found in > E:\ori\finalwork\toolkit\dist\library. > zip\numpy. Ignoring. > No scipy-style subpackage 'lib' found in > E:\ori\finalwork\toolkit\dist\library.z > ip\numpy. Ignoring. > No scipy-style subpackage 'linalg' found in > E:\ori\finalwork\toolkit\dist\librar > y.zip\numpy. Ignoring. > No scipy-style subpackage 'dft' found in > E:\ori\finalwork\toolkit\dist\library.z > ip\numpy. Ignoring. > No scipy-style subpackage 'random' found in > E:\ori\finalwork\toolkit\dist\librar > y.zip\numpy. Ignoring. > No scipy-style subpackage 'f2py' found in > E:\ori\finalwork\toolkit\dist\library. > zip\numpy. Ignoring. > Traceback (most recent call last): > File "test.py", line 4, in ? > File "numpy\__init__.pyc", line 44, in ? > File "numpy\_import_tools.pyc", line 320, in get_pkgdocs > File "numpy\_import_tools.pyc", line 283, in _format_titles > ValueError: max() arg is an empty sequence > ------------------------------------------------------------------------------------------------------------------ > then I tried compiling with the option: >> python setup.py py2exe --skip-archive > > and after running the test script I got the folowing errors: > ------------------------------------------------------------------------------------------------------------------- > > 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 "test.py", line 4, in ? > File "numpy\__init__.pyc", line 49, in ? > ☺☻ > File "numpy\add_newdocs.pyc", line 2, in ? > `∩╛Cc > 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' > > ---------------------------------------------------------------------------------------------------- > > I am using: > > ActivePython 2.4.3 > > numpy-0.9.6r1 > > py2exe-0.6.5 > > help me > > ori > > > > > > I don't use numpy, but Google turned up this link that might help: http://aspn.activestate.com/ASPN/Mail/Message/py2exe-users/3075362 Larry Bates |