[Numpy-discussion] Freezing numpy code

David Huard david.huard at gmail.com
Wed Mar 29 14:21:21 EST 2006


Hi,

I would like to freeze some code in order to run it on machines without
installing all the modules I use. I compiled Python 2.4.3 from source and
rebuilt numpy. When I try to freeze the following code :

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

with

python /usr/share/doc/python2.4/examples/Tools/freeze/freeze.py test.py
make

I get the following error message :

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

Does anybody know what I'm missing ?


I'm using the latest svn.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060329/492f26ac/attachment.html>


More information about the NumPy-Discussion mailing list