Package: python3-numpy
Followup-For: Bug #975546
X-Debbugs-Cc: [email protected]
Actually the package seems to be currently broken with openblas-serial. When I
select the open-blas serial alternative:
There are 4 choices for the alternative liblapack.so.3-x86_64-linux-gnu
(providing /usr/lib/x86_64-linux-gnu/liblapack.so.3).
Selection Path
Priority Status
------------------------------------------------------------
0 /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3 100
auto mode
1 /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 10
manual mode
2 /usr/lib/x86_64-linux-gnu/openblas-openmp/liblapack.so.3 95
manual mode
3 /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3 100
manual mode
* 4 /usr/lib/x86_64-linux-gnu/openblas-serial/liblapack.so.3 90
manual mode
Importing numpy will just fail:
Python 3.13.3 (main, Apr 10 2025, 21:38:51) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/_core/__init__.py", line 23, in
<module>
from . import multiarray
File "/usr/lib/python3/dist-packages/numpy/_core/multiarray.py", line 10, in
<module>
from . import overrides
File "/usr/lib/python3/dist-packages/numpy/_core/overrides.py", line 7, in
<module>
from numpy._core._multiarray_umath import (
add_docstring, _get_implementing_args, _ArrayFunctionDispatcher)
ImportError: /lib/x86_64-linux-gnu/libblas.so.3: undefined symbol:
sgemv_thread_n
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 114, in
<module>
from numpy.__config__ import show_config
File "/usr/lib/python3/dist-packages/numpy/__config__.py", line 4, in
<module>
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "/usr/lib/python3/dist-packages/numpy/_core/__init__.py", line 49, 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.13 from "/usr/bin/python3"
* The NumPy version is: "2.2.4"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: /lib/x86_64-linux-gnu/libblas.so.3: undefined symbol:
sgemv_thread_n
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<python-input-0>", line 1, in <module>
import numpy
File "/usr/lib/python3/dist-packages/numpy/__init__.py", line 119, 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.
>>>
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.22-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-numpy depends on:
ii dpkg 1.22.18
ii libblas3 [libblas.so.3] 3.12.1-2
ii libc6 2.41-7
ii libgcc-s1 14.2.0-19
ii liblapack3 [liblapack.so.3] 3.12.1-2
ii libopenblas0-openmp [liblapack.so.3] 0.3.29+ds-3
ii libopenblas0-pthread [liblapack.so.3] 0.3.29+ds-3
ii libopenblas0-serial [liblapack.so.3] 0.3.29+ds-3
ii libstdc++6 14.2.0-19
ii python3 3.13.3-1
ii python3-numpy-dev 1:2.2.4+ds-1
python3-numpy recommends no packages.
Versions of packages python3-numpy suggests:
ii gcc 4:14.2.0-1
ii gfortran 4:14.2.0-1
pn python-numpy-doc <none>
ii python3-dev 3.13.3-1
ii python3-pytest 8.3.5-2
-- no debconf information