Bug#1106426: lmfit-py: FTBFS: FAILURES: test_confidence_warnings
Santiago Vila
sanvila at debian.org
Sat May 24 17:39:49 BST 2025
Package: src:lmfit-py
Version: 1.3.3-2
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
pybuild --clean -i python{version} -p 3.13
rm -rf .pybuild/
find . -name \*.pyc -exec rm {} \;
dh_autoreconf_clean -O--buildsystem=pybuild
debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
find . -name "*.pickle" -delete
rm -rf doc/examples
if [ -f lmfit/version.py.orig ] ; then mv lmfit/version.py.orig lmfit/version.py ; fi
dh_clean
rm -f debian/debhelper-build-stamp
rm -rf debian/.debhelper/
rm -f -- debian/python3-lmfit.substvars debian/python-lmfit-doc.substvars debian/files
rm -fr -- debian/python3-lmfit/ debian/tmp/ debian/python-lmfit-doc/
find . \( \( \
\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a \( -name autom4te.cache -o -name __pycache__ \) -prune -exec rm -rf {} + \) \)
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules binary
dh binary --buildsystem=pybuild
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp -a lmfit/version.py lmfit/version.py.orig
dh_auto_configure
pybuild --configure -i python{version} -p 3.13
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build -O--buildsystem=pybuild
pybuild --build -i python{version} -p 3.13
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
!!
********************************************************************************
Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
corresp(dist, value, root_dir)
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
dist._finalize_license_expression()
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a SPDX license expression:
License :: OSI Approved :: BSD License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib/lmfit
copying lmfit/_ampgo.py -> build/lib/lmfit
copying lmfit/models.py -> build/lib/lmfit
copying lmfit/__init__.py -> build/lib/lmfit
copying lmfit/version.py -> build/lib/lmfit
copying lmfit/model.py -> build/lib/lmfit
copying lmfit/lineshapes.py -> build/lib/lmfit
copying lmfit/printfuncs.py -> build/lib/lmfit
copying lmfit/confidence.py -> build/lib/lmfit
copying lmfit/jsonutils.py -> build/lib/lmfit
copying lmfit/parameter.py -> build/lib/lmfit
copying lmfit/minimizer.py -> build/lib/lmfit
running egg_info
writing lmfit.egg-info/PKG-INFO
writing dependency_links to lmfit.egg-info/dependency_links.txt
writing requirements to lmfit.egg-info/requires.txt
writing top-level names to lmfit.egg-info/top_level.txt
reading manifest file 'lmfit.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'AUTHORS.txt'
writing manifest file 'lmfit.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/lmfit
copying build/lib/lmfit/_ampgo.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/models.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/__init__.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/version.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/model.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/lineshapes.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/printfuncs.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/confidence.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/jsonutils.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/parameter.py -> build/bdist.linux-x86_64/wheel/./lmfit
copying build/lib/lmfit/minimizer.py -> build/bdist.linux-x86_64/wheel/./lmfit
running install_egg_info
Copying lmfit.egg-info to build/bdist.linux-x86_64/wheel/./lmfit-1.3.3.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/lmfit-1.3.3.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/.tmp-_6dj28c5/lmfit-1.3.3-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'lmfit/__init__.py'
adding 'lmfit/_ampgo.py'
adding 'lmfit/confidence.py'
adding 'lmfit/jsonutils.py'
adding 'lmfit/lineshapes.py'
adding 'lmfit/minimizer.py'
adding 'lmfit/model.py'
adding 'lmfit/models.py'
adding 'lmfit/parameter.py'
adding 'lmfit/printfuncs.py'
adding 'lmfit/version.py'
adding 'lmfit-1.3.3.dist-info/licenses/AUTHORS.txt'
adding 'lmfit-1.3.3.dist-info/licenses/LICENSE'
adding 'lmfit-1.3.3.dist-info/METADATA'
adding 'lmfit-1.3.3.dist-info/WHEEL'
adding 'lmfit-1.3.3.dist-info/top_level.txt'
adding 'lmfit-1.3.3.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built lmfit-1.3.3-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
dh_auto_test -O--buildsystem=pybuild
pybuild --test --test-pytest -i python{version} -p 3.13
I: pybuild pybuild:308: cp -r NIST_STRD examples /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.2
collected 671 items
tests/test_1variable.py . [ 0%]
tests/test_NIST_Strd.py ........................... [ 4%]
tests/test_algebraic_constraint.py .... [ 4%]
tests/test_ampgo.py ............ [ 6%]
tests/test_basicfit.py . [ 6%]
tests/test_basinhopping.py ..... [ 7%]
tests/test_bounded_jacobian.py .. [ 7%]
tests/test_bounds.py . [ 7%]
tests/test_brute.py ............ [ 9%]
tests/test_builtin_models.py ....... [ 10%]
tests/test_confidence.py ........F.... [ 12%]
tests/test_covariance_matrix.py ..ssssssss. [ 14%]
tests/test_custom_independentvar.py . [ 14%]
tests/test_default_kws.py . [ 14%]
tests/test_dual_annealing.py ... [ 15%]
tests/test_itercb.py .................... [ 18%]
tests/test_jacobian_pickling.py .. [ 18%]
tests/test_jsonutils.py ................. [ 20%]
tests/test_least_squares.py ...... [ 21%]
tests/test_lineshapes.py ............................................... [ 28%]
.......................................... [ 35%]
tests/test_manypeaks_speed.py . [ 35%]
tests/test_max_nfev.py ........................... [ 39%]
tests/test_minimizer.py ............... [ 41%]
tests/test_model.py .................................................... [ 49%]
........................................................................ [ 59%]
......s....s.................................................. [ 69%]
tests/test_model_saveload.py ........................ [ 72%]
tests/test_model_uncertainties.py ....... [ 73%]
tests/test_models.py ........ [ 74%]
tests/test_multidatasets.py . [ 75%]
tests/test_nose.py ...................s...... [ 78%]
tests/test_pandas.py .. [ 79%]
tests/test_parameter.py ................................................ [ 86%]
.......... [ 87%]
tests/test_parameters.py ................................ [ 92%]
tests/test_params_uvars.py .... [ 93%]
tests/test_printfuncs.py ............................s...... [ 98%]
tests/test_shgo.py ...... [ 99%]
tests/test_stepmodel.py .... [100%]
=================================== FAILURES ===================================
___________________________ test_confidence_warnings ___________________________
data = (array([ 0.3 , 0.3979798 , 0.4959596 , 0.59393939, 0.69191919,
0.78989899, 0.88787879, 0.98585859,...29492, 3.09446376, 3.16012366, 3.08715018,
3.1114479 , 3.03133411, 3.19857469, 3.02258614, 3.04019894]))
pars = Parameters([('a', <Parameter 'a', value=0.1, bounds=[-inf:inf]>), ('b', <Parameter 'b', value=1, bounds=[-inf:inf]>)])
def test_confidence_warnings(data, pars):
"""Make sure the proper warnings are emitted when needed."""
minimizer = lmfit.Minimizer(residual, pars, fcn_args=data)
out = minimizer.minimize(method='leastsq')
with pytest.warns(UserWarning) as record:
lmfit.conf_interval(minimizer, out, maxiter=1)
> assert 'maxiter=1 reached and prob' in str(record[0].message)
E AssertionError: assert 'maxiter=1 reached and prob' in 'Using UFloat objects with std_dev==0 may give unexpected results.'
E + where 'Using UFloat objects with std_dev==0 may give unexpected results.' = str(UserWarning('Using UFloat objects with std_dev==0 may give unexpected results.'))
E + where UserWarning('Using UFloat objects with std_dev==0 may give unexpected results.') = <warnings.WarningMessage object at 0x7f268ffdc170>.message
tests/test_confidence.py:201: AssertionError
=============================== warnings summary ===============================
tests/test_manypeaks_speed.py:15
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/tests/test_manypeaks_speed.py:15: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
@pytest.mark.flaky(max_runs=5)
tests/test_1variable.py: 1 warning
tests/test_algebraic_constraint.py: 4 warnings
tests/test_builtin_models.py: 1 warning
tests/test_confidence.py: 289 warnings
tests/test_covariance_matrix.py: 2 warnings
tests/test_default_kws.py: 1 warning
tests/test_itercb.py: 11 warnings
tests/test_least_squares.py: 3 warnings
tests/test_max_nfev.py: 18 warnings
tests/test_minimizer.py: 14 warnings
tests/test_model.py: 36 warnings
tests/test_model_saveload.py: 18 warnings
tests/test_model_uncertainties.py: 5 warnings
tests/test_models.py: 1 warning
tests/test_multidatasets.py: 1 warning
tests/test_nose.py: 2 warnings
tests/test_pandas.py: 1 warning
tests/test_parameters.py: 2 warnings
tests/test_params_uvars.py: 3 warnings
tests/test_printfuncs.py: 22 warnings
tests/test_stepmodel.py: 1 warning
/usr/lib/python3/dist-packages/uncertainties/core.py:1024: UserWarning: Using UFloat objects with std_dev==0 may give unexpected results.
warn("Using UFloat objects with std_dev==0 may give unexpected results.")
tests/test_model_saveload.py::test_load_legacy_modelresult
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/lmfit/jsonutils.py:146: UserWarning: Could not unpack dill-encoded callable 'gaussian', saved with Python version 3.10
warnings.warn(msg)
tests/test_model_saveload.py::test_load_model_versions
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/lmfit/jsonutils.py:146: UserWarning: Could not unpack dill-encoded callable 'mysine', saved with Python version 3.10
warnings.warn(msg)
tests/test_model_saveload.py::test_load_model_versions
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/lmfit/jsonutils.py:146: UserWarning: Could not unpack dill-encoded callable 'mysine', saved with Python version 3.11
warnings.warn(msg)
tests/test_model_saveload.py::test_load_model_versions
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/lmfit/jsonutils.py:146: UserWarning: Could not unpack dill-encoded callable 'mysine', saved with Python version 3.12
warnings.warn(msg)
tests/test_nose.py::CommonMinimizerTest::test_emcee
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_bounds_length
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_bounds_length of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_bounds_length>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_custom_pool
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_custom_pool of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_custom_pool>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_float
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_float of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_float>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_init_with_chain
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_init_with_chain of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_init_with_chain>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_method_kwarg
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_method_kwarg of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_method_kwarg>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_ntemps
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_ntemps of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_ntemps>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_output
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_output of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_output>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_partial_bounds
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_partial_bounds of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_partial_bounds>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_reuse_sampler
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_reuse_sampler of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_reuse_sampler>>)
return self.run(*args, **kwds)
tests/test_nose.py::CommonMinimizerTest::test_emcee_seed
/usr/lib/python3.13/unittest/case.py:707: DeprecationWarning: It is deprecated to return a value that is not None from a test case (<bound method CommonMinimizerTest.test_emcee_seed of <tests.test_nose.CommonMinimizerTest testMethod=test_emcee_seed>>)
return self.run(*args, **kwds)
tests/test_parameters.py::test_dumps_loads_parameters_usersyms
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build/lmfit/jsonutils.py:30: DeprecationWarning: numpy.core is deprecated and has been renamed to numpy._core. The numpy._core namespace contains private NumPy internals and its use is discouraged, as NumPy internals can change without warning in any release. In practice, most real-world usage of numpy.core is to access functionality in the public NumPy API. If that is the case, use the public NumPy API. If not, you are using NumPy internals. If you would still like to access an internal attribute, use numpy._core.half.
t = getattr(module, oname, None)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---------- coverage: platform linux, python 3.13.3-final-0 -----------
Coverage HTML written to dir htmlcov
=========================== short test summary info ============================
FAILED tests/test_confidence.py::test_confidence_warnings - AssertionError: a...
=========== 1 failed, 658 passed, 12 skipped, 453 warnings in 50.27s ===========
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lmfit/build; python3.13 -m pytest tests
rm -fr -- /tmp/dh-xdg-rundir-f50Xay4O
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202505/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:lmfit-py, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the debian-science-maintainers
mailing list