This sort of stuff keeps popping up (see latest issues) because a lot of functions have moved to use memory views. If you do a `make clean` and then try again, it should work.


On Mon, Aug 5, 2013 at 7:51 PM, Guillaume Gay <guillaume@mitotic-machine.org> wrote:

Hi every one,

I encountered a bug when importing peak_local_max (with the latest github version). The traceback goes up to feature.template. Running test_template.py gives this:

python /usr/local/src/scikit-image/skimage/feature/tests/test_template.py
Traceback (most recent call last):
  File "/usr/local/src/scikit-image/skimage/feature/tests/test_template.py", line 5, in <module>
    from skimage.feature import match_template, peak_local_max
  File "/usr/local/lib/python2.7/dist-packages/scikit_image-0.9dev-py2.7-linux-i686.egg/skimage/feature/__init__.py", line 9, in <module>
    from .template import match_template
  File "/usr/local/lib/python2.7/dist-packages/scikit_image-0.9dev-py2.7-linux-i686.egg/skimage/feature/template.py", line 4, in <module>
    from . import _template
  File "_template.pyx", line 1, in init skimage.feature._template (skimage/feature/_template.c:4042)
TypeError: C function skimage._shared.transform.integrate has wrong signature (expected float (PyArrayObject *, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t), got float (__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t))

Any hint how to fix this?

Cheers,

Guillaume

--
You received this message because you are subscribed to the Google Groups "scikit-image" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.