[SciPy-user] Building SciPy on OS X 10.4.3

Gennan Chen gnchen at cortechs.net
Tue Nov 29 18:13:08 CST 2005


I used FINK's python 2.4 and I stuck at the same place. Hope it is alright
to use though. Anyone can confirm that will be great!!

Gen


On 11/29/05 8:42 AM, "LOPEZ GARCIA DE LOMANA, ADRIAN" <alopez at imim.es>
wrote:

> 
> Hi all, 
> 
> first of all I want to thank Chris Fonnesbeck who help me to build SciPy under
> Mac OS X these days.
> Still I've got some errors at the scipy.test() that I would like to publish.
> 
> My OS X is 10.4.3, and the Python is 2.4.2. I install all the requirements
> with (apparently) no errors.
> 
> I've download the sources from the SourceForge page and edit the file
> Lib/fftpack/setup.py  as it is said at
> http://www.scipy.org/documentation/Members/fonnesbeck/osx_build.txt
> 
> The building and the intalling steps finished cleanly. But while running the
> scipy.test(), I've got some errors:
> 
> Macintosh-3:~/Desktop/scipy-0.4.3 adrianlopez$ python
> ActivePython 2.4.2 Build 248 (ActiveState Corp.) based on
> Python 2.4.2 (#1, Oct  3 2005, 09:39:46)
> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import scipy
> Importing test to scipy
> Importing base to scipy
> Importing basic to scipy
> Importing io to scipy
> Importing fftpack to scipy
> Importing special to scipy
> Importing cluster to scipy
> Importing sparse to scipy
> Importing utils to scipy
> Importing interpolate to scipy
> Importing lib to scipy
> Importing integrate to scipy
> Importing signal to scipy
> Importing optimize to scipy
> Importing linalg to scipy
> Importing stats to scipy
>>>> scipy.test()
>   Found 4 tests for scipy.io.array_import
>   Found 128 tests for scipy.linalg.fblas
>   Found 2 tests for scipy.base.umath
>   Found 92 tests for scipy.stats.stats
>   Found 9 tests for scipy.base.twodim_base
>   Found 36 tests for scipy.linalg.decomp
>   Found 49 tests for scipy.sparse.sparse
>   Found 20 tests for scipy.fftpack.pseudo_diffs
>   Found 6 tests for scipy.optimize.optimize
>   Found 5 tests for scipy.interpolate.fitpack
>   Found 4 tests for scipy.base.index_tricks
>   Found 12 tests for scipy.io.mmio
>   Found 1 tests for scipy.integrate
>   Found 4 tests for scipy.linalg.lapack
>   Found 24 tests for scipy.base.function_base
>   Found 18 tests for scipy.fftpack.basic
>   Found 1 tests for scipy.optimize.zeros
>   Found 92 tests for scipy.stats
>   Found 6 tests for scipy.base.matrix
> 
> ****************************************************************
> WARNING: clapack module is empty
> -----------
> See scipy/INSTALL.txt for troubleshooting.
> Notes:
> * If atlas library is not found by scipy/system_info.py,
>   then scipy uses flapack instead of clapack.
> ****************************************************************
> 
>   Found 42 tests for scipy.lib.lapack
>   Found 42 tests for scipy.base.type_check
>   Found 339 tests for scipy.special.basic
>   Found 7 tests for scipy.linalg.matfuncs
>   Found 41 tests for scipy.linalg.basic
>   Found 1 tests for scipy.optimize.cobyla
>   Found 10 tests for scipy.stats.morestats
>   Found 14 tests for scipy.linalg.blas
>   Found 17 tests for scipy.base.ma
>   Found 3 tests for scipy.base.getlimits
>   Found 70 tests for scipy.stats.distributions
>   Found 6 tests for scipy.optimize
>   Found 49 tests for scipy.sparse
>   Found 4 tests for scipy.fftpack.helper
>   Found 44 tests for scipy.base.shape_base
>   Found 3 tests for scipy.basic.helper
>   Found 3 tests for scipy.signal.signaltools
>   Found 0 tests for __main__
> 
> Don't worry about a warning regarding the number of bytes read.
> Warning: 1000000 bytes requested, 20 bytes read.
> .......caxpy:n=4
> ..caxpy:n=3
> ....ccopy:n=4
> ..ccopy:n=3
> .............cscal:n=4
> ....cswap:n=4
> ..cswap:n=3
> .....daxpy:n=4
> ..daxpy:n=3
> ....dcopy:n=4
> ..dcopy:n=3
> .............dscal:n=4
> ....dswap:n=4
> ..dswap:n=3
> .....saxpy:n=4
> ..saxpy:n=3
> ....scopy:n=4
> ..scopy:n=3
> .............sscal:n=4
> ....sswap:n=4
> ..sswap:n=3
> .....zaxpy:n=4
> ..zaxpy:n=3
> ....zcopy:n=4
> ..zcopy:n=3
> .............zscal:n=4
> ....zswap:n=4
> ..zswap:n=3
> ..............................................................................
> .................................................................E....E.......
> ....E....E...........E....E........F.........F.....F.F......./Library/Framewor
> ks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/interpolate
> /fitpack2.py:410: UserWarning:
> The coefficients of the spline returned have been computed as the
> minimal norm least-squares solution of a (numerically) rank deficient
> system (deficiency=7). If deficiency is large, the results may be
> inaccurate. Deficiency may strongly depend on the value of eps.
>   warnings.warn(message)
> .....................Residual: 1.05006926991e-07
> ...
> ****************************************************************
> WARNING: clapack module is empty
> -----------
> See scipy/INSTALL.txt for troubleshooting.
> Notes:
> * If atlas library is not found by scipy/system_info.py,
>   then scipy uses flapack instead of clapack.
> ****************************************************************
> 
> ..........................F...F..F..FF.F....TESTING CONVERGENCE
> 
> zero should be 1
> 
> function f2
> 
> cc.bisect :    1.0000000000001952
> cc.ridder :    1.0000000000004661
> cc.brenth :    0.9999999999999997
> cc.brentq :    0.9999999999999577
> 
> 
> 
> function f3
> 
> cc.bisect :    1.0000000000001952
> cc.ridder :    1.0000000000000000
> cc.brenth :    1.0000000000000009
> cc.brentq :    1.0000000000000011
> 
> 
> 
> function f4
> 
> cc.bisect :    1.0000000000001952
> cc.ridder :    1.0000000000001454
> cc.brenth :    0.9999999999993339
> cc.brentq :    0.9999999999993339
> 
> 
> 
> function f5
> 
> cc.bisect :    1.0000000000001952
> cc.ridder :    1.0000000000004574
> cc.brenth :    0.9999999999991444
> cc.brentq :    0.9999999999991444
> 
> 
> 
> function f6
> 
> cc.bisect :    1.0000000000001952
> cc.ridder :    0.9999999999998167
> cc.brenth :    0.9999999999997568
> cc.brentq :    1.0000000000011442
> 
> 
> 
> ..............................................................................
> ..............................................................................
> ..............................................................................
> ..............................................................................
> ..............................................................................
> ....................Gegenbauer, a =  0.87957454011
> ..............................................................................
> .......F...........................Result may be inaccurate, approximate err =
> 3.05848163994e-08
> ...Result may be inaccurate, approximate err = 4.54747350886e-13
> ............................................Result: [ 4.95535778  0.6666553 ]
> (exact result = 4.955356249106168, 0.666666666666666)
> ...Ties preclude use of exact statistic.
> ..Ties preclude use of exact statistic.
> ......
> ****************************************************************
> WARNING: cblas module is empty
> -----------
> See scipy/INSTALL.txt for troubleshooting.
> Notes:
> * If atlas library is not found by scipy/system_info.py,
>   then scipy uses fblas instead of cblas.
> ****************************************************************
> 
> ..............................................................................
> .................................E....E...........E....E...........E....E.....
> ..........................................................
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 148, in check_add_dense
>     sum1 = self.dat + self.datsp
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 502, in __radd__
>     raise NotImplementedError, 'adding a scalar to a CSC matrix is ' \
> NotImplementedError: adding a scalar to a CSC matrix is not yet supported
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.sparse.test_sparse.test_csc)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 148, in check_add_dense
>     sum1 = self.dat + self.datsp
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 173, in __radd__
>     return csc.__radd__(other)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 502, in __radd__
>     raise NotImplementedError, 'adding a scalar to a CSC matrix is ' \
> NotImplementedError: adding a scalar to a CSC matrix is not yet supported
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.sparse.test_sparse.test_csr)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 149, in check_add_dense
>     assert_array_equal(sum1, 2*self.dat)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 724, in assert_array_equal
>     reduced = ravel(equal(x,y))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 146, in __cmp__
>     raise TypeError, "comparison of sparse matrices not implemented"
> TypeError: comparison of sparse matrices not implemented
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.sparse.test_sparse.test_dok)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 148, in check_add_dense
>     sum1 = self.dat + self.datsp
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 502, in __radd__
>     raise NotImplementedError, 'adding a scalar to a CSC matrix is ' \
> NotImplementedError: adding a scalar to a CSC matrix is not yet supported
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.test_sparse.test_csc)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 148, in check_add_dense
>     sum1 = self.dat + self.datsp
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 173, in __radd__
>     return csc.__radd__(other)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 502, in __radd__
>     raise NotImplementedError, 'adding a scalar to a CSC matrix is ' \
> NotImplementedError: adding a scalar to a CSC matrix is not yet supported
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.test_sparse.test_csr)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> ERROR: Check whether adding a dense matrix to a sparse matrix works
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 149, in check_add_dense
>     assert_array_equal(sum1, 2*self.dat)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 724, in assert_array_equal
>     reduced = ravel(equal(x,y))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/sparse.py", line 146, in __cmp__
>     raise TypeError, "comparison of sparse matrices not implemented"
> TypeError: comparison of sparse matrices not implemented
> 
> ======================================================================
> ERROR: check_matmat (scipy.sparse.test_sparse.test_dok)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/sparse/tests/test_sparse.py", line 84, in check_matmat
>     assert_array_almost_equal((a*bsp).todense(), dot(a,b))
> AttributeError: 'scipy.ndarray' object has no attribute 'todense'
> 
> ======================================================================
> FAIL: check_definition
> (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_diff)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_pseudo_diffs.py", line 89, in check_definition
>     assert_array_almost_equal(diff(sin(x),2),direct_diff(sin(x),2))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 87.5%):
>         Array 1: [ -6.3519652e-15  -3.8268343e-01  -7.0710678e-01
> -9.2387953e-01
>   -1.0000000e+00  -9.2387953e-01  -7.0710678e-01  -3.82...
>         Array 2: [ -7.3854931e-15   6.5259351e-15  -2.4942634e-15
> -7.5636114e-17
>    1.4745663e-15  -1.9133685e-15   2.2804788e-16   8.70...
> 
> 
> ======================================================================
> FAIL: check_random_even
> (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_hilbert)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_pseudo_diffs.py", line 335, in check_random_even
>     assert_array_almost_equal(direct_hilbert(direct_ihilbert(f)),f)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 100.0%):
>         Array 1: [ 0.+0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j
> 0.-0.j  0.-0.j
>   0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0....
>         Array 2: [-0.0511398  0.4170731  0.1837093 -0.2308072 -0.2344555
> 0.4470189
>  -0.3737561 -0.2798173 -0.3871084  0.2063998 -0.38172...
> 
> 
> ======================================================================
> FAIL: check_definition
> (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_shift)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_pseudo_diffs.py", line 393, in check_definition
>     assert_array_almost_equal(shift(sin(x),a),direct_shift(sin(x),a))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 88.8888888889%):
>         Array 1: [ 0.0998334  0.4341242  0.7160532  0.9116156  0.9972237
> 0.9625519
>   0.8117822  0.5630995  0.2464987 -0.0998334 -0.43412...
>         Array 2: [ 0.0998334  0.0938127  0.0764768  0.0499167  0.0173359
> -0.0173359
>  -0.0499167 -0.0764768 -0.0938127 -0.0998334 -0.09381...
> 
> 
> ======================================================================
> FAIL: check_random_even
> (scipy.fftpack.pseudo_diffs.test_pseudo_diffs.test_tilbert)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_pseudo_diffs.py", line 243, in check_random_even
>     assert_array_almost_equal(direct_tilbert(direct_itilbert(f,h),h),f)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 100.0%):
>         Array 1: [ 0.+0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j
> 0.-0.j  0.-0.j
>   0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0.j  0.-0....
>         Array 2: [ 0.1989969  0.4450684  0.1778266 -0.1660265 -0.096574
> -0.2737429
>  -0.4183166  0.4751433  0.2629773  0.0808432 -0.26623...
> 
> 
> ======================================================================
> FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fft)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 102, in check_definition
>     assert_array_almost_equal(y,y1)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 100.0%):
>         Array 1: [ 20.+0.j   0.+0.j  -4.+4.j   0.+0.j  -4.+0.j   0.-0.j
> -4.-4.j   0.-0.j]
>         Array 2: [ 20.       +3.j         -0.7071068+0.7071068j  -7.
> +4.j
>   -0.7071068-0.7071068j  -4.       -3.j          0.707106...
> 
> 
> ======================================================================
> FAIL: check_definition (scipy.fftpack.basic.test_basic.test_fftn)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 429, in check_definition
>     assert_array_almost_equal(y,direct_dftn(x))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 22.2222222222%):
>         Array 1: [[ 45. +0.j         -4.5+2.5980762j  -4.5-2.5980762j]
>  [-13.5+7.7942286j   0. +0.j          0. +0.j       ]
>  [-13.5-7.79...
>         Array 2: [[ 45. +0.j         -4.5+2.5980762j  -4.5-2.5980762j]
>  [-13.5+0.j         -0. +0.j         -0. -0.j       ]
>  [-13.5+0.j ...
> 
> 
> ======================================================================
> FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifft)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 187, in check_definition
>     assert_array_almost_equal(y,y1)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 100.0%):
>         Array 1: [ 2.5+0.j   0. -0.j  -0.5-0.5j  0. -0.j  -0.5+0.j   0. +0.j
> -0.5+0.5j
>   0. +0.j ]
>         Array 2: [ 2.5      +0.375j      0.0883883+0.0883883j -0.125    -0.5j
>   0.0883883-0.0883883j -0.5      -0.375j     -0.0883883-0.0...
> 
> 
> ======================================================================
> FAIL: check_random_real (scipy.fftpack.basic.test_basic.test_ifft)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 221, in check_random_real
>     assert_array_almost_equal (ifft(fft(x)),x)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 98.0392156863%):
>         Array 1: [ 0.4127615 +0.0000000e+00j  0.5061932 +3.2653618e-18j
>   0.2375916 -6.4218783e-17j  0.479863  +2.0291934e-17j
>   0.851459...
>         Array 2: [ 0.4127615  0.6425217  0.3923591  0.8931939  0.8700022
> 0.6040551
>   0.4261222  0.792201   0.887018   0.8708383  0.35789...
> 
> 
> ======================================================================
> FAIL: check_definition (scipy.fftpack.basic.test_basic.test_ifftn)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 598, in check_definition
>     assert_array_almost_equal(y,direct_idftn(x))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 22.2222222222%):
>         Array 1: [[ 5. +0.j        -0.5-0.2886751j -0.5+0.2886751j]
>  [-1.5-0.8660254j  0. +0.j         0. +0.j       ]
>  [-1.5+0.8660254j ...
>         Array 2: [[ 5. +0.j        -0.5-0.2886751j -0.5+0.2886751j]
>  [-1.5+0.j        -0. -0.j        -0. +0.j       ]
>  [-1.5+0.j        ...
> 
> 
> ======================================================================
> FAIL: check_definition (scipy.fftpack.basic.test_basic.test_irfft)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/fftpack/tests/test_basic.py", line 345, in check_definition
>     assert_array_almost_equal(y,ifft(x1))
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 758, in assert_array_almost_equal
>     assert cond,\
> AssertionError: 
> Arrays are not almost equal (mismatch 50.0%):
>         Array 1: [ 2.625     -1.6856602 -0.375     -1.1856602  0.625
> 0.4356602 -0.375
>   0.9356602]
>         Array 2: [ 2.625+0.j -0.375-0.j -0.375-0.j -0.375-0.j  0.625+0.j
> -0.375+0.j
>  -0.375+0.j -0.375+0.j]
> 
> 
> ======================================================================
> FAIL: check_round (scipy.special.basic.test_basic.test_round)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/special/tests/test_basic.py", line 1793, in check_round
>     assert_array_equal(rnd,rndrl)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
> /scipy/test/testing.py", line 733, in assert_array_equal
>     assert cond,\
> AssertionError: 
> Arrays are not equal (mismatch 25.0%):
>         Array 1: [10 10 10 11]
>         Array 2: [10 10 11 11]
> 
> 
> ----------------------------------------------------------------------
> Ran 1210 tests in 7.888s
> 
> FAILED (failures=11, errors=12)
> <unittest.TextTestRunner object at 0x2683890>
>>>> 
> 
> Are they serious errors or can I use SciPy confidently?
> 
> Thanks for your help,
> 
> Adrián.
> 
> PS: Before this, I've also tried checking  the files via svn and I've got
> errors with the fftw libraries:
> 
>>>> Macintosh-3:~/Desktop/scipy adrianlopez$ python
>>>> ActivePython 2.4.2 Build 248 (ActiveState Corp.) based on
>>>> Python 2.4.2 (#1, Oct  3 2005, 09:39:46)
>>>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>> import scipy
>>>> Importing test to scipy
>>>> Importing base to scipy
>>>> Importing basic to scipy
>>>> Importing io to scipy
>>>> Importing fftpack to scipy
>>>> Failed to import fftpack
>>>> Failure linking new module:
>>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag
>>>> es/scipy/fftpack/_fftpack.so: Symbol not found: _fprintf$LDBLStub
>>>>   Referenced from:
>>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag
>>>> es/scipy/fftpack/_fftpack.so
>>>>   Expected in: dynamic lookup
>>>> 
>>>> Importing special to scipy
>>>> Importing cluster to scipy
>>>> Importing sparse to scipy
>>>> Importing utils to scipy
>>>> Importing interpolate to scipy
>>>> Importing lib to scipy
>>>> Importing integrate to scipy
>>>> Importing signal to scipy
>>>> Failed to import signal
>>>> Failure linking new module:
>>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag
>>>> es/scipy/fftpack/_fftpack.so: Symbol not found: _fprintf$LDBLStub
>>>>   Referenced from:
>>>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packag
>>>> es/scipy/fftpack/_fftpack.so
>>>>   Expected in: dynamic lookup
>>>> 
>>>> Importing optimize to scipy
>>>> Importing linalg to scipy
>>>> Importing stats to scipy
> 
> I could give a more detailed description about this if someone is interested.
> 
> Thanks again, 
> 
> Adrián.
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user





More information about the SciPy-user mailing list