Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check error: Python argument types ... did not match C++ signature #503

Open
ametzler opened this issue Dec 28, 2021 · 2 comments
Open

Comments

@ametzler
Copy link

Hello,

Building GIT head (or 1.11.1) on up to date Debian (boost 1.74, python3-dev 3.9.8-1) yields a long list of similar errors on make check.

ERROR: test1.test_MinimaMaxima
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/dev/shm/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/test/test1.py", line 173, in test_MinimaMaxima
    res = localMinima3D(1-data,neighborhood=26)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 1697, in __rsub__
    return ufunc.subtract(other, self)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/ufunc.py", line 296, in __call__
    o = outClass(shape, dtype=out_dtype, order='C', axistags=axistags, init=False)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 535, in __new__
    res = _constructArrayFromOrder(cls, obj, dtype, order, init)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 287, in _constructArrayFromOrder
    return _constructArrayFromAxistags(cls, shape, dtype, axistags, init)
Boost.Python.ArgumentError: Python argument types in
    vigra.vigranumpycore.constructArrayFromAxistags(type, tuple, numpy.dtype[float32], AxisTags, bool)
did not match C++ signature:
    constructArrayFromAxistags(boost::python::api::object, vigra::ArrayVector<long, std::allocator<long> >, NPY_TYPES, vigra::AxisTags, bool)

======================================================================
ERROR: test2.test_resize
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/dev/shm/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/test/test2.py", line 94, in test_resize
    checkAboutSame(i2,image)
  File "/dev/shm/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/test/test2.py", line 63, in checkAboutSame
    difference=np.sum(np.abs(i1-i2))/float(np.size(i1))
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 1706, in __sub__
    return ufunc.subtract(self, other)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/ufunc.py", line 296, in __call__
    o = outClass(shape, dtype=out_dtype, order='C', axistags=axistags, init=False)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 535, in __new__
    res = _constructArrayFromOrder(cls, obj, dtype, order, init)
  File "/tmp/VIGRA/vigra/obj.x86_64-linux-gnu/vigranumpy/vigra/arraytypes.py", line 287, in _constructArrayFromOrder
    return _constructArrayFromAxistags(cls, shape, dtype, axistags, init)
Boost.Python.ArgumentError: Python argument types in
    vigra.vigranumpycore.constructArrayFromAxistags(type, tuple, numpy.dtype[float32], AxisTags, bool)
did not match C++ signature:
    constructArrayFromAxistags(boost::python::api::object, vigra::ArrayVector<long, std::allocator<long> >, NPY_TYPES, vigra::AxisTags, bool)
[...]

cu Andreas

@ametzler
Copy link
Author

ametzler commented Jan 8, 2022

23ad778 from #501 lets the build go a little bit further.

@ArchangeGabriel
Copy link

Can confirm both the issue and the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants