question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Buggy Accelerate Backend when using numpy 1.19

See original GitHub issue

Numpy 1.19 cannot import due to run time error in MacOS 10.14.6. Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.

Reproducing code example:

import numpy as np

Error message:

RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy. RankWarning: Polyfit may be poorly conditioned

Traceback (most recent call last): File “/Users/billyzhaoyh/anaconda/envs/simulation/lib/python3.7/runpy.py”, line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File “/Users/billyzhaoyh/anaconda/envs/simulation/lib/python3.7/runpy.py”, line 109, in _get_module_details import(pkg_name) File “/Users/billyzhaoyh/Desktop/Simulation/reina-model/calc/init.py”, line 1, in <module> from .utils import calcfunc File “/Users/billyzhaoyh/Desktop/Simulation/reina-model/calc/utils.py”, line 9, in <module> from utils.quilt import load_datasets File “/Users/billyzhaoyh/Desktop/Simulation/reina-model/utils/quilt.py”, line 4, in <module> import quilt File “/Users/billyzhaoyh/anaconda/envs/simulation/lib/python3.7/site-packages/quilt/init.py”, line 87, in <module> from .tools.command import ( File “/Users/billyzhaoyh/anaconda/envs/simulation/lib/python3.7/site-packages/quilt/tools/command.py”, line 24, in <module> import numpy as np File “/Users/billyzhaoyh/Desktop/Simulation/reina-model/src/numpy/numpy/init.py”, line 286, in <module> raise RuntimeError(msg) RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy. RankWarning: Polyfit may be poorly conditioned

Numpy/Python version information:

Python 3.7.6 Numpy -e git+https://github.com/numpy/numpy.git@078ac01a85c4db46e7f148829c2e0d0e0f30c36f#egg=numpy

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:48 (15 by maintainers)

github_iconTop GitHub Comments

209reactions
mattipcommented, Apr 9, 2020

This is by design. Did you read the error message? Is it unclear?

147reactions
mattipcommented, May 20, 2020

Closing. We strongly recommend not using Accelerate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG]: MacOS - Buggy Accelerate Backend when using numpy 1.19
After installing and successfully running Octoprint on MAcOS Catalina, I proceeded to install the plugin through the Octoprint UI, install dialog completed ...
Read more >
error about 'buggy accelerate backend'? (python, vs code, OS X)
If you need(!) python3.9: Go to venv/lib/python3.9/site-packages/numpy and open the root init.py file.
Read more >
61490 (py38-numpy: RuntimeError: Polyfit sanity test emitted a ...
py38-numpy: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. Reported by: mf2k (Frank Schima) ...
Read more >
Error building Numpy on MacOS: Polyfit may be poorly ...
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg ...
Read more >
Can't import Numpy in Jupyter notebook (RuntimeError: Polyfit ...
... Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend)-Pandas,Python. ... Numpy 1.19.2 with Python 3.9.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found