[Slackbuilds-users] numpy builds w/problems

David Chmelik dchmelik at gmail.com
Sun Mar 20 07:46:55 UTC 2022


Some days/weeks ago I mentioned a build not working on Slackware64 
15.1+current and Urchlay said we're not worrying about SBo-git until 15 
is ready (ready now except submissions I guess) so I resorted to report 
another SBo-git problem on LinuxQuestions.com (LQ) then ponce said post 
here...
     Built numpy3-1.21.2-x86_64-1ponce but some/most/all packages 
depending on it don't build right. One I maintain, mathics.SlackBuild 
(updated for Slackware 15 at 
http://davidchmelik.com/math/slackbuilds/academic/mathics.tar.gz but not 
updated on SBo[-git] yet) which I reported on http://GitHub.com/mathics 
who said I have a broken numpy... despite that built, something went 
wrong. I don't recall what others didn't build but don't need any these 
urgently unless anyone needs Slackware-current Mathics 4...
     Mathics 4 builds but crashes on run...

d at cosmos:~$ mathics
Traceback (most recent call last):
   File "/usr/lib64/python3.9/site-packages/numpy/core/__init__.py", 
line 22, in <module>
     from . import multiarray
   File "/usr/lib64/python3.9/site-packages/numpy/core/multiarray.py", 
line 12, in <module>
     from . import overrides
   File "/usr/lib64/python3.9/site-packages/numpy/core/overrides.py", 
line 7, in <module>
     from numpy.core._multiarray_umath import (
ImportError: libopenblas.so.0: cannot open shared object file: No such 
file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/bin/mathics", line 33, in <module>
     sys.exit(load_entry_point('Mathics3==4.0.0', 'console_scripts', 
'mathics')())
   File "/usr/bin/mathics", line 25, in importlib_load_entry_point
     return next(matches).load()
   File "/usr/lib64/python3.9/importlib/metadata.py", line 77, in load
     module = import_module(match.group('module'))
   File "/usr/lib64/python3.9/importlib/__init__.py", line 127, in 
import_module
     return _bootstrap._gcd_import(name[level:], package, level)
   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
   File "<frozen importlib._bootstrap>", line 972, in 
_find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 228, in 
_call_with_frames_removed
   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
   File "<frozen importlib._bootstrap>", line 986, in 
_find_and_load_unlocked
   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
   File "<frozen importlib._bootstrap_external>", line 850, in exec_module
   File "<frozen importlib._bootstrap>", line 228, in 
_call_with_frames_removed
   File "/usr/lib64/python3.9/site-packages/mathics/__init__.py", line 
8, in <module>
     import numpy
   File "/usr/lib64/python3.9/site-packages/numpy/__init__.py", line 
150, in <module>
     from . import core
   File "/usr/lib64/python3.9/site-packages/numpy/core/__init__.py", 
line 48, 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.9 from "/usr/bin/python3"
   * The NumPy version is: "1.21.2"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: libopenblas.so.0: cannot open shared object file: No 
such file or directory




More information about the SlackBuilds-users mailing list