failing tests of 0.8.2 with python3.2 and numpy 1.7.1

Josh Warner silvertrumpet999 at gmail.com
Wed Jun 12 23:23:25 EDT 2013


The first three are inplace division casting errors supposedly fixed two 
years ago, according to the 4th and 5th posts in 
https://github.com/numpy/numpy/pull/99. Are you sure you're using NumPy 
1.7.1, not something older like 1.5.1? An older version might explain the 
other error as well (harder to pin down without the old/new shape tuples).

What does `import numpy; numpy.__version__` return using the same python 
you tried to build with?

On Wednesday, June 12, 2013 3:44:54 AM UTC-5, Stefan van der Walt wrote:
>
> Does anyone have a moment to look over these? 
>
> ---------- Forwarded message ---------- 
> From: Yaroslav Halchenko 
> Date: Tue, Jun 11, 2013 at 5:09 AM 
> Subject: failing tests of 0.8.2 with python3.2 and numpy 1.7.1 
>
> any of those look familiar? 
>
> ====================================================================== 
> ERROR: Test a scalar uint8 image 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/tests/test_exposure.py", 
>
> line 83, in test_adapthist_scalar 
>     adapted = exposure.equalize_adapthist(img, clip_limit=0.02) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 82, in equalize_adapthist 
>     out = _clahe(*args) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 142, in _clahe 
>     aLUT /= bin_size 
> TypeError: ufunc 'true_divide' output (typecode 'd') could not be 
> coerced to provided output parameter (typecode 'l') according to the 
> casting rule ''same_kind'' 
>
> ====================================================================== 
> ERROR: Test a grayscale float image 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/tests/test_exposure.py", 
>
> line 103, in test_adapthist_grayscale 
>     nbins=128) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 74, in equalize_adapthist 
>     new_l = _clahe(*args).astype(float) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 142, in _clahe 
>     aLUT /= bin_size 
> TypeError: ufunc 'true_divide' output (typecode 'd') could not be 
> coerced to provided output parameter (typecode 'l') according to the 
> casting rule ''same_kind'' 
>
> ====================================================================== 
> ERROR: Test an RGB color uint16 image 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/tests/test_exposure.py", 
>
> line 115, in test_adapthist_color 
>     adapted = exposure.equalize_adapthist(img, clip_limit=0.01) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 74, in equalize_adapthist 
>     new_l = _clahe(*args).astype(float) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/exposure/_adapthist.py", 
>
> line 142, in _clahe 
>     aLUT /= bin_size 
> TypeError: ufunc 'true_divide' output (typecode 'd') could not be 
> coerced to provided output parameter (typecode 'l') according to the 
> casting rule ''same_kind'' 
>
> ====================================================================== 
> ERROR: test_spath.test_basic 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/tests/test_spath.py", 
>
> line 11, in test_basic 
>     path, cost = spath.shortest_path(x) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/spath.py", 
>
> line 48, in shortest_path 
>     offsets = np.reshape(offset_indices, (arr.ndim, offset_size), 
> order='F').T 
>   File "/usr/local/lib/python3.2/dist-packages/numpy/core/fromnumeric.py", 
> line 172, in reshape 
>     return reshape(newshape, order=order) 
> ValueError: total size of new array must be unchanged 
>
> ====================================================================== 
> ERROR: test_spath.test_reach 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/tests/test_spath.py", 
>
> line 20, in test_reach 
>     path, cost = spath.shortest_path(x, reach=2) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/spath.py", 
>
> line 48, in shortest_path 
>     offsets = np.reshape(offset_indices, (arr.ndim, offset_size), 
> order='F').T 
>   File "/usr/local/lib/python3.2/dist-packages/numpy/core/fromnumeric.py", 
> line 172, in reshape 
>     return reshape(newshape, order=order) 
> ValueError: total size of new array must be unchanged 
>
> ====================================================================== 
> ERROR: test_spath.test_non_square 
> ---------------------------------------------------------------------- 
> Traceback (most recent call last): 
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 198, in runTest 
>     self.test(*self.arg) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/tests/test_spath.py", 
>
> line 30, in test_non_square 
>     path, cost = spath.shortest_path(x, reach=2) 
>   File 
> "/home/yoh/deb/gits/build-area/skimage-0.8.2/debian/tmp/usr/lib/python3/dist-packages/skimage/graph/spath.py", 
>
> line 48, in shortest_path 
>     offsets = np.reshape(offset_indices, (arr.ndim, offset_size), 
> order='F').T 
>   File "/usr/local/lib/python3.2/dist-packages/numpy/core/fromnumeric.py", 
> line 172, in reshape 
>     return reshape(newshape, order=order) 
> ValueError: total size of new array must be unchanged 
>
> ---------------------------------------------------------------------- 
> Ran 576 tests in 70.458s 
>
> -- 
> Yaroslav O. Halchenko, Ph.D. 
> http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org 
> Senior Research Associate,     Psychological and Brain Sciences Dept. 
> Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 
> Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419 
> WWW:   http://www.linkedin.com/in/yarik 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130612/dbf151f0/attachment.html>


More information about the scikit-image mailing list