Python bindings installation for precice 2.5.0

Hi all
i found some adapter supporting precice2 and i am trying to downgrade my installation to precice 2.5.0.
I came across problem during installation:




$ pip install pyprecice==2.5.0.4
Collecting pyprecice==2.5.0.4
  Downloading pyprecice-2.5.0.4.tar.gz (48 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in ./precice_env/lib/python3.10/site-packages (from pyprecice==2.5.0.4) (1.24.0)
Collecting mpi4py (from pyprecice==2.5.0.4)
  Using cached mpi4py-4.0.1-cp310-cp310-linux_x86_64.whl
Building wheels for collected packages: pyprecice
  Building wheel for pyprecice (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pyprecice (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [181 lines of output]
      <string>:49: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
      !!
      
              ********************************************************************************
              Please remove any references to `setuptools.command.test` in all supported versions of the affected package.
      
              By 2024-Nov-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
              ********************************************************************************
      
      !!
      Failed to load config from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      running bdist_wheel
      /tmp/pip-build-env-b1ypili4/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:111: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
      !!
      
              ********************************************************************************
              With Python 2.7 end-of-life, support for building universal wheels
              (i.e., wheels that support both Python 2 and Python 3)
              is being obviated.
              Please discontinue using this option, or if you still need it,
              file an issue with pypa/setuptools describing your use case.
      
              By 2025-Aug-30, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
              ********************************************************************************
      
      !!
        self.finalize_options()
      running build
      running build_py
      Failed to load config from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      Failed to load config from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      creating build/lib/precice
      copying precice/_version.py -> build/lib/precice
      copying precice/__init__.py -> build/lib/precice
      UPDATING build/lib/precice/_version.py
      set build/lib/precice/_version.py to '2.5.0.4'
      installing to build/bdist.linux-x86_64/wheel
      running install
      warning: cyprecice/cyprecice.pyx:1231:61: local variable '_value' referenced before assignment
      warning: cyprecice/cyprecice.pyx:1233:81: local variable '_value' referenced before assignment
      warning: cyprecice/cyprecice.pyx:1235:15: local variable '_value' referenced before assignment
      Compiling /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.pyx because it changed.
      [1/1] Cythonizing /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.pyx
      running install_lib
      running build_ext
      Failed to load config from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      Failed to load config from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/pyproject.toml: 'tool'
      Try to load it from setup.cfg
      building 'cyprecice' extension
      creating build/temp.linux-x86_64-cpython-310/tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice
      x86_64-linux-gnu-g++ -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vdi-user/dust/dust-0.8.2-b/precice_env/include -I/usr/include/python3.10 -c /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp -o build/temp.linux-x86_64-cpython-310/tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.o -std=c++11 -I/tmp/pip-build-env-b1ypili4/overlay/lib/python3.10/site-packages/numpy/_core/include
      In file included from /usr/include/python3.10/numpy/ndarraytypes.h:1969,
                       from /usr/include/python3.10/numpy/ndarrayobject.h:12,
                       from /usr/include/python3.10/numpy/arrayobject.h:4,
                       from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1260:
      /usr/include/python3.10/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
         17 | #warning "Using deprecated NumPy API, disable it with " \
            |  ^~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_8itemsize_itemsize(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5347:13: error: ‘PyDataType_ELSIZE’ was not declared in this scope; did you mean ‘PyDataType_ISUNSIZED’?
       5347 |   __pyx_r = PyDataType_ELSIZE(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~
            |             PyDataType_ISUNSIZED
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_intp __pyx_f_5numpy_5dtype_9alignment_alignment(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5381:13: error: ‘PyDataType_ALIGNMENT’ was not declared in this scope; did you mean ‘PyDataType_ISSIGNED’?
       5381 |   __pyx_r = PyDataType_ALIGNMENT(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~
            |             PyDataType_ISSIGNED
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_6fields_fields(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5419:15: error: ‘PyDataType_FIELDS’ was not declared in this scope; did you mean ‘PyDataType_HASFIELDS’?
       5419 |   __pyx_t_1 = PyDataType_FIELDS(__pyx_v_self);
            |               ^~~~~~~~~~~~~~~~~
            |               PyDataType_HASFIELDS
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_f_5numpy_5dtype_5names_names(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5461:15: error: ‘PyDataType_NAMES’ was not declared in this scope; did you mean ‘PyDataType_ISNUMBER’?
       5461 |   __pyx_t_1 = PyDataType_NAMES(__pyx_v_self);
            |               ^~~~~~~~~~~~~~~~
            |               PyDataType_ISNUMBER
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyArray_ArrayDescr* __pyx_f_5numpy_5dtype_8subarray_subarray(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5499:13: error: ‘PyDataType_SUBARRAY’ was not declared in this scope; did you mean ‘PyDataType_HASSUBARRAY’?
       5499 |   __pyx_r = PyDataType_SUBARRAY(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~
            |             PyDataType_HASSUBARRAY
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_uint64 __pyx_f_5numpy_5dtype_5flags_flags(PyArray_Descr*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5533:13: error: ‘PyDataType_FLAGS’ was not declared in this scope; did you mean ‘PyDataType_FLAGCHK’?
       5533 |   __pyx_r = PyDataType_FLAGS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~
            |             PyDataType_FLAGCHK
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘int __pyx_f_5numpy_9broadcast_7numiter_numiter(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5567:13: error: ‘PyArray_MultiIter_NUMITER’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXTi’?
       5567 |   __pyx_r = PyArray_MultiIter_NUMITER(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXTi
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_4size_size(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5601:13: error: ‘PyArray_MultiIter_SIZE’ was not declared in this scope; did you mean ‘PyArray_MultiIter_GOTO’?
       5601 |   __pyx_r = PyArray_MultiIter_SIZE(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_GOTO
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_intp __pyx_f_5numpy_9broadcast_5index_index(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5635:13: error: ‘PyArray_MultiIter_INDEX’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
       5635 |   __pyx_r = PyArray_MultiIter_INDEX(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘int __pyx_f_5numpy_9broadcast_2nd_nd(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5669:13: error: ‘PyArray_MultiIter_NDIM’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
       5669 |   __pyx_r = PyArray_MultiIter_NDIM(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘npy_intp* __pyx_f_5numpy_9broadcast_10dimensions_dimensions(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5703:13: error: ‘PyArray_MultiIter_DIMS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_DATA’?
       5703 |   __pyx_r = PyArray_MultiIter_DIMS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_DATA
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘void** __pyx_f_5numpy_9broadcast_5iters_iters(PyArrayMultiIterObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:5737:13: error: ‘PyArray_MultiIter_ITERS’ was not declared in this scope; did you mean ‘PyArray_MultiIter_NEXT’?
       5737 |   __pyx_r = PyArray_MultiIter_ITERS(__pyx_v_self);
            |             ^~~~~~~~~~~~~~~~~~~~~~~
            |             PyArray_MultiIter_NEXT
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_18is_read_data_available(__pyx_obj_9cyprecice_Interface*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:8608:79: warning: ‘bool precice::SolverInterface::isReadDataAvailable() const’ is deprecated: Will be removed in 3.0.0. See https://github.com/precice/precice/issues/1223 and comment, if you need this function. [-Wdeprecated-declarations]
       8608 |   __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->thisptr->isReadDataAvailable()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
            |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:244:143: note: declared here
        244 |   [[deprecated("Will be removed in 3.0.0. See https://github.com/precice/precice/issues/1223 and comment, if you need this function.")]] bool isReadDataAvailable() const;
            |                                                                                                                                               ^~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_20is_write_data_required(__pyx_obj_9cyprecice_Interface*, double)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:8755:79: warning: ‘bool precice::SolverInterface::isWriteDataRequired(double) const’ is deprecated: Will be removed in 3.0.0. See https://github.com/precice/precice/issues/1223 and comment, if you need this function. [-Wdeprecated-declarations]
       8755 |   __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->thisptr->isWriteDataRequired(__pyx_v_computed_timestep_length)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 273, __pyx_L1_error)
            |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:266:143: note: declared here
        266 |   [[deprecated("Will be removed in 3.0.0. See https://github.com/precice/precice/issues/1223 and comment, if you need this function.")]] bool isWriteDataRequired(double computedTimestepLength) const;
            |                                                                                                                                               ^~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_24has_to_evaluate_surrogate_model(__pyx_obj_9cyprecice_Interface*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:8939:87: warning: ‘bool precice::SolverInterface::hasToEvaluateSurrogateModel() const’ is deprecated: The manifold mapping feature is no longer supported. [-Wdeprecated-declarations]
       8939 |   __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->thisptr->hasToEvaluateSurrogateModel()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 307, __pyx_L1_error)
            |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:297:79: note: declared here
        297 |   [[deprecated("The manifold mapping feature is no longer supported.")]] bool hasToEvaluateSurrogateModel() const;
            |                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_26has_to_evaluate_fine_model(__pyx_obj_9cyprecice_Interface*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:9031:82: warning: ‘bool precice::SolverInterface::hasToEvaluateFineModel() const’ is deprecated: The manifold mapping feature is no longer supported. [-Wdeprecated-declarations]
       9031 |   __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->thisptr->hasToEvaluateFineModel()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
            |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:313:79: note: declared here
        313 |   [[deprecated("The manifold mapping feature is no longer supported.")]] bool hasToEvaluateFineModel() const;
            |                                                                               ^~~~~~~~~~~~~~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_36get_mesh_ids(__pyx_obj_9cyprecice_Interface*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:9720:76: warning: ‘std::set<int> precice::SolverInterface::getMeshIDs() const’ is deprecated: Use getMeshID() for specific mesh names instead. [-Wdeprecated-declarations]
       9720 |   __pyx_t_1 = __pyx_convert_set_to_py_int(__pyx_v_self->thisptr->getMeshIDs()); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error)
            |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:392:84: note: declared here
        392 |   [[deprecated("Use getMeshID() for specific mesh names instead.")]] std::set<int> getMeshIDs() const;
            |                                                                                    ^~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_66map_read_data_to(__pyx_obj_9cyprecice_Interface*, PyObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:13914:39: warning: ‘void precice::SolverInterface::mapReadDataTo(int)’ is deprecated: Will be removed in 3.0.0. See https://github.com/precice/precice/issues/859 and comment, if you need this function. [-Wdeprecated-declarations]
      13914 |   __pyx_v_self->thisptr->mapReadDataTo(__pyx_t_1);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:650:142: note: declared here
        650 |   [[deprecated("Will be removed in 3.0.0. See https://github.com/precice/precice/issues/859 and comment, if you need this function.")]] void mapReadDataTo(int toMeshID);
            |                                                                                                                                              ^~~~~~~~~~~~~
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp: In function ‘PyObject* __pyx_pf_9cyprecice_9Interface_68map_write_data_from(__pyx_obj_9cyprecice_Interface*, PyObject*)’:
      /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:14058:42: warning: ‘void precice::SolverInterface::mapWriteDataFrom(int)’ is deprecated: Will be removed in 3.0.0. See https://github.com/precice/precice/issues/859 and comment, if you need this function. [-Wdeprecated-declarations]
      14058 |   __pyx_v_self->thisptr->mapWriteDataFrom(__pyx_t_1);
            |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
      In file included from /tmp/pip-install-eknic91l/pyprecice_42c6e900f7fc40e3bbdd3db790260358/cyprecice/cyprecice.cpp:1284:
      /usr/include/precice/SolverInterface.hpp:662:142: note: declared here
        662 |   [[deprecated("Will be removed in 3.0.0. See https://github.com/precice/precice/issues/859 and comment, if you need this function.")]] void mapWriteDataFrom(int fromMeshID);
            |                                                                                                                                              ^~~~~~~~~~~~~~~~
      error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyprecice
Failed to build pyprecice
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyprecice)

I have googled that it might be problem with numpy version >=2 so i created venv to downgrade packages but error remains the same:

$ pip list
Package    Version
---------- -------
numpy      1.24.0
pip        24.2
setuptools 67.8.0

does anyone found solution for such problem?

  • preCICE version : 2.5.0
  • Operating system or platform : Ubuntu 20.04
  • Installation method : precice from binary package and python binding from pip

Thank you for help

You might also need to restrict mpi4py to something earlier than 4.0.