<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font face="monospace">Package: pyresample<br>
Version: 1.2.5-1<br>
Severity: important<br>
Tags: sid + patch<br>
Justification: FTBFS<br>
User: debian-mips@lists.debian.org<br>
Usertags: mips-patch<br>
Forwarded: </font><font face="monospace"><font face="monospace">https://github.com/pytroll/pyresample/issues/43</font><br>
<br>
Hi,<br>
<br>
Package pyresample FTBFS on mips* with following error:<br>
> ======================================================================<br>
> FAIL: test_custom_uncert (pyresample.test.test_kd_tree.Test)<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "/«PKGBUILDDIR»/pyresample/test/test_kd_tree.py", line 102, in test_custom_uncert<br>
> len(w) != 1, 'Failed to create neighbour warning')<br>
> AssertionError: Failed to create neighbour warning<br>
><br>
> ======================================================================<br>
> FAIL: test_gauss_uncert (pyresample.test.test_kd_tree.Test)<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "/«PKGBUILDDIR»/pyresample/test/test_kd_tree.py", line 79, in test_gauss_uncert<br>
> len(w) != 1, 'Failed to create neighbour warning')<br>
> AssertionError: Failed to create neighbour warning<br>
><br>
> ----------------------------------------------------------------------<br>
> Ran 115 tests in 582.910s<br>
><br>
> FAILED (failures=2)<br>
<br>
build logs:<br>
https://buildd.debian.org/status/fetch.php?pkg=pyresample&arch=mipsel&ver=1.2.5-1&stamp=1470596543<br>
<br>
Tests are failing because there are more warnings than expected on mips*.<br>
With added debug prints the following warnings are raised:<br>
> DBG: test_custom_uncert w[0] = {message : UserWarning('Searching for 8 neighbours in 3 data points',), category : 'UserWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 314, line : None}<br>
> DBG: test_custom_uncert w[1] = {message : RuntimeWarning('invalid value encountered in multiply',), category : 'RuntimeWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 834, line : None}<br>
><br>
> DBG: test_gauss_uncert w[0] = {message : UserWarning('Searching for 8 neighbours in 3 data points',), category : 'UserWarn>ing', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 314, line : None}<br>
> DBG: test_gauss_uncert w[1] = {message : RuntimeWarning('invalid value encountered in multiply',), category : 'RuntimeWarning', filename : '/build/pyresample-X1AqqR/pyresample-1.2.5/pyresample/kd_tree.py', lineno : 834, line : None}<br>
<br>
Tests are fixed by changing the asserts to handle more warnings than expected.<br>
This solution was proposed upstream.<br>
<br>
With attached patch I was able to build pyresample successfully for mips*.<br>
<br>
Thanks,<br>
Daniel<br>
<br>
<br>
<br>
<br>
</font></div>
</body>
</html>