-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
OpenBSD/amd64 7.4 undefined symbol 'strtold_l' during the import #25047
Copy link
Copy link
Closed
Labels
32 - InstallationProblems installing or compiling NumPyProblems installing or compiling NumPy
Milestone
Description
Steps to reproduce:
in the python's repl
import numpy
Error message:
Python 3.10.13 (main, Oct 5 2023, 16:21:31) [Clang 13.0.0 ] on openbsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
python:/home/david/.local/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310.so: undefined symbol 'strtold_l'
Traceback (most recent call last):
File "/home/david/.local/lib/python3.10/site-packages/numpy/core/__init__.py", line 24, in <module>
from . import multiarray
File "/home/david/.local/lib/python3.10/site-packages/numpy/core/multiarray.py", line 10, in <module>
from . import overrides
File "/home/david/.local/lib/python3.10/site-packages/numpy/core/overrides.py", line 8, in <module>
from numpy.core._multiarray_umath import (
ImportError: Cannot load specified object
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/david/.local/lib/python3.10/site-packages/numpy/__init__.py", line 130, in <module>
from numpy.__config__ import show as show_config
File "/home/david/.local/lib/python3.10/site-packages/numpy/__config__.py", line 4, in <module>
from numpy.core._multiarray_umath import (
File "/home/david/.local/lib/python3.10/site-packages/numpy/core/__init__.py", line 50, in <module>
raise ImportError(msg)
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.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.10 from "/usr/local/bin/python"
* The NumPy version is: "1.26.1"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: Cannot load specified object
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/david/.local/lib/python3.10/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:
link with -L/usr/local/lib -lcblas
ldd /home/david/.local/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310.so /home/david/.local/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310.so: Start End Type Open Ref GrpRef Name 000006b515ba2000 000006b5161b3000 dlib 1 0 0 /home/david/.local/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310.so 000006b517262000 000006b517281000 rlib 0 1 0 /usr/local/lib/libcblas.so.1.1 000006b4612bb000 000006b4613a7000 rlib 0 1 0 /usr/lib/libc++.so.9.0 000006b4faf27000 000006b4faf58000 rlib 0 4 0 /usr/lib/libm.so.10.1 000006b47a80b000 000006b47a862000 rlib 0 1 0 /usr/local/lib/libblas.so.2.1 000006b46e94d000 000006b46ebda000 rlib 0 2 0 /usr/local/lib/libgfortran.so.8.0 000006b4577be000 000006b457805000 rlib 0 1 0 /usr/lib/libc++abi.so.6.0 000006b4e56d2000 000006b4e5716000 rlib 0 2 0 /usr/local/lib/libquadmath.so.3.0 000006b4e1366000 000006b4e1385000 rlib 0 1 0 /usr/lib/libz.so.7.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
32 - InstallationProblems installing or compiling NumPyProblems installing or compiling NumPy