I am facing an issue while installing pyprecice using pip. Here are some of the details for context.
I have created a fresh environment in conda and am installing all necessary python packages inside it.
OS: Linux (distro unknown)
Packages installed before installing pyprecice:
- python 3.13.5
- numpy 2.3.1
- cython 3.0.11
I have built precice 3.2.0 and was able to use it successfully. This precice library was built using intel compiler. I am loading (using environment modules) the precice library, intel and impi.
When I try to install pyprecice via “pip install pyprecice”, I get the following.
Traceback (most recent call last):
File "/tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/_core/__init__.py", line 22, in <module>
from . import multiarray
File "/tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/_core/multiarray.py", line 11, in <module>
from . import _multiarray_umath, overrides
ImportError: /tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/_core/_multiarray_umath.cpython-313-x86_64-linux-gnu.so: undefined symbol: tan8_h
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/__init__.py", line 112, in <module>
from numpy.__config__ import show_config
File "/tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/__config__.py", line 4, in <module>
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "/tmp/pip-build-env-h6ur8hq5/overlay/lib/python3.13/site-packages/numpy/_core/__init__.py", line 48, in <module>
raise ImportError(msg) from exc
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
I recreated the environment but I get the same error.