conda-forge / vigra-feedstock

A conda-smithy repository for vigra.
BSD 3-Clause "New" or "Revised" License
0 stars 14 forks source link

Rebuild for python310 #80

Closed regro-cf-autotick-bot closed 2 years ago

regro-cf-autotick-bot commented 2 years ago

This PR has been triggered in an effort to update python310.

Notes and instructions for merging this PR:

  1. Please merge the PR only after the tests have passed.
  2. Feel free to push to the bot's branch to update this PR if needed.

Please note that if you close this PR we presume that the feedstock has been rebuilt, so if you are going to perform the rebuild yourself don't close this PR until the your rebuild has been merged.

This package has the following downstream children:

And potentially more.

If this PR was opened in error or needs to be updated please add the bot-rerun label to this PR. The bot will close this PR and schedule another one. If you do not have permissions to add this label, you can use the phrase code>@<space/conda-forge-admin, please rerun bot in a PR comment to have the conda-forge-admin add it for you.

This PR was created by the regro-cf-autotick-bot. The regro-cf-autotick-bot is a service to automatically track the dependency graph, migrate packages, and propose package version updates for conda-forge. If you would like a local version of this bot, you might consider using rever. Rever is a tool for automating software releases and forms the backbone of the bot's conda-forge PRing capability. Rever is both conda (conda install -c conda-forge rever) and pip (pip install re-ver) installable. Finally, feel free to drop us a line if there are any issues! This PR was generated by https://github.com/regro/autotick-bot/actions/runs/1439857595, please use this URL for debugging

conda-forge-linter commented 2 years ago

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

k-dominik commented 2 years ago

phew, I guess we'll have to add patches 987 and 988 here ;)

there are two types of errors happening:

First one is genuine Python 3.10 update related:

======================================================================
ERROR: test_arraytypes.testImage1
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/arraytypes.py", line 1263, in __getitem__
    res = numpy.ndarray.__getitem__(self, index)
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.10/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/test/test_arraytypes.py", line 562, in testImage1
    checkArray(arraytypes.Image, 1, 2)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/test/test_arraytypes.py", line 174, in checkArray
    assert_equal(img.view5D('F').axistags, axistags5)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/arraytypes.py", line 1145, in view5D
    return self[index].transposeToOrder(order)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/arraytypes.py", line 1265, in __getitem__
    if not isinstance(index, collections.Iterable):
AttributeError: module 'collections' has no attribute 'Iterable'

which can be fixed by using collections.abc.Iterable.

And the second one that comes from testing on numpy 1.21:

not having looked into it much I have the feeling it might be related to numpy changing it's handling of builtin dtypes...

======================================================================
ERROR: test3.test_multiconvolution
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_place/lib/python3.10/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/test/test3.py", line 123, in test_multiconvolution
    checkAboutSame(a, b)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/test/test3.py", line 78, in checkAboutSame
    difference=np.sum(np.abs(i1-i2))/float(np.size(i1))
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/arraytypes.py", line 1706, in __sub__
    return ufunc.subtract(self, other)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/ufunc.py", line 296, in __call__
    o = outClass(shape, dtype=out_dtype, order='C', axistags=axistags, init=False)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/vigranumpy/vigra/arraytypes.py", line 535, in __new__
    res = _constructArrayFromOrder(cls, obj, dtype, order, init)
  File "/home/conda/feedstock_root/build_artifacts/vigra_1636473748169/work/build/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)

don't know right away how to fix it.

regro-cf-autotick-bot commented 2 years ago

I see that this PR has conflicts, and I'm the only committer. I'm going to close this PR and will make another one as appropriate. This was generated by https://github.com/regro/autotick-bot/actions/runs/1545933929