[SciPy-dev] scipy.test() errors/failures

Pauli Virtanen pav@iki...
Fri Dec 5 03:00:26 CST 2008


Thu, 04 Dec 2008 20:55:14 +0100, Nils Wagner wrote:

> Hi all,
> 
> Can someone reproduce these errors/failures ? I am using
> 
>>>> scipy.__version__
> '0.7.0.dev5221'
>>>> numpy.__version__
> '1.3.0.dev6136'
> 
> 
> ======================================================================
> ERROR: Testing that kmeans2 init methods work.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>    File
> "/usr/lib/python2.4/site-packages/scipy/cluster/tests/test_vq.py", line
> 147, in test_kmeans2_init
>      data = data.reshape((200, 2))
> ValueError: total size of new array must be unchanged
[clip]

I think this is a locale issue. Try running

	LC_ALL=C python -c 'import scipy; scipy.test()'

and checking if the errors go away.

Relevant tickets:

	http://scipy.org/scipy/numpy/ticket/884
	http://scipy.org/scipy/numpy/ticket/909

and a duplicate (of 884):

	http://scipy.org/scipy/numpy/ticket/902

-- 
Pauli Virtanen



More information about the Scipy-dev mailing list