Bug#976952: lmfit-py: FTBFS on ppc64el (arch:all-only src pkg): dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
Lucas Nussbaum
lucas at debian.org
Wed Dec 9 09:06:43 GMT 2020
Source: lmfit-py
Version: 1.0.1-3
Severity: serious
Justification: FTBFS on ppc64el
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201209 ftbfs-bullseye ftbfs-ppc64el
Hi,
During a rebuild of all packages in sid, your package failed to build
on ppc64el. At the same time, it did not fail on amd64.
I'm marking this bug as severity:serious since your package has only
Architecture:all binary packages, and should thus, in theory, build
everywhere. Failure to build on ppc64el might indicate a serious issue
in this package or in another package.
But feel free to downgrade or close if you believe that this is only a
build-time issue. (I would personnally prefer a severity:minor bug just to
track that the package can only be built on specific architectures.)
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test
> pybuild --test --test-pytest -i python{version} -p 3.9
> I: pybuild pybuild:284: cp -r NIST_STRD examples /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build; python3.9 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1, pytest-4.6.11, py-1.9.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 525 items
>
> tests/test_1variable.py . [ 0%]
> tests/test_NIST_Strd.py ........................... [ 5%]
> tests/test_algebraic_constraint.py .... [ 6%]
> tests/test_ampgo.py ............ [ 8%]
> tests/test_basicfit.py . [ 8%]
> tests/test_basinhopping.py ..... [ 9%]
> tests/test_bounded_jacobian.py . [ 9%]
> tests/test_bounds.py . [ 9%]
> tests/test_brute.py ............ [ 12%]
> tests/test_builtin_models.py ..... [ 13%]
> tests/test_confidence.py ............. [ 15%]
> tests/test_covariance_matrix.py ..ssssssss [ 17%]
> tests/test_custom_independentvar.py . [ 17%]
> tests/test_default_kws.py . [ 17%]
> tests/test_dual_annealing.py ... [ 18%]
> tests/test_itercb.py ....... [ 19%]
> tests/test_jsonutils.py ................ [ 22%]
> tests/test_least_squares.py ..... [ 23%]
> tests/test_lineshapes.py ............................................... [ 32%]
> ........................ [ 37%]
> tests/test_manypeaks_speed.py . [ 37%]
> tests/test_max_nfev.py ...x.................x.x... [ 42%]
> tests/test_minimizer.py . [ 42%]
> tests/test_model.py ...................F................................ [ 52%]
> ........................s....s.......................................... [ 66%]
> [ 66%]
> tests/test_model_uncertainties.py .... [ 67%]
> tests/test_multidatasets.py . [ 67%]
> tests/test_nose.py ...............s........ [ 72%]
> tests/test_pandas.py . [ 72%]
> tests/test_parameter.py ................................................ [ 81%]
> .......... [ 83%]
> tests/test_parameters.py ............................ [ 88%]
> tests/test_printfuncs.py ................................. [ 94%]
> tests/test_saveload.py .s.s.............. [ 98%]
> tests/test_shgo.py ....... [ 99%]
> tests/test_stepmodel.py .. [100%]
>
> =================================== FAILURES ===================================
> _________________ TestUserDefiniedModel.test_model_nan_policy __________________
>
> self = <test_model.TestUserDefiniedModel testMethod=test_model_nan_policy>
>
> def test_model_nan_policy(self):
> """Tests for nan_policy with NaN values in the input data."""
> x = np.linspace(0, 10, 201)
> np.random.seed(0)
> y = gaussian(x, 10.0, 6.15, 0.8)
> y += gaussian(x, 8.0, 6.35, 1.1)
> y += gaussian(x, 0.25, 6.00, 7.5)
> y += np.random.normal(size=len(x), scale=0.5)
>
> # with NaN values in the input data
> y[55] = y[91] = np.nan
> mod = PseudoVoigtModel()
> params = mod.make_params(amplitude=20, center=5.5,
> sigma=1, fraction=0.25)
> params['fraction'].vary = False
>
> # with raise, should get a ValueError
> result = lambda: mod.fit(y, params, x=x, nan_policy='raise')
> msg = ('NaN values detected in your input data or the output of your '
> 'objective/model function - fitting algorithms cannot handle this!')
> self.assertRaisesRegex(ValueError, msg, result)
>
> # with propagate, should get no error, but bad results
> result = mod.fit(y, params, x=x, nan_policy='propagate')
> > self.assertTrue(result.success)
> E AssertionError: False is not true
>
> tests/test_model.py:647: AssertionError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.9_lmfit/build/tests/test_lineshapes.py::test_no_ZeroDivisionError_and_finite_output[logistic]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build/lmfit/lineshapes.py:184: RuntimeWarning: overflow encountered in exp
> return amplitude*(1. - 1./(1. + exp((x-center)/max(tiny, sigma))))
>
> .pybuild/cpython3_3.9_lmfit/build/tests/test_lineshapes.py::test_no_ZeroDivisionError_and_finite_output[thermal_distribution]
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build/lmfit/lineshapes.py:344: RuntimeWarning: divide by zero encountered in true_divide
> return real(1/(amplitude*exp((x - center)/kt) + offset + tiny*1j))
>
> .pybuild/cpython3_3.9_lmfit/build/tests/test_lineshapes.py::test_x_float_value[step]
> .pybuild/cpython3_3.9_lmfit/build/tests/test_lineshapes.py::test_x_float_value[rectangle]
> <__array_function__ internals>:5: DeprecationWarning: Calling nonzero on 0d arrays is deprecated, as it behaves surprisingly. Use `atleast_1d(cond).nonzero()` if the old behavior was intended. If the context of this warning is of the form `arr[nonzero(cond)]`, just use `arr[cond]`.
>
> .pybuild/cpython3_3.9_lmfit/build/tests/test_nose.py::CommonMinimizerTest::test_diffev_bounds_check
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build/lmfit/minimizer.py:933: RuntimeWarning: ignoring `maxiter` argument to `scalar_minimize()`. Use `max_nfev` instead.
> warnings.warn(MAXEVAL_Warning % ('maxiter', thisfuncname()),
>
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> === 1 failed, 508 passed, 13 skipped, 3 xfailed, 5 warnings in 98.68 seconds ===
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_lmfit/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/12/09/lmfit-py_1.0.1-3_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.
About the archive rebuild: The rebuild was done on a Power8 cluster part of the
Grid'5000 testbed. Hardware specs: https://www.grid5000.fr/w/Grenoble:Hardware#drac
More information about the debian-science-maintainers
mailing list