#12832: Bug in scipy on power7
----------------------------+-----------------------------------------------
Reporter: fbissey | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: packages | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
----------------------------+-----------------------------------------------
Comment (by fbissey):
I think they may be both upstream problems. I have tried to run test on a
stock scipy-0.10.0 on power7 and several results indicate that at least
some of the problems are in scipy itself
{{{
ERROR: test_linear_1d (test_fitpack.TestUnivariateSpline)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_fitpack.py",
line 49, in test_linear_1d
assert_array_almost_equal(lut([1,1.5,2]),[0,1,2])
File "scipy/interpolate/fitpack2.py", line 221, in __call__
return fitpack.splev(x, self._eval_args, der=nu)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_linear_constant (test_fitpack.TestUnivariateSpline)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_fitpack.py",
line 29, in test_linear_constant
assert_array_almost_equal(lut([1,1.5,2]),[3,3,3])
File "scipy/interpolate/fitpack2.py", line 221, in __call__
return fitpack.splev(x, self._eval_args, der=nu)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_preserve_shape (test_fitpack.TestUnivariateSpline)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_fitpack.py",
line 36, in test_preserve_shape
assert_equal(shape(arg), shape(lut(arg)))
File "scipy/interpolate/fitpack2.py", line 221, in __call__
return fitpack.splev(x, self._eval_args, der=nu)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: Regression test for #1375.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_fitpack.py",
line 82, in test_resize_regression
assert_allclose(spl([0.1, 0.5, 0.9, 0.99]), desired, atol=5e-4)
File "scipy/interpolate/fitpack2.py", line 221, in __call__
return fitpack.splev(x, self._eval_args, der=nu)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'qhull')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/pkg/python/version/lib/python2.7/site-
packages/nose-1.1.2-py2.7.egg/nose/loader.py", line 390, in
loadTestsFromName
addr.filename, addr.module)
File "/usr/local/pkg/python/version/lib/python2.7/site-
packages/nose-1.1.2-py2.7.egg/nose/importer.py", line 39, in
importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/local/pkg/python/version/lib/python2.7/site-
packages/nose-1.1.2-py2.7.egg/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_interpnd.py",
line 6, in <module>
import scipy.spatial.qhull as qhull
AttributeError: 'module' object has no attribute 'qhull'
======================================================================
ERROR: test_interp2d (test_interpolate.TestInterp2D)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_interpolate.py",
line 14, in test_interp2d
I = interp2d(x, y, z)
File "scipy/interpolate/interpolate.py", line 160, in __init__
self.tck = fitpack.bisplrep(self.x, self.y, self.z, kx=kx, ky=ky,
s=0.)
File "scipy/interpolate/fitpack.py", line 873, in bisplrep
tx,ty,nxest,nyest,wrk,lwrk1,lwrk2)
ValueError: negative dimensions are not allowed
======================================================================
ERROR: test_interp2d_meshgrid_input (test_interpolate.TestInterp2D)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_interpolate.py",
line 25, in test_interp2d_meshgrid_input
I = interp2d(x, y, z)
File "scipy/interpolate/interpolate.py", line 160, in __init__
self.tck = fitpack.bisplrep(self.x, self.y, self.z, kx=kx, ky=ky,
s=0.)
File "scipy/interpolate/fitpack.py", line 873, in bisplrep
tx,ty,nxest,nyest,wrk,lwrk1,lwrk2)
ValueError: negative dimensions are not allowed
======================================================================
ERROR: test_construction (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_derivative (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_derivatives (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_incremental (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_scalar (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_shapes_scalarvalue (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_shapes_scalarvalue_derivative (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_shapes_vectorvalue (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_shapes_vectorvalue_1d (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_shapes_vectorvalue_derivative (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_vector (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: test_wrapper (test_polyint.CheckPiecewise)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_polyint.py",
line 194, in setUp
self.spline_ys = splev(self.test_xs, self.tck)
File "scipy/interpolate/fitpack.py", line 550, in splev
raise ValueError("Invalid input data")
ValueError: Invalid input data
======================================================================
ERROR: Ticket #629
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/hpc/scratch/frb15/work/scipy-0.10.0/test/lib/python/scipy/interpolate/tests/test_regression.py",
line 11, in test_spalde_scalar_input
res = interp.spalde(np.float64(1), tck)
File "scipy/interpolate/fitpack.py", line 724, in spalde
raise TypeError("Invalid input data. t(k)<=x<=t(n-k+1) must hold.")
TypeError: Invalid input data. t(k)<=x<=t(n-k+1) must hold.
======================================================================
}}}
There are more error linked to failures to import modules which may be
more related to the way test were run. As in the doctest a number of
improper parameters or invalid data and negative dimensions problems.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12832#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.