FIT_FAIL: ValueError: Invalid parameter: clamped_newton_step: non-finite gradient

--- STDERR ---

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "<string>", line 4, in <module>
  File "/usr/local/lib/python3.11/site-packages/pandas/__init__.py", line 26, in <module>
    from pandas.compat import (
  File "/usr/local/lib/python3.11/site-packages/pandas/compat/__init__.py", line 27, in <module>
    from pandas.compat.pyarrow import (
  File "/usr/local/lib/python3.11/site-packages/pandas/compat/pyarrow.py", line 8, in <module>
    import pyarrow as pa
  File "/usr/local/lib/python3.11/site-packages/pyarrow/__init__.py", line 65, in <module>
    import pyarrow.lib as _lib
AttributeError: _ARRAY_API not found

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.2.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "<string>", line 4, in <module>
  File "/usr/local/lib/python3.11/site-packages/pandas/__init__.py", line 49, in <module>
    from pandas.core.api import (
  File "/usr/local/lib/python3.11/site-packages/pandas/core/api.py", line 9, in <module>
    from pandas.core.dtypes.dtypes import (
  File "/usr/local/lib/python3.11/site-packages/pandas/core/dtypes/dtypes.py", line 24, in <module>
    from pandas._libs import (
  File "/usr/local/lib/python3.11/site-packages/pyarrow/__init__.py", line 65, in <module>
    import pyarrow.lib as _lib
AttributeError: _ARRAY_API not found
/app/libraries/r_fitting/src/r_fitting/r_model.py:79: UserWarning: k for predictor 'x1' capped from 8 to 3 (n_unique(x1)-1; k_default=8). The basis can't exceed the number of distinct x values minus 1.
  ret = super().fit(X_filled, y, **kw)
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/app/libraries/r_fitting/src/r_fitting/r_model.py", line 79, in fit
    ret = super().fit(X_filled, y, **kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/mgcv_rust/_fitter.py", line 512, in fit
    self._auto_fit_k(X_arr, y_arr)
  File "/usr/local/lib/python3.11/site-packages/mgcv_rust/_fitter.py", line 781, in _auto_fit_k
    self._single_fit(X_arr, y_arr, ks)
  File "/usr/local/lib/python3.11/site-packages/mgcv_rust/_fitter.py", line 686, in _single_fit
    self._native.fit(
ValueError: Invalid parameter: clamped_newton_step: non-finite gradient

--- exit code 0