Opened 3 years ago

Closed 3 years ago

#61490 closed defect (worksforme)

py38-numpy: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.

Reported by: mf2k (Frank Schima) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: reneeotten (Renee Otten)
Port: py-numpy

Description (last modified by mf2k (Frank Schima))

Seeing this on macOS 11.0.1. Xcode 12.2.

:info:destroot     import numpy as np
:info:destroot   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/__init__.py", line 286, in <module>
:info:destroot     raise RuntimeError(msg)
:info:destroot 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.
$ port installed py38-numpy
The following ports are currently installed:
  py38-numpy @1.19.4_0+gfortran+openblas (active)

Error occurs while staging py-matplotlib but may be in py-numpy.

Attachments (1)

main.log (175.8 KB) - added by mf2k (Frank Schima) 3 years ago.

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Port: py-matplotlib removed

I believe the issue is directly in py-numpy. Although it is intermittent for me.

$ ipython
Python 3.8.6 (default, Oct  6 2020, 17:43:36) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import numpy

In [2]: exit

$ ipython
Python 3.8.6 (default, Oct  6 2020, 17:43:36) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import numpy
Python(1551,0x10f953e00) malloc: can't allocate region
:*** mach_vm_map(size=18446744066756825088, flags: 100) failed (error code=3)
Python(1551,0x10f953e00) malloc: *** set a breakpoint in malloc_error_break to debug
init_dgelsd failed init
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-1-d4cdadb62aa7> in <module>
----> 1 import numpy

/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/numpy/__init__.py in <module>
    284                     "that provided NumPy.\n{}\n".format(
    285                         error_message))
--> 286                 raise RuntimeError(msg)
    287     del _mac_os_check
    288 

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

comment:3 Changed 3 years ago by mf2k (Frank Schima)

Cc: michaelld removed
Owner: set to michaelld
Status: newassigned

comment:4 Changed 3 years ago by mf2k (Frank Schima)

Summary: py38-matplotlib: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.py38-numpy: RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend.

comment:5 Changed 3 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: assignedclosed

This appears to be working now. Probably due to a fix to another port in the build process.

Note: See TracTickets for help on using tickets.