Bug#849196: Sometimes, supress_warnings misses one of its attributes
Package: src:python-numpy
Severity: serious
Version: 1:1.12.0~b1-1
X-Debbugs-Cc: debian-science@lists.debian.org
Forwarded: https://github.com/numpy/numpy/issues/8413
Affects: src:skimage
When trying to compile skimage, I sometimes get the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File
"/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/transform/tests/test_integral.py",
line 46, in test_vectorized_integrate
assert_equal(expected, integrate(s, r0, c0, r1, c1)) # test deprecated
File
"/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/transform/integral.py",
line 86, in integrate
warn("The syntax 'integrate(ii, r0, c0, r1, c1)' is "
File
"/build/skimage-0.12.3/debian/tmp/usr/lib/python2.7/dist-packages/skimage/_shared/_warnings.py",
line 16, in warn
warnings.warn(message, stacklevel=stacklevel)
File "/usr/lib/python2.7/dist-packages/numpy/testing/utils.py", line
2199, in _showwarning
self._orig_show(message, category, filename, lineno,
AttributeError: 'suppress_warnings' object has no attribute '_orig_show'
or
ERROR: test suite for <module 'skimage.transform.tests' from
'/build/skimage-0.12.3/debian/tmp/usr/lib/python3/dist-packages/skimage/transform/tests/__init__.py'>
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/suite.py", line 229, in run
self.tearDown()
File "/usr/lib/python3/dist-packages/nose/suite.py", line 352, in tearDown
self.teardownContext(ancestor)
File "/usr/lib/python3/dist-packages/nose/suite.py", line 368, in
teardownContext
try_run(context, names)
File "/usr/lib/python3/dist-packages/nose/util.py", line 453, in try_run
inspect.getargspec(func)
File "/usr/lib/python3.5/inspect.py", line 1040, in getargspec
stacklevel=2)
File "/usr/lib/python3/dist-packages/numpy/testing/utils.py", line
2199, in _showwarning
self._orig_show(message, category, filename, lineno,
AttributeError: 'suppress_warnings' object has no attribute '_orig_show'
Reply to: