ERROR: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend

ERROR: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend

我找不到与此问题相关的任何 post。我收到以下错误:

12:24:37 ERROR: 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                                                                                                                                                                                              
                                                                                                                                                                                                                                            
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/cli.py", line 259, in perform                                                                                                                                  
    self.engine.prepare()                                                                                                                                                                                                                   
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 214, in prepare                                                                                                                        
    self.__prepare_aggregator()                                                                                                                                                                                                             
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 696, in __prepare_aggregator                                                                                                           
    self.aggregator = self.instantiate_module(cls)                                                                                                                                                                                          
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 483, in instantiate_module                                                                                                             
    classobj = self.__load_module(alias)                                                                                                                                                                                                    
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/engine/engine.py", line 468, in __load_module                                                                                                                  
    self.modules[alias] = load_class(clsname)                                                                                                                                                                                               
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/utils.py", line 981, in load_class                                                                                                                             
    module = __import__(module_name)                                                                                                                                                                                                        
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/modules/__init__.py", line 23, in <module>                                                                                                                     
    from bzt.modules.aggregator import ConsolidatingAggregator                                                                                                                                                                              
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/bzt/modules/aggregator.py", line 27, in <module>                                                                                                                   
    from hdrpy import HdrHistogram, RecordedIterator                                                                                                                                                                                        
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/hdrpy/__init__.py", line 29, in <module>                                                                                                                           
    import numpy                                                                                                                                                                                                                            
  File "/usr/local/Cellar/bzt/1.15.0/libexec/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>                                                                                                                          
    raise RuntimeError(msg)

当我尝试从命令行 运行 bzt 时。有没有人遇到过这个问题?如果是的话,你能弄清楚它是从哪里来的吗?

我遇到了同样的问题,但升级我的安装解决了这个问题。

如果你像我一样使用自制软件: brew upgrade bzt

编辑:
这实际上似乎是一个不同的问题。当我清除日志文件夹时它似乎工作(或至少抛出不同的错误)

编辑 2:
抱歉双重编辑 :p 但我找到了解决方案。

看来您需要使用 Python 版本 3.6.9(或可能更早)。但是 运行 他们的云服务器上的 blazemeter 测试显示他们使用 python 3.6.9。所以我在本地使用它并为我解决了这个错误。

顺便说一句 - 如果你还没有使用 pyenv 来处理本地 python 版本,我强烈推荐 :)