First time here? Check out the FAQ!

Ask Your Question
1

PackageNotFoundError: cblas not found

asked 3 years ago

anonym485738 gravatar image

updated 3 years ago

slelievre gravatar image

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.

Preview: (hide)

Comments

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?

slelievre gravatar imageslelievre ( 3 years ago )

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.

anonym485738 gravatar imageanonym485738 ( 3 years ago )

What do you get with conda list -n sage? Do you have a file at /Users/*****/opt/anaconda3/envs/sage/lib/pkgconfig/cblas.pc?

isuruf gravatar imageisuruf ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

isuruf gravatar image

updated 3 years ago

Can you try doing,

conda install blas-devel ?

Preview: (hide)
link

Comments

Thank you! Conda install blas-devel solved the error

anonym485738 gravatar imageanonym485738 ( 3 years ago )

@anonym485738 - to mark your question as solved, accept the answer by clicking the check mark button next to it.

slelievre gravatar imageslelievre ( 3 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 3 years ago

Seen: 331 times

Last updated: Aug 23 '21