Thanks for reporting this. There are 3 errors and 2 failures in the tests in that build, the TypeError: "'numpy.float64' object cannot be interpreted as an index" (3) points to being another problem with numpy 1.12.0.
1) <cut> ERROR: test_infer_shape (theano.sparse.tests.test_sp2.BinomialTester) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/theano/sparse/tests/test_sp2.py", line 100, in test_infer_shape self.op_class) File "/<<PKGBUILDDIR>>/theano/tests/unittest_tools.py", line 251, in _compile_and_check numeric_outputs = outputs_function(*numeric_inputs) File "/<<PKGBUILDDIR>>/theano/compile/function_module.py", line 871, in __call__ storage_map=getattr(self.fn, 'storage_map', None)) File "/<<PKGBUILDDIR>>/theano/gof/link.py", line 314, in raise_with_op reraise(exc_type, exc_value, exc_trace) File "/<<PKGBUILDDIR>>/theano/compile/function_module.py", line 859, in __call__ outputs = self.fn() File "/<<PKGBUILDDIR>>/theano/gof/op.py", line 912, in rval r = p(n, [x[0] for x in i], o) File "/<<PKGBUILDDIR>>/theano/sparse/sandbox/sp2.py", line 125, in perform binomial = numpy.random.binomial(n, p, size=shape) File "mtrand.pyx", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:31661) TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe' Apply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float64, scalar)>, <TensorType(float64, scalar)>, <TensorType(int64, vector)>) Toposort index: 0 Inputs types: [TensorType(float64, scalar), TensorType(float64, scalar), TensorType(int64, vector)] Inputs shapes: [(), (), (2,)] Inputs strides: [(), (), (8,)] Inputs values: [array(5.0), array(0.25), array([3, 5])] Outputs clients: [['output']] Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer): File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run test(orig) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/unittest/case.py", line 393, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/unittest/case.py", line 329, in run testMethod() File "/<<PKGBUILDDIR>>/theano/sparse/tests/test_sp2.py", line 98, in test_infer_shape [Binomial(sp_format, o_type)(*self.inputs)], HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node. </cut> 2) <cut> RROR: test_op (theano.sparse.tests.test_sp2.BinomialTester) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/theano/sparse/tests/test_sp2.py", line 85, in test_op tested = f(*self._inputs) File "/<<PKGBUILDDIR>>/theano/compile/function_module.py", line 871, in __call__ storage_map=getattr(self.fn, 'storage_map', None)) File "/<<PKGBUILDDIR>>/theano/gof/link.py", line 314, in raise_with_op reraise(exc_type, exc_value, exc_trace) File "/<<PKGBUILDDIR>>/theano/compile/function_module.py", line 859, in __call__ outputs = self.fn() File "/<<PKGBUILDDIR>>/theano/gof/op.py", line 912, in rval r = p(n, [x[0] for x in i], o) File "/<<PKGBUILDDIR>>/theano/sparse/sandbox/sp2.py", line 125, in perform binomial = numpy.random.binomial(n, p, size=shape) File "mtrand.pyx", line 3764, in mtrand.RandomState.binomial (numpy/random/mtrand/mtrand.c:31661) TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe' Apply node that caused the error: Binomial{format='csc', dtype='float64'}(<TensorType(float64, scalar)>, <TensorType(float64, scalar)>, <TensorType(int64, vector)>) Toposort index: 0 Inputs types: [TensorType(float64, scalar), TensorType(float64, scalar), TensorType(int64, vector)] Inputs shapes: [(), (), (2,)] Inputs strides: [(), (), (8,)] Inputs values: [array(5.0), array(0.25), array([3, 5])] Outputs clients: [['output']] Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer): File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 177, in __call__ return self.run(*arg, **kw) File "/usr/lib/python2.7/dist-packages/nose/suite.py", line 224, in run test(orig) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 45, in __call__ return self.run(*arg, **kwarg) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 133, in run self.runTest(result) File "/usr/lib/python2.7/dist-packages/nose/case.py", line 151, in runTest test(result) File "/usr/lib/python2.7/unittest/case.py", line 393, in __call__ return self.run(*args, **kwds) File "/usr/lib/python2.7/unittest/case.py", line 329, in run testMethod() File "/<<PKGBUILDDIR>>/theano/sparse/tests/test_sp2.py", line 83, in test_op Binomial(sp_format, o_type)(*self.inputs)) </cut> 3) <cut> ERROR: test_bincountFn (theano.tensor.tests.test_extra_ops.TestBinCountOp) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_extra_ops.py", line 160, in test_bincountFn assert (ref(a) == f1(a)).all() File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_extra_ops.py", line 146, in ref out = np.zeros(size, dtype=a.dtype) TypeError: 'numpy.float64' object cannot be interpreted as an index </cut> 4) <cut> FAIL: test_c (theano.tensor.tests.test_elemwise.test_CAReduce) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_elemwise.py", line 524, in test_c self.with_linker(gof.CLinker(), scalar.and_, dtype=dtype) File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_elemwise.py", line 455, in with_linker (f_xv, zv, xsh, tosum)) AssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1]) </cut> 5) <cut> FAIL: test_perform (theano.tensor.tests.test_elemwise.test_CAReduce) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_elemwise.py", line 489, in test_perform self.with_linker(gof.PerformLinker(), scalar.and_, dtype=dtype) File "/<<PKGBUILDDIR>>/theano/tensor/tests/test_elemwise.py", line 455, in with_linker (f_xv, zv, xsh, tosum)) AssertionError: (array(1, dtype=int8), array(-1, dtype=int8), (5, 0), [0, 1]) </cut> DS -- 4096R/DF5182C8 Debian Developer (sten...@debian.org) LPIC-1 (LPI000329859 64mz6f7kt4) http://www.danielstender.com/