-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
What to do when receiving "RuntimeError: Polyfit sanity test emitted a warning"? #17253
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
We do not ship a wheel that uses Accelerate. Are you sure you used a binary wheel and did not compile one locally? There should be an OpenBLAS library
|
Try using |
No luck.
And using the
The libs don't exist.
The numpy dir is there though. |
The lack of success with Another option is to use conda or homebrew instead. |
Ok, if I bypass the checks and install the wheel directly everything is working fine. It seems like the problem occurs only when installing from source without doing any further configuration. The |
I'm seeing this with a locally-compiled And no, we can't use wheels in this situation (before anyone suggests it). |
And I'm seeing this on 10.15, not 11. |
And we weren't seeing this problem on the same machine with NumPy 1.16.4 (which is the version we were using before). |
The issue is that the failure (sanity check) indicates serious issues that can lead to wrong results for at least some linear algebra functions. So it seems better to error early, rather than potentially give you wrong results. You mentioned that you have your own blas/lapack, in that case you should be able to set up the |
We had been doing that. Having read the docs more, it seems that |
@mathstuf quick question, are you also setting the |
We have a post-processing step which fixes library references. Everything should be using absolute paths for library ids before that. I'll try and take a peek on the CI machine while it's building. |
@mathstuf there were some issues previously that import order mattered. Some other package picked up the system I do not know if such a thing might be complicating things for you, nor am I a linking specialist, but it does seem like the issue must be with the linking somewhere. |
I missed the CI window unfortunately for seeing what it was in-flight :/ . The |
Uh oh!
There was an error while loading. Please reload this page.
I cannot use numpy >1.18.5 on macOS 11.0 (BigSur, but that probably isn't the issue) installed from PyPI because of the check for buggy Accelerate, but there isn't any guidance on how I should resolve this.
Reading some of the threads this is a system library, so I can't just uninstall it... It says to contact the vendor, but you're publishing directly to PyPI as best I can tell.
If I am getting this as an end user what should I do? (For now I've fallen back to 1.18.5, but that's not a permanent fix.). Is there a flag or something I can set to disable it or prefer a home-brew version of OpenBLAS?
Reproducing code example:
Error message:
Numpy/Python version information:
1.19.0 and 1.19.1
The text was updated successfully, but these errors were encountered: