Bug#1114722: symfit: FTBFS with NumPy 2.3

roehling at debian.org roehling at debian.org
Mon Sep 8 20:44:42 BST 2025


Source: symfit
Version: 0.5.6-3
Severity: important
User: debian-python at lists.debian.org
Usertags: numpy2.3
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for NumPy 2.3, symfit failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
  warn("IPython parent '{0}' is not a writable location,"
reading sources... [ 19%] examples/ex_ODEModel
reading sources... [ 22%] examples/ex_bivariate_likelihood
/usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '../..' is not a writable location, using a temp directory.
  warn("IPython parent '{0}' is not a writable location,"
reading sources... [ 26%] examples/ex_fourier_series
reading sources... [ 30%] examples/ex_interactive_guesses_ODE
reading sources... [ 33%] examples/ex_interactive_guesses_nD
reading sources... [ 37%] examples/ex_interactive_guesses_vector_2D
reading sources... [ 41%] examples/ex_mexican_hat
/usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '../..' is not a writable location, using a temp directory.
  warn("IPython parent '{0}' is not a writable location,"
reading sources... [ 44%] examples/ex_multidataset_likelihood
reading sources... [ 48%] examples/ex_ode_system
/usr/lib/python3/dist-packages/IPython/paths.py:69: UserWarning: IPython parent '../..' is not a writable location, using a temp directory.
  warn("IPython parent '{0}' is not a writable location,"

Notebook error!

Versions
========

* Platform:         linux; (Linux-6.1.0-38-amd64-x86_64-with-glibc2.41)
* Python version:   3.13.7 (CPython)
* Sphinx version:   8.2.3
* Docutils version: 0.21.2
* Jinja2 version:   3.1.6
* Pygments version: 2.18.0

Last Messages
=============


    reading sources... [ 41%]
    examples/ex_mexican_hat

    reading sources... [ 44%]
    examples/ex_multidataset_likelihood

    reading sources... [ 48%]
    examples/ex_ode_system

Loaded Extensions
=================

* sphinx.ext.mathjax (8.2.3)
* alabaster (0.7.16)
* sphinx.ext.autodoc.preserve_defaults (8.2.3)
* sphinx.ext.autodoc.type_comment (8.2.3)
* sphinx.ext.autodoc.typehints (8.2.3)
* sphinx.ext.autodoc (8.2.3)
* sphinx.ext.viewcode (8.2.3)
* sphinx.ext.intersphinx (8.2.3)
* nbsphinx (0.9.5)

Traceback
=========

      File "/usr/lib/python3/dist-packages/nbsphinx/__init__.py", line 641, in parse
        raise NotebookError('\n'.join(lines))
    nbsphinx.NotebookError: CellExecutionError in examples/ex_ode_system.ipynb:
    ------------------
    k1_f.min, k1_f.max = 0, 1
    k1_r.min, k1_r.max = 0, 1
    k2_f.min, k2_f.max = 0, 1
    k2_r.min, k2_r.max = 0, 1
    
    fit = Fit(model, t=tdata, MM=data[MM], F=data[F],
              FMMF=None, FMM=None,
              sigma_F=sigma_data, sigma_MM=sigma_data)
    fit_result = fit.execute()
    print(fit_result)
    ------------------
    
    
    ---------------------------------------------------------------------------
    AttributeError                            Traceback (most recent call last)
    Cell In[4], line 9
          4 k2_r.min, k2_r.max = 0, 1
          6 fit = Fit(model, t=tdata, MM=data[MM], F=data[F],
          7           FMMF=None, FMM=None,
          8           sigma_F=sigma_data, sigma_MM=sigma_data)
    ----> 9 fit_result = fit.execute()
         10 print(fit_result)
    
    File /build/reproducible-path/symfit-0.5.6/symfit/core/fit.py:574, in Fit.execute(self, **minimize_options)
        566 """
        567 Execute the fit.
        568 
       (...)
        571 :return: FitResults instance
        572 """
        573 minimizer_ans = self.minimizer.execute(**minimize_options)
    --> 574 minimizer_ans.covariance_matrix = self.covariance_matrix(
        575     dict(zip(self.model.params, minimizer_ans._popt))
        576 )
        577 # Overwrite the DummyModel with the current model
        578 minimizer_ans.model = self.model
    
    File /build/reproducible-path/symfit-0.5.6/symfit/core/fit.py:301, in HasCovarianceMatrix.covariance_matrix(self, best_fit_params)
        292         """
        293         Class which impersonates ``base``, but which returns zeros
        294         for the models Hessian. This will effectively result in the
        295         calculation of the approximate Hessian by calculating
        296         outer(J.T, J) when calling ``base.eval_hessian``.
        297         """
        299     objective = HessApproximation(self.objective.model,
        300                                   self.objective.data)
    --> 301     cov_matrix = self._covariance_matrix(best_fit_params,
        302                                          objective=objective)
        304 return cov_matrix
    
    File /build/reproducible-path/symfit-0.5.6/symfit/core/fit.py:256, in HasCovarianceMatrix._covariance_matrix(self, best_fit_params, objective)
        254 rss = 2 * objective(**key2str(best_fit_params))
        255 # Degrees of freedom
    --> 256 raw_dof = np.sum([np.product(shape) for shape in self.data_shapes[1]])
        257 dof = raw_dof - len(self.model.params)
        258 if self.absolute_sigma:
        259     # When interpreting as measurement error, we do not rescale.
    
    File /usr/lib/python3/dist-packages/numpy/__init__.py:795, in __getattr__(attr)
        792     import numpy.char as char
        793     return char.chararray
    --> 795 raise AttributeError(f"module {__name__!r} has no attribute {attr!r}")
    
    AttributeError: module 'numpy' has no attribute 'product'
    
    You can ignore this error by setting the following in conf.py:
    
        nbsphinx_allow_errors = True


The full traceback has been saved in:
/tmp/sphinx-err-hds5bofy.log

To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[1]: *** [debian/rules:8: override_dh_auto_build] Error 2
make[1]: Leaving directory '/build/reproducible-path/symfit-0.5.6'
make: *** [debian/rules:4: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-09-08T12:14:15Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/debian/developers-roehling.numpy/artifact/2457210/

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/debian/developers-roehling.numpy/work-request/164154/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Cheers
Timo



More information about the debian-science-maintainers mailing list