[SciPy-dev] Re: scipy / SGI MIPSpro compiler (part 3)
Steve M. Robbins
steven.robbins at videotron.ca
Sat Aug 24 16:24:00 EDT 2002
Hi again,
I've managed to build and install scipy (using the two patches sent
previously) on an IRIX 6.5 system with SGI's MIPSpro C compiler and
GNU Fortran (GCC 3.2). I'm using CVS scipy.
I built *without* ATLAS, using the BLAS and LAPACK sources from
netlib. (Many thanks to whoever made it possible for scipy to build
blas & lapack from source.)
I've moved on to running the scipy tests. I'm not sure which failures
are worth worrying about.
For instance, a simple "import scipy" results in a warning:
>>> import scipy
/home/bic/stever/irix-6/lib/python2.1/site-packages/scipy/linalg/lapack.py:24: UserWarning: exceptions.ImportError: No module named clapack
warnings.warn(clapack.__doc__)
exceptions.ImportError: No module named cblas
I don't think this is a problem -- the comments in lapack.py suggest
that either Fortran or C lapack is okay. I'm not sure why the exception
is raised. (??) I'm not sure where the exception about cblas comes
from -- is cblas required? (I'm using the Fortran BLAS sources, compiled
during the scipy build)
Now, when I run the test suite itself,
python -c 'import scipy; scipy.test(level=1)' 2>err | tee out
I get some more worrying messages. Here are the standard output
and standard error, respectively. I'd appreciate any comments if
I've done something wrong in building scipy. Are these messages
about "No test suite found for ..." normal?
--------------------- out ----------------------------------
exceptions.ImportError: No module named cblas
No test suite found for scipy.helper
No test suite found for scipy.__cvs_version__
No test suite found for scipy.helpmod
creating test suite for: scipy.common
No test suite found for scipy.scipy_tempfile
No test suite found for scipy.sync
No test suite found for scipy.pilutil
No test suite found for scipy.proc
No test suite found for scipy.ga
No test suite found for scipy.io
No test suite found for scipy.cow
No test suite found for scipy.integrate
creating test suite for: scipy.stats.distributions
No test suite found for scipy.stats.pstat
creating test suite for: scipy.stats.morestats
No test suite found for scipy.stats.rv
creating test suite for: scipy.stats.stats
No test suite found for scipy.stats.rv2
creating test suite for: scipy_base.limits
creating test suite for: scipy_base.index_tricks
creating test suite for: scipy_base.shape_base
creating test suite for: scipy_base.function_base
creating test suite for: scipy_base.matrix_base
No test suite found for scipy_base.scimath
creating test suite for: scipy_base.type_check
No test suite found for scipy_base.polynomial
No test suite found for scipy.special
No test suite found for scipy.cluster
FAILURE to import scipy.weave.accelerate_tools
<string>:0: AttributeError: 'scipy.weave' module has no attribute 'accelerate_tools' (in ?)
No test suite found for scipy.weave.scalar_info
No test suite found for scipy.weave.blitz_info
No test suite found for scipy.weave.cxx_info
creating test suite for: scipy.weave.catalog
No test suite found for scipy.weave.blitz_spec
No test suite found for scipy.weave.dumbdbm_patched
creating test suite for: scipy.weave.scalar_spec
No test suite found for scipy.weave.lib2def
creating test suite for: scipy.weave.sequence_spec
No test suite found for scipy.weave.misc
No test suite found for scipy.weave.code_blocks
No test suite found for scipy.weave.inline_info
No test suite found for scipy.weave.converters
No test suite found for scipy.weave.unicode_spec
creating test suite for: scipy.weave.inline_tools
No test suite found for scipy.weave.bytecodecompiler
creating test suite for: scipy.weave.slice_handler
No test suite found for scipy.weave.unicode_info
creating test suite for: scipy.weave.build_tools
creating test suite for: scipy.weave.blitz_tools
No test suite found for scipy.weave.base_info
No test suite found for scipy.weave.swig_info
creating test suite for: scipy.weave.ast_tools
creating test suite for: scipy.weave.ext_tools
building extensions here: /home/bic/stever/.python21_compiled/4190480
building extensions here: /home/bic/stever/.python21_compiled/4190481
No test suite found for scipy.weave.wx_info
No test suite found for scipy.weave.common_info
No test suite found for scipy.weave.wx_spec
creating test suite for: scipy.weave.common_spec
No test suite found for scipy.weave.dumb_shelve
No test suite found for scipy.weave.base_spec
No test suite found for scipy.weave.conversion_code
No test suite found for scipy.weave.standard_array_info
creating test suite for: scipy.weave.size_check
No test suite found for scipy.weave.conversion_code_old
creating test suite for: scipy.weave.standard_array_spec
No test suite found for scipy.interpolate
No test suite found for scipy.signal
No test suite found for anneal
No test suite found for scipy.optimize.minpack
No test suite found for scipy.optimize.optimize
No test suite found for scipy.optimize.common_routines
creating test suite for: scipy.optimize.zeros
No test suite found for scipy.linalg.interface_gen
creating test suite for: scipy.linalg.blas
No test suite found for scipy.linalg.lapack
creating test suite for: scipy.linalg.basic
exceptions.ImportError: No module named cblas
No test suite found for scipy.linalg.flinalg
creating test suite for: scipy.linalg.decomp
creating test suite for: scipy.linalg.matfuncs
!! FAILURE building test for scipy.linalg.matfuncs
<string>:1: ImportError: No module named test_matfuncs (in ?)
Testing uniform
Testing stnorm
Testing norm
Testing lognorm
Testing expon
Testing beta
Testing power
Testing bradford
Testing burr
Testing fisk
Testing cauchy
Testing halfcauchy
Testing foldcauchy
Testing gamma
Testing gengamma
Testing loggamma
Testing alpha
Testing anglit
Testing arcsine
Testing betaprime
Testing erlang
Testing dgamma
Testing extreme3
Testing exponweib
Testing exponpow
Testing frechet
Testing gilbrat
Testing f
Testing ncf
Testing chi2
Testing chi
Testing nakagami
Testing genpareto
Testing genextreme
Testing genhalflogistic
Testing pareto
Testing lomax
Testing halfnorm
Testing halflogistic
Testing fatiguelife
Testing foldnorm
Testing ncx2
Testing t
Testing nct
Testing weibull
Testing dweibull
Testing maxwell
Testing rayleigh
Testing genlogistic
Testing logistic
Testing gumbel
Testing gompertz
Testing hypsecant
Testing laplace
Testing reciprocal
Testing triang
Testing tukeylambda
Ties preclude use of exact statistic.
Ties preclude use of exact statistic.
warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations
warning: specified build_dir '..' does not exist or is or is not writable. Trying default locations
warning: specified build_dir '_bad_path_' does not exist or is or is not writable. Trying default locations
warning: specified build_dir '..' does not exist or is or is not writable. Trying default locations
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 : 1.0000000000004949
cc.brenth : 0.9999999999990239
cc.brentq : 1.0000000000001117
----------------------------- err -----------------------------------
/home/bic/stever/irix-6/lib/python2.1/site-packages/scipy/linalg/lapack.py:24: UserWarning: exceptions.ImportError: No module named clapack
warnings.warn(clapack.__doc__)
/home/bic/stever/irix-6/lib/python2.1/site-packages/scipy/linalg/lapack.py:24: UserWarning: exceptions.ImportError: No module named clapack
warnings.warn(clapack.__doc__)
...................................................................F..................................................................................................................................................................................................................EE..........................................................................................................................F..FF......scopy:n=4
..scopy:n=3
....dcopy:n=4
..dcopy:n=3
....ccopy:n=4
..ccopy:n=3
....zcopy:n=4
..zcopy:n=3
.....saxpy:n=4
..saxpy:n=3
.....daxpy:n=4
..daxpy:n=3
.....caxpy:n=4
..caxpy:n=3
.....zaxpy:n=4
..zaxpy:n=3
...sscal:n=4
...dscal:n=4
...cscal:n=4
...zscal:n=4
....sswap:n=4
..sswap:n=3
....dswap:n=4
..dswap:n=3
....cswap:n=4
..cswap:n=3
....zswap:n=4
..zswap:n=3
..............................................................
======================================================================
ERROR: check_add_function_ordered (test_catalog.test_catalog)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/tests/test_catalog.py", line 286, in check_add_function_ordered
q.add_function('f',string.upper)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/catalog.py", line 575, in add_function
self.add_function_persistent(code,function)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/catalog.py", line 615, in add_function_persistent
module = getmodule(function)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/catalog.py", line 66, in getmodule
if mod and object in mod.__dict__.values():
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_distutils/misc_util.py", line 43, in __getattr__
raise self._info[0],self._info[1]
ImportError: No module named cblas
======================================================================
ERROR: Test persisting a function in the default catalog
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/tests/test_catalog.py", line 274, in check_add_function_persistent1
q.add_function_persistent('code',i)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/catalog.py", line 615, in add_function_persistent
module = getmodule(function)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/weave/catalog.py", line 66, in getmodule
if mod and object in mod.__dict__.values():
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_distutils/misc_util.py", line 43, in __getattr__
raise self._info[0],self._info[1]
ImportError: No module named cblas
======================================================================
FAIL: check_basic (test_morestats.test_shapiro)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/stats/tests/test_morestats.py", line 30, in check_basic
assert_almost_equal(w,0.90047299861907959,8)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_base/testing.py", line 283, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: 0.900472998619
ACTUAL: 0.900472760201
======================================================================
FAIL: check_asum (test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/linalg/tests/test_blas.py", line 59, in check_asum
assert_almost_equal(f([3,-4,5]),12)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_base/testing.py", line 283, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: 12
ACTUAL: 0.0
======================================================================
FAIL: check_dot (test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/linalg/tests/test_blas.py", line 66, in check_dot
assert_almost_equal(f([3,-4,5],[2,5,1]),-9)
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_base/testing.py", line 283, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: -9
ACTUAL: 0.0
======================================================================
FAIL: check_nrm2 (test_blas.test_fblas1_simple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/unstable/lib/python2.1/site-packages/scipy/linalg/tests/test_blas.py", line 75, in check_nrm2
assert_almost_equal(f([3,-4,5]),math.sqrt(50))
File "/usr/local/unstable/lib/python2.1/site-packages/scipy_base/testing.py", line 283, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
DESIRED: 7.07106781187
ACTUAL: 3.73560645334e+270
----------------------------------------------------------------------
Ran 559 tests in 11.403s
FAILED (failures=4, errors=2)
----------------------------------------------------------------------
Thanks,
-Steve
More information about the SciPy-Dev
mailing list