[SciPy-user] Test failures with latest SVN

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Jan 16 13:17:08 CST 2008


On Wed, 16 Jan 2008 11:24:36 +0000
  Robin <robince@gmail.com> wrote:
> Hi,
> 
> I am using Mac OS X 10.5.1 and recently updated to the 
>latest svn
> version. (an older version was already working ok on 
>leopard).
> I installed nose by hand. However I get a lot of errors 
>in the tests.
> 
> I have put the output here because it is quite long:
> http://pastebin.com/m58c1f6af
> Also at the end of the test there is a graphical window 
>with some
> random text in it, so I have to press ctrl-c to get out 
>of the python
> session.

Did you activate sandbox.lobpcg ?
A small test compares the spectrum computed by symeig
and lobpcg. The spectra are depicted in a plot.
  
  
> 
> I am not sure if this a mac issue or something wrong on 
>my system...
> 
> Robin
>
Hi Robin,

I have filed four tickets wrt recent test failures/errors.

http://projects.scipy.org/scipy/scipy/ticket/588
http://projects.scipy.org/scipy/scipy/ticket/587
http://projects.scipy.org/scipy/scipy/ticket/586
http://projects.scipy.org/scipy/scipy/ticket/584

BTW, there is another typo in the test output.


It should be

Hilbert transform of periodic functions

instead of

Tilbert transform of periodic functions
  

Cheers,

           Nils

======================================================================
ERROR: Test matrices giving some Nan generalized eigen 
values.
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py", 
line 156, in test_falker
     if all(isfinite(res[:, i])):
NameError: global name 'all' is not defined

======================================================================
ERROR: Test singular pair
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/linalg/tests/test_decomp.py", 
line 132, in test_singular
     if all(isfinite(res[:, i])):
NameError: global name 'all' is not defined

======================================================================
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

======================================================================
ERROR: Failure: ImportError (No module named convolve)
----------------------------------------------------------------------
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/stsci/image/__init__.py", 
line 2, in ?
     from _image import *
   File 
"/usr/lib/python2.4/site-packages/scipy/stsci/image/_image.py", 
line 2, in ?
     import convolve
ImportError: No module named convolve

======================================================================
ERROR: test_access_set_speed 
(test_scxx_sequence._TestSequenceBase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_sequence.py", 
line 162, in test_access_set_speed
     a = self.seq_type([0]) * N
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_access_speed 
(test_scxx_sequence._TestSequenceBase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_sequence.py", 
line 131, in test_access_speed
     a = self.seq_type([0]) * N
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: test_conversion 
(test_scxx_sequence._TestSequenceBase)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_sequence.py", 
line 28, in test_conversion
     a = self.seq_type([1])
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: Test the "count" method for lists.  We'll assume
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_sequence.py", 
line 97, in test_count
     a = self.seq_type([1,2,'alpha',3.1416])
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: Test the "in" method for lists.  We'll assume
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_sequence.py", 
line 44, in test_in
     a = self.seq_type([1,2,'alpha',3.1416])
TypeError: 'NoneType' object is not callable

======================================================================
ERROR: no_test_no_check_return 
(test_wx_spec.TestWxConverter)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_wx_spec.py", 
line 104, in no_test_no_check_return
     mod.compile()
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/ext_tools.py", 
line 365, in compile
     verbose = verbose, **kw)
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/build_tools.py", 
line 271, in build_extension
     setup(name = module_name, ext_modules = 
[ext],verbose=verb)
   File 
"/usr/lib/python2.4/site-packages/numpy/distutils/core.py", 
line 178, in setup
     return old_setup(**new_attr)
   File "/usr/lib/python2.4/distutils/core.py", line 166, 
in setup
     raise SystemExit, "error: " + str(msg)
CompileError: error: Command "g++ -pthread 
-fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686 
-fmessage-length=0 -g -fPIC 
-I/usr/lib/python2.4/site-packages/scipy/weave 
-I/usr/lib/python2.4/site-packages/scipy/weave/scxx 
-I/usr/lib/python2.4/site-packages/numpy/core/include 
-I/usr/include/python2.4 -c /home/nwagner/wx_return.cpp -o 
/tmp/nwagner/python24_intermediate/compiler_dc4fe17de7765fced0d869942e4ccabc/home/nwagner/wx_return.o" 
failed with exit status 1

======================================================================
ERROR: test_var_in (test_wx_spec.TestWxConverter)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_wx_spec.py", 
line 63, in test_var_in
     mod.compile()
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/ext_tools.py", 
line 365, in compile
     verbose = verbose, **kw)
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/build_tools.py", 
line 271, in build_extension
     setup(name = module_name, ext_modules = 
[ext],verbose=verb)
   File 
