Numpy 1.26.0 doesn't work on freebsd
Steps to reproduce:
python3.11 -m venv npv
. npv/bin/activate
pip install numpy==1.26.0
python
>>> import numpy
Error message:
Python 3.11.5 (main, Sep 7 2023, 03:42:48) [Clang 14.0.5 (https://github.com/llvm/llvm-project.git llvmorg-14.0.5-0-gc12386 on freebsd13 Type "help", "copyright", "credits" or "license" for more information. >>> import numpy Traceback (most recent call last): File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/__init__.py", line 130, in <module> from numpy.__config__ import show as show_config File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/__config__.py", line 4, in <module> from numpy.core._multiarray_umath import ( File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/core/__init__.py", line 100, in <module> from . import _add_newdocs File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/core/_add_newdocs.py", line 4973, in <module> add_newdoc('numpy.core._multiarray_tests', 'format_float_OSprintf_g', File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/core/function_base.py", line 543, in add_newdoc new = getattr(__import__(place, globals(), {}, [obj]), obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ImportError: /usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/core/_multiarray_tests.cpython-311.so: Undefined symbol "ccosl" The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/home/lmoskala/npv/lib/python3.11/site-packages/numpy/__init__.py", line 135, in <module> raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. >>>
Additional information:
FreeBSD 13.2 with python3.11.5 (python 3.11.2 has the same issue).
If I do pip install numpy==1.24.1, then import numpy succeeds. Numpy 1.25.2 also works. So I'd guess that somewhere between 1.25.2 and 1.26.0 #22850 stopped working? of a new function appeared?
I'll try to provide any informations needed.