[SciPy-user] Experience with freeze and numpy someone ?

David Huard david.huard at gmail.com
Thu Mar 23 11:51:57 EST 2006


Hi,
I'd like to freeze some code in order to run it on a 64 bit machine on which
scipy is not installed.

My first questions is : Is this gonna work if I freeze it on a 32 bit
machine ?

Second question : Using the test code

#test.py
from numpy import mean, rand
x = rand(1000)
print mean(x)

and
>python freeze test.py
>make

I get the following error message when executing ./test

No scipy-style subpackage 'testing' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'core' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'lib' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'linalg' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'dft' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'random' found in n:u:m:p:y. Ignoring.
No scipy-style subpackage 'f2py' found in n:u:m:p:y. Ignoring.
Traceback (most recent call last):
  File "test.py", line 1, in ?
    from numpy import mean, rand
  File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 44, in ?
    __doc__ += pkgload.get_pkgdocs()
  File "/usr/lib/python2.4/site-packages/numpy/_import_tools.py", line 320,
in get_pkgdocs
    retstr = self._format_titles(titles) +\
  File "/usr/lib/python2.4/site-packages/numpy/_import_tools.py", line 283,
in _format_titles
    max_length = max(lengths)
ValueError: max() arg is an empty sequence

Is this a problem with freeze or with numpy ? I tried to do the same with
cx_Freeze and had basically the same error message.

Using the latest tarball.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20060323/97389fed/attachment.html>


More information about the SciPy-User mailing list