[SciPy-user] scipy.test problem

Hanno Klemm klemm at phys.ethz.ch
Mon Feb 27 14:48:14 EST 2006


Hi there,

I am new to scipy and have the following installation problem:

I work on a dual processor Xeon box, and try to install scipy. After
various unsuccessful attempts, I now compiled BLAS, LAPACK ATLAS and
FFTW3.1 from scratch, then installed numpy-0.9.5 and then installed
scipy-0.4.6 under python 2.4.2. The installation went fine but after 

import scipy
scipy.test(level=1)

I get the following error message:

======================================================================
FAIL: check_simple (scipy.linalg.decomp.test_decomp.test_eig)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/scratch/python2.4/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py",
line 89, in check_simple
    assert_array_almost_equal(w,exact_w)
  File
"/scratch/python2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 183, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


======================================================================
FAIL: check_simple (scipy.linalg.decomp.test_decomp.test_eigvals)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/scratch/python2.4/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py",
line 37, in check_simple
    assert_array_almost_equal(w,exact_w)
  File
"/scratch/python2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 183, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


======================================================================
FAIL: check_simple_tr (scipy.linalg.decomp.test_decomp.test_eigvals)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/scratch/python2.4/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py",
line 45, in check_simple_tr
    assert_array_almost_equal(w,exact_w)
  File
"/scratch/python2.4/lib/python2.4/site-packages/numpy/testing/utils.py",
line 183, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 66.6666666667%):
        Array 1: [ 9.4371906+0.j -0.1153653+0.j -0.3218254+0.j]
        Array 2: [ 9.3218254  0.        -0.3218254]


----------------------------------------------------------------------
Ran 1067 tests in 2.250s

FAILED (failures=3)
<unittest.TextTestRunner object at 0x2aa03923d0>

Could anybody please tell me what to do with that? 
If that is important: I compiled everything with gcc. 

gcc --version gives:
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-52)

In order to get scipy to use the atlas libraries I had to add an
option -fPIC in the compiler flags in atlas and friends.

Any help would be much appreciated!

Thanks in advance,
Hanno






-- 
Hanno Klemm
klemm at phys.ethz.ch





More information about the SciPy-User mailing list