[Numpy-discussion] Py2exe programs with NumPy

Neven Gorsic N.Gorsic at vipnet.hr
Mon Jun 5 09:59:49 CDT 2006


I made a Python program using NumPy extension and program works fine.
So far I had no problems with compiling Python programs with Py2exe
module, but now, in the end of compilation, I get error messages:

The following modules appear to be missing
['Pyrex', 'Pyrex.Compiler', '_curses', 'fcompiler.FCompiler',
'lib.add_newdoc',
'pre', 'pylab', 'setuptools', 'setuptools.command',
'setuptools.command.egg_info
', 'win32api', 'win32con', 'win32pdh', 'numpy.core.equal',
'numpy.core.less', 'n
umpy.core.less_equal']

Upon starting exe file I get another message:

C:\Python24\dist>test
No scipy-style subpackage 'testing' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'core' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'lib' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'linalg' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'dft' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'random' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
No scipy-style subpackage 'f2py' found in
C:\Python24\dist\library.zip\numpy. Ignoring.
Traceback (most recent call last):
  File "test.py", line 228, in ?
  File "zipextimporter.pyc", line 78, in load_module
  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

Can you tell me please, what is wrong.

PP: I have no previous experience compiling Pyton programs which
includes numpy
modules. I use py2exe in basic way :

Type python setup.py py2exe from comand line and setup.py has only 3
lines:

from distutils.core import setup
import py2exe
setup(console=["Programi\\test.py"])




More information about the Numpy-discussion mailing list