[Numpy-discussion] py2exe, pyinstaller and numpy

Francesco Anselmo pisuke@blueyonder.co...
Mon Feb 25 17:38:42 CST 2008


Hi all!

I have just subscribed to this mailing list and would like to
say hello to everybody and a big thank you to all the people
involved in the development of numpy and scipy.

My first question is about packaging numpy scripts into executables.

I have googled around and read mailing-list posts, but I haven't
found the definitive answer, yet: is there a working method of
"compiling" numpy and scipy scripts into binaries on Windows?

In the best occasion, I manage to create the executable, but get
errors like this one:

No scipy-style subpackage 'dft' found in Z:\Projects\lightinglib\dist
\library.zi
p\numpy. Ignoring: cannot import name deprecate
Traceback (most recent call last):
  File "uv2lmap.py", line 5, in ?
  File "zipextimporter.pyc", line 82, in load_module
  File "threedee\__init__.pyc", line 5, in ?
  File "zipextimporter.pyc", line 82, in load_module
  File "threedee\mapping.pyc", line 14, in ?
  File "zipextimporter.pyc", line 82, in load_module
  File "numpy\__init__.pyc", line 35, in ?
  File "numpy\_import_tools.pyc", line 173, in __call__
  File "numpy\_import_tools.pyc", line 68, in _init_info_modules
  File "<string>", line 1, in ?
  File "zipextimporter.pyc", line 82, in load_module
  File "numpy\random\__init__.pyc", line 3, in ?
  File "zipextimporter.pyc", line 98, in load_module
  File "numpy.pxi", line 32, in mtrand
AttributeError: 'module' object has no attribute 'dtype'

Many thanks in advance.

Francesco






More information about the Numpy-discussion mailing list