[SciPy-user] Scipy.test() fails on Linux 64
Nils Wagner
nwagner at iam.uni-stuttgart.de
Sun Feb 17 12:08:47 EST 2008
On Sun, 17 Feb 2008 08:16:10 -0800 (PST)
LB <berthe.loic at gmail.com> wrote:
> The issue you mentioned concerns
> scipy.lib.tests.test_lapack.test_flapack_float,
> and if I understand correctly, this is due to too strict
>criteria and
> these
> failures are not significant.
>
> Concerning the other failures I reported earlier, I
>didn't find a
> clue :
>
> - concerning scipy.linalg.tests.test_decomp.test_eig,
>I didn't see
> any
> ticket. Besides, for these tests, the errors cannot
>be considered
> as
> unsignifiant.
>
> - concerning scipy.tests.test_odr.test_odr, I've seen
>three
> tickets (#357,
> #375 and #469) but I ouldn't see any solution.
>
> Did I miss something obvious or should I consider that
>building scipy
> 0.6 from
> the official tarball on a linux 64 is hopeless ?
>
> --
> LB
I am using the svn versions of numpy/scipy.
I cannot reproduce the test failures you have reported.
>>> scipy.__version__
'0.7.0.dev3946'
>>> import numpy
>>> numpy.__version__
'1.0.5.dev4807'
On a 32 bit system
scipy.test()
yields
======================================================================
ERROR: Failure: ImportError (cannot import name _bspline)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/nose/loader.py",
line 363, in loadTestsFromName
module = self.importer.importFromPath(
File
"/usr/lib/python2.4/site-packages/nose/importer.py", line
39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"/usr/lib/python2.4/site-packages/nose/importer.py", line
84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_bspline.py",
line 9, in ?
import scipy.stats.models.bspline as B
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/bspline.py",
line 23, in ?
from scipy.stats.models import _bspline
ImportError: cannot import name _bspline
======================================================================
ERROR: test_huber (test_scale.TestScale)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_scale.py",
line 35, in test_huber
m = scale.huber(X)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 82, in __call__
for donothing in self:
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 102, in next
scale = N.sum(subset * (a - mu)**2, axis=self.axis) /
(self.n * Huber.gamma - N.sum(1. - subset, axis=self.axis)
* Huber.c**2)
File
"/usr/lib/python2.4/site-packages/numpy/core/fromnumeric.py",
line 866, in sum
return sum(axis, dtype, out)
TypeError: only length-1 arrays can be converted to Python
scalars
======================================================================
ERROR: test_huberaxes (test_scale.TestScale)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_scale.py",
line 40, in test_huberaxes
m = scale.huber(X, axis=0)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 82, in __call__
for donothing in self:
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 102, in next
scale = N.sum(subset * (a - mu)**2, axis=self.axis) /
(self.n * Huber.gamma - N.sum(1. - subset, axis=self.axis)
* Huber.c**2)
File
"/usr/lib/python2.4/site-packages/numpy/core/fromnumeric.py",
line 866, in sum
return sum(axis, dtype, out)
TypeError: only length-1 arrays can be converted to Python
scalars
======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/testing/decorators.py",
line 83, in skipper
return f(*args, **kwargs)
File
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py",
line 25, in test_imresize
assert_equal(im1.shape,(11,22))
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 137, in assert_equal
assert_equal(len(actual),len(desired),err_msg,verbose)
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 145, in assert_equal
assert desired == actual, msg
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 2
======================================================================
FAIL: test1 (test_segment.TestSegment)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/ndimage/tests/test_segment.py",
line 21, in test1
assert_almost_equal(objects[7]['bLength'],
1215.70980000, 4)
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 158, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
ACTUAL: 1215.7023
DESIRED: 1215.7098000000001
======================================================================
FAIL: test2 (test_segment.TestSegment)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/ndimage/tests/test_segment.py",
line 31, in test2
assert_almost_equal(ROIList[7]['bLength'],
1215.70980000, 4)
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 158, in assert_almost_equal
assert round(abs(desired - actual),decimal) == 0, msg
AssertionError:
Items are not equal:
ACTUAL: 1215.7023
DESIRED: 1215.7098000000001
======================================================================
FAIL: test_namespace (test_formula.TestFormula)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_formula.py",
line 119, in test_namespace
self.assertEqual(xx.namespace, Y.namespace)
AssertionError: {} != {'Y': array([ 0, 2, 4, 6, 8, 10,
12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38,
40,
42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64,
66, 68, 70, 72, 74, 76, 78, 80, 82,
84, 86, 88, 90, 92, 94, 96, 98]), 'X': array([ 0,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49])}
----------------------------------------------------------------------
Ran 2044 tests in 117.724s
FAILED (failures=4, errors=3)
More information about the SciPy-User
mailing list