[SciPy-user] scipy and freeze - missing modules

Nicolas Limare nicolas at limare.net
Wed Aug 2 16:43:50 CDT 2006


Hi,

I tried to use freeze[1] do build a stand-alone executable from my
python program.

It computes with warnings about missing numpy modules, and the binary
fails to run, with this error message:

8<----------8<----------8<----------8<----------8<----------8<----------
No scipy-style subpackage 'core' found in numpy. Ignoring: cannot import
name typeinfo
No scipy-style subpackage 'lib' found in numpy. Ignoring: cannot import
name typeinfo
No scipy-style subpackage 'linalg' found in numpy. Ignoring: cannot
import name
typeinfo
No scipy-style subpackage 'dft' found in numpy. Ignoring: cannot import
name typeinfo
No scipy-style subpackage 'random' found in numpy. Ignoring: No module
named info
Traceback (most recent call last):
  File "mesh.py", line 24, in ?
    from numpy import empty, ones, zeros, concatenate, array, arange, \
  File "/usr/lib/python2.4/site-packages/numpy/__init__.py", line 49, in ?
    import add_newdocs
  File "/usr/lib/python2.4/site-packages/numpy/add_newdocs.py", line 2, in ?
    from lib import add_newdoc
  File "/usr/lib/python2.4/site-packages/numpy/lib/__init__.py", line 5,
in ?
    from type_check import *
  File "/usr/lib/python2.4/site-packages/numpy/lib/type_check.py", line
8, in ?
    import numpy.core.numeric as _nx
  File "/usr/lib/python2.4/site-packages/numpy/core/__init__.py", line
7, in ?
    import numerictypes as nt
  File "/usr/lib/python2.4/site-packages/numpy/core/numerictypes.py",
line 82, in ?
    from multiarray import typeinfo, ndarray, array, empty
ImportError: cannot import name typeinfo
8<----------8<----------8<----------8<----------8<----------8<----------

I use scipy 0.4.8 and numpy 0.9.6, compiled from the official tgz, with
Python 2.4.2 on Ubuntu 5.10 (Breezy).

My scipy-related module imports are:

8<----------8<----------8<----------8<----------8<----------8<----------
from numpy import empty, ones, zeros, concatenate, array, arange, \
                  nonzero, byte, float32, cumsum
from scipy.sparse import csr_matrix
from scipy.ndimage.filters import median_filter
from scipy.misc.pilutil import fromimage
from scipy.weave import inline, converter
8<----------8<----------8<----------8<----------8<----------8<----------

Do you use freeze with numpy/scipy? Do you have some idea about where
the problem lies?

Thanks for your help.

[1]http://wiki.python.org/moin/Freeze

PS : I can provide the full freeze compilation logs and a sample of my
program.

-- 
Nicolas LIMARE





More information about the SciPy-user mailing list