[SciPy-Dev] scipy test errors

Nils Wagner nils106 at googlemail.com
Sat Dec 22 09:10:51 EST 2012


>>> scipy.test()
Running unit tests for scipy
NumPy version 1.8.0.dev-3abd869
NumPy is installed in
/home/nwagner/local/lib64/python2.7/site-packages/numpy
SciPy version 0.12.0.dev-785491c
SciPy is installed in
/home/nwagner/local/lib64/python2.7/site-packages/scipy
Python version 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC]
nose version 1.1.2

======================================================================
ERROR: test_interpolate.TestInterp1D.test_bounds
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 257, in test_bounds
    self._bounds_check(kind)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 224, in _bounds_check
    extrap10(11.2),
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: test_interpolate.TestInterp1D.test_complex
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 349, in test_complex
    self._check_complex(np.complex64, kind)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 337, in _check_complex
    assert_array_almost_equal(y[:-1], c(x)[:-1])
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: Check the actual implementation of spline interpolation.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 177, in test_cubic
    interp10(self.x10),
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: test_interpolate.TestInterp1D.test_nd
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 327, in test_nd
    self._nd_check_interp(kind)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_interpolate.py",
line 267, in _nd_check_interp
    interp10(np.array([[3., 5.], [2., 7.]])),
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: test_ndgriddata.TestGriddata.test_1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_ndgriddata.py",
line 73, in test_1d
    assert_allclose(griddata(x, y, x, method=method), y,
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/ndgriddata.py",
line 178, in griddata
    return ip(xi)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: test_ndgriddata.TestGriddata.test_1d_unsorted
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/tests/test_ndgriddata.py",
line 85, in test_1d_unsorted
    assert_allclose(griddata(x, y, x, method=method), y,
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/ndgriddata.py",
line 178, in griddata
    return ip(xi)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 419, in __call__
    y_new = self._call(x_new)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 395, in _call_spline
    result = spleval(self._spline,x_new.ravel())
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/interpolate/interpolate.py",
line 852, in spleval
    for index in np.ndindex(*sh):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: __array_interface__ shape must be at least size 1

======================================================================
ERROR: test_kdtree.test_vectorization.test_vectorized_query
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
line 159, in test_vectorized_query
    d, i = self.kdtree.query(np.zeros((2,4,3)))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
line 434, in query
    for c in np.ndindex(retshape):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: an integer is required

======================================================================
ERROR: test_kdtree.test_vectorization.test_vectorized_query_all_neighbors
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
line 187, in test_vectorized_query_all_neighbors
    d, i =
self.kdtree.query(np.zeros((2,4,3)),k=None,distance_upper_bound=1.1)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
line 434, in query
    for c in np.ndindex(retshape):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: an integer is required

======================================================================
ERROR:
test_kdtree.test_vectorization.test_vectorized_query_multiple_neighbors
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
line 175, in test_vectorized_query_multiple_neighbors
    d, i = self.kdtree.query(np.zeros((2,4,3)),k=kk)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
line 434, in query
    for c in np.ndindex(retshape):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: an integer is required

======================================================================
ERROR: test_kdtree.test_random_ball_vectorized
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
line 332, in test_random_ball_vectorized
    r = T.query_ball_point(np.random.randn(2,3,m),1)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/kdtree.py",
line 544, in query_ball_point
    for c in np.ndindex(retshape):
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: an integer is required

======================================================================
ERROR: test_kdtree.test_random_ball_vectorized_compiled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/scipy/spatial/tests/test_kdtree.py",
line 342, in test_random_ball_vectorized_compiled
    r = T.query_ball_point(np.random.randn(2,3,m),1)
  File "ckdtree.pyx", line 1399, in
scipy.spatial.ckdtree.cKDTree.query_ball_point
(scipy/spatial/ckdtree.c:11875)
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/index_tricks.py",
line 536, in __init__
    x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py",
line 28, in as_strided
    return np.asarray(DummyArray(interface, base=x))
  File
"/home/nwagner/local/lib64/python2.7/site-packages/numpy/core/numeric.py",
line 324, in asarray
    return array(a, dtype, copy=False, order=order)
TypeError: an integer is required

----------------------------------------------------------------------
Ran 5744 tests in 166.233s

FAILED (KNOWNFAIL=15, SKIP=28, errors=11)


On Sat, Dec 22, 2012 at 9:22 AM, Ralf Gommers <ralf.gommers at gmail.com>wrote:

>
>
>
> On Sat, Dec 22, 2012 at 2:09 AM, Skipper Seabold <jsseabold at gmail.com>wrote:
>
>> On Fri, Dec 21, 2012 at 2:51 PM, Ralf Gommers <ralf.gommers at gmail.com>
>> wrote:
>> >
>> >
>> >
>> > On Fri, Dec 21, 2012 at 4:19 PM, Skipper Seabold <jsseabold at gmail.com>
>> > wrote:
>> >>
>> >> On Fri, Dec 21, 2012 at 4:39 AM, Pauli Virtanen <pav at iki.fi> wrote:
>> >> > Skipper Seabold <jsseabold <at> gmail.com> writes:
>> >> > [clip]
>> >> >> http://projects.scipy.org/scipy/ticket/1796
>> >> >>
>> >> >> But I installed master numpy/scipy yesterday on a new system, and
>> I'm
>> >> >> also experience a large number of errors. Not all the same as listed
>> >> >> on the ticket.
>> >> >>
>> >> >> FAILED (KNOWNFAIL=17, SKIP=37, errors=48)
>> >> >>
>> >> >> Test output attached.
>> >> >
>> >> > I think all these are due to changes made in Numpy master,
>> >> > with an older Numpy version (e.g. 1.6.2) all of them should go away.
>> >> >
>> >>
>> >> That's what I figured. I submitted a PR for the indexing with a float.
>> >> Not sure why the deprecation warnings raised errors though. Don't
>> >> recall seeing this before. Maybe some configuration that I've
>> >> overlooked?
>> >>
>> >> I was curious if the problems coming from as_strided were a numpy
>> >> problem. Similarly, I get these errors with numpy 1.7.0b2
>> >
>> >
>> > These should be fixed with the latest numpy 1.7.x branch. If not, please
>> > open a new numpy issue.
>>
>> Can confirm that they go away with this branch and see the discussion
>> now. Is the idea that these will end up back in master?
>
>
> It should be fixed in master, but I'm not exactly sure how or when.
>
> Ralf
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20121222/16a6e77a/attachment.html>


More information about the SciPy-Dev mailing list