[SciPy-user] scipy compilation succeeds, test fails

Michele Mazzucco michelemazzucco@gmail....
Fri Apr 20 19:35:20 CDT 2007


Hi again,

I've noticed also the problem below, which happens every time I import
the scipy module. What went wrong during the setup process?, there
were no error messages.

Sealbook:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/tests
nmm42$ python test_basic.py
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/testing/numpytest.py:634:
DeprecationWarning: ScipyTest is now called NumpyTest; please update
your code
  DeprecationWarning)
Traceback (most recent call last):
  File "test_basic.py", line 28, in <module>
    from linalg import solve,inv,det,lstsq, toeplitz, hankel, tri, triu, tril
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/__init__.py",
line 8, in <module>
    from basic import *
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/basic.py",
line 17, in <module>
    from lapack import get_lapack_funcs
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/lapack.py",
line 17, in <module>
    from scipy.linalg import flapack
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/__init__.py",
line 8, in <module>
    from basic import *
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/basic.py",
line 17, in <module>
    from lapack import get_lapack_funcs
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/lapack.py",
line 17, in <module>
    from scipy.linalg import flapack
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/flapack.so,
2): Symbol not found: ___dso_handle
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/flapack.so
  Expected in: dynamic lookup

Sealbook:/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/linalg/tests
nmm42$ ls ../
__init__.py             basic.py                cblas.so
 flapack.so              interface_gen.py        lapack.pyc
  setup.py
__init__.pyc            basic.pyc               clapack.so
 flinalg.py              interface_gen.pyc       linalg_version.py
  setup.pyc
_flinalg.so             blas.py                 decomp.py
 flinalg.pyc             iterative.py            linalg_version.pyc
  setup_atlas_version.py
_iterative.so           blas.pyc                decomp.pyc
 info.py                 iterative.pyc           matfuncs.py
  setup_atlas_version.pyc
atlas_version.so        calc_lwork.so           fblas.so
 info.pyc                lapack.py               matfuncs.pyc
  tests


Thanks,
Michele

On 4/21/07, Michele Mazzucco <michelemazzucco@gmail.com> wrote:
> Hi all,
>
> I've just built SciPy on an Intel Mac OS 10.4, python 2.5.1, gcc
> 4.0.1, gfortran 4.3.0 and fftw 3.1.2.
> I've followed the instructions described here [1]. I can successfully
> install the library, howevever the call to
> scipy.test(1,10)
> fails:
>
> ======================================================================
> ERROR: check_integer (scipy.io.tests.test_array_import.test_read_array)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/io/tests/test_array_import.py",
> line 55, in check_integer
>     from scipy import stats
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/stats/__init__.py",
> line 7, in <module>
>     from stats import *
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/stats/stats.py",
> line 190, in <module>
>     import scipy.special as special
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/__init__.py",
> line 8, in <module>
>     from basic import *
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/basic.py",
> line 8, in <module>
>     from _cephes import *
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so,
> 2): Symbol not found: ___dso_handle
>   Referenced from:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/special/_cephes.so
>   Expected in: dynamic lookup
>
>
> ======================================================================
> ERROR: check_simple_todense (scipy.io.tests.test_mmio.test_mmio_coordinate)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/scipy/io/tests/test_mmio.py",
> line 151, in check_simple_todense
>     b = mmread(fn).todense()
> AttributeError: 'numpy.ndarray' object has no attribute 'todense'
>
> ----------------------------------------------------------------------
> Ran 417 tests in 1.788s
>
> FAILED (errors=2)
> <unittest.TextTestRunner object at 0x17e0d90>
>
>
> The call numpy.test(1,10) succeeds. Any idea?
>
> Thanks,
> Michele
>
>
>
> [1] http://www.scipy.org/Installing_SciPy/Mac_OS_X
>


More information about the SciPy-user mailing list