-
Notifications
You must be signed in to change notification settings - Fork 121
Dependency "OpenBLAS" not found when mvn package #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ziyilin. It's a problem with the Fedora/RHEL/Centos openblas package where the maintainer refuses to ship the upstream pkg-config file, so scipy can't find it. You can find more on the scipy issue about this. I use the workaround described in this comment on the same issue. Note you also need to have |
@msimacek It works, thank you very much. But after 1 hour's building, another error is reported:
By the way, is there any option can keep the temporary files? They are deleted when the error is reported. |
That sounds like a version mismatch between meson and its dependencies (we used to patch meson and that forces an older version). I think it should be fixed on GraalPy 24.2.0, can you update?
For debugging build issues it's easier to download the native standalone version of graalpy, create a virtualenv and try to |
I have switched to Graalpy 24.2.0, but with no luck. I still got the exactly the same error. |
That's strange, I tried building scipy with 24.2 just now and it worked fine. Can you try running |
24.2 native standalone is good to run |
So, then if you run the maven build with 24.2 it should pick the wheels you just built from the cache. Does that work? If not, please post the build log. |
Running with |
Hmm, it's picking up scipy 1.10.1, but there should be no for graalpy reason to pick that old version. It seems like it's still somehow using 24.1, as if the virtualenv didn't get rebuilt when you changed the version (it could be a bug in the maven plugin). When you run |
It only provides python version.
|
Ah, sorry, I pasted the wrong thing, I meant |
Thanks for clarifying. It was
|
It's not because of the compiler. It's trying to install a numpy version that doesn't have a graalpy patch (the latest patch is for numpy 2.0.2, but it tries to install 2.2.4). Pip should normally prefer a version that does have a patch (and it does when I try it locally). I see you're using a different repository than pypi.org, is it possible that it doesn't contain numpy 2.0.2? |
I manually switched to numpy 2.0.2, but still got the same error. |
That's really weird, after |
Yes, here's an example project that manages the virtualenv manually. Another option is to rely on the caching - build the packages with standalone and the maven build should pick up the cached wheels without rebuilding. Yet another option is to build the wheels with |
Thanks, this is my pom configuration.
|
@ziyilin I also cannot reproduce the issue locally. Could you please run the script below with
on my system, for example, it prints:
Could you also try running the numpy 2.0.2 installation with env. variable
|
I have manually changed the graalpy at
Is it because it now uses the cached file? How can I remove the |
It could be. You can remove the cached file with |
I have uninstalled the
|
The upgrade path issue (changing graalpy version in the pom wouldn't rebuild the virtualenv) should be fixed by 69de2bf. I belive that resolves the issue. |
I prepared a maven project with graalpy. But failed to
mvn package
the project.This is my pom settings:
mvn package process failed with the following error message:
But I have installed openblas:
How can I get this fixed? Thanks.
The text was updated successfully, but these errors were encountered: