Bug#917353: [python3-skimage] Cannot import skimage with new numpy
Ole Streicher
olebole at debian.org
Wed Dec 26 13:12:36 GMT 2018
Package: python3-skimage
Version: 0.14.1-2
Severity: serious
Affects: python3-ccdproc, python3-hipspy, python3-sunpy
Tags: patch
Control: forwarded -1 https://github.com/scikit-image/scikit-image/issues/3551
$ python3
Python 3.7.2rc1 (default, Dec 12 2018, 06:25:49)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import skimage
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3/dist-packages/skimage/__init__.py", line 167, in <module>
from .util.dtype import (img_as_float32,
File "/usr/lib/python3/dist-packages/skimage/util/__init__.py", line 8, in <module>
from .arraycrop import crop
File "/usr/lib/python3/dist-packages/skimage/util/arraycrop.py", line 8, in <module>
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths' from 'numpy.lib.arraypad' (/usr/lib/python3/dist-packages/numpy/lib/arraypad.py)
This happens in the CI tests on a number of packages after the update of numpy (see "Affects").
Since `_validate_lengths` is an internal identifies by Python convention, the bug is clearly in skimage.
It is resolved in
https://github.com/scikit-image/scikit-image/pull/3556
For convenience, a patch is attached.
Cheers
Ole
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Handle-deprecation-of-numpy-_validate_lengths.patch
Type: text/x-patch
Size: 1590 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20181226/3a43647b/attachment-0001.bin>
More information about the debian-science-maintainers
mailing list