"/usr/lib/python2.4/site-packages/numpy/distutils/core.py", 
line 178, in setup
     return old_setup(**new_attr)
   File "/usr/lib/python2.4/distutils/core.py", line 166, 
in setup
     raise SystemExit, "error: " + str(msg)
CompileError: error: Command "g++ -pthread 
-fno-strict-aliasing -DNDEBUG -O2 -march=i586 -mcpu=i686 
-fmessage-length=0 -g -fPIC 
-I/usr/lib/python2.4/site-packages/scipy/weave 
-I/usr/lib/python2.4/site-packages/scipy/weave/scxx 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include 
-I/usr/lib/python2.4/site-packages/numpy/core/include 
-I/usr/include/python2.4 -c /home/nwagner/wx_var_in.cpp -o 
/tmp/nwagner/python24_intermediate/compiler_dc4fe17de7765fced0d869942e4ccabc/home/nwagner/wx_var_in.o 
-I/usr/lib/wx/include/gtk2-unicode-release-2.5 
-I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES 
-I/usr/lib/wx/include/gtk2-unicode-release-2.5 
-I/usr/include/wx-2.5 -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" failed with exit 
status 1

======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py", 
line 24, 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: Test generator for parametric tests
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py", 
line 36, in tst_fromimage
     assert img.min() >= imin
AssertionError

======================================================================
FAIL: Test generator for parametric tests
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py", 
line 36, in tst_fromimage
     assert img.min() >= imin
AssertionError

======================================================================
FAIL: Test generator for parametric tests
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/lib/python2.4/site-packages/nose/case.py", 
line 203, in runTest
     self.test(*self.arg)
   File 
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py", 
line 36, in tst_fromimage
     assert img.min() >= imin
AssertionError

======================================================================
FAIL: test_DAD (test_sa.TestSASolverPerformance)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/sandbox/multigrid/tests/test_sa.py", 
line 234, in test_DAD
     assert(avg_convergence_ratio < 0.2)
AssertionError

======================================================================
FAIL: test_char_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 120, in test_char_fail
     self.generic_get('return_val = a["c"];')
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_obj_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 147, in test_obj_fail
     self.generic_get(code,['a'])
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_set_complex 
(test_scxx_object.TestObjectSetItemOpKey)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_object.py", 
line 865, in test_set_complex
     assert_equal(sys.getrefcount(key),4) # should be 3
   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: 3
  DESIRED: 4

======================================================================
FAIL: test_char_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 120, in test_char_fail
     self.generic_get('return_val = a["c"];')
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_obj_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 147, in test_obj_fail
     self.generic_get(code,['a'])
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_set_complex 
(test_scxx_object.TestObjectSetItemOpKey)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_object.py", 
line 865, in test_set_complex
     assert_equal(sys.getrefcount(key),4) # should be 3
   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: 3
  DESIRED: 4

======================================================================
FAIL: test_char_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 120, in test_char_fail
     self.generic_get('return_val = a["c"];')
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_obj_fail (test_scxx_dict.TestDictGetItemOp)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 147, in test_obj_fail
     self.generic_get(code,['a'])
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_dict.py", 
line 108, in generic_get
     assert res == a['b']
AssertionError

======================================================================
FAIL: test_set_complex 
(test_scxx_object.TestObjectSetItemOpKey)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/usr/lib/python2.4/site-packages/scipy/weave/tests/test_scxx_object.py", 
line 865, in test_set_complex
     assert_equal(sys.getrefcount(key),4) # should be 3
   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: 3
  DESIRED: 4

----------------------------------------------------------------------
Ran 2622 tests in 731.459s

FAILED (failures=14, errors=13)


More information about the SciPy-user mailing list