PackageNotFoundError: cblas not found
On a computer with operating system macOS 12.0 beta, I installed Sage 9.2 from conda-forge.
The installation succeeded, and Sage starts properly.
Running a .sage
file that includes the command
sage.repl.load.load("program.pyx", globals())
gives the following error message:
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/sage/repl/load.py", line 276, in load
exec(load_cython(fpath), globals)
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/sage/repl/load.py", line 67, in load_cython
mod, dir = cython(name, compile_message=True, use_cache=True)
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/sage/misc/cython.py", line 331, in cython
aliases=cython_aliases(),
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/sage/env.py", line 406, in cython_aliases
aliases[var + "CFLAGS"] = pkgconfig.cflags(lib).split()
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/pkgconfig/pkgconfig.py", line 144, in cflags
_raise_if_not_exists(package)
File "/Users/*****/opt/anaconda3/envs/sage/lib/python3.8/site-packages/pkgconfig/pkgconfig.py", line 103, in _raise_if_not_exists
raise PackageNotFoundError(package)
pkgconfig.pkgconfig.PackageNotFoundError: cblas not found
How to handle it? I tried to install it with anaconda and pip, but both haven't found the package.
Can you say what operating system this is? I'm guessing macOS, but which one?
How was Sage installed? What version? How was it started?
Does this error message appear when trying to start Sage?
If Sage starts properly, what command causes this error message to appear?
The OS is MacOS 12.0 beta. I installed Sage from conda-forge. It's version 9.2. It starts properly, the error appears by calling sage.repl.load.load("program.pyx", globals()) in a .sage file.
What do you get with
conda list -n sage
? Do you have a file at/Users/*****/opt/anaconda3/envs/sage/lib/pkgconfig/cblas.pc
?