Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#60290 closed defect (duplicate)

py37-numpy: import failed

Reported by: dradice (David Radice) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-numpy

Description (last modified by mf2k (Frank Schima))

I have installed py37-numpy @1.18.2_0+gcc9+openblas (active), but I get the following error when trying to import it:

Original error was:

dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libmkl_rt.dylib
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/_multiarray_umath.cpython-37m-darwin.so
  Reason: image not found

It looks like one of the prebuilt ports is linking against MKL, which is not installed in my system.

Change History (5)

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

In the future, please use WikiFormatting, fill in the Port field and add the port maintainer(s) to Cc (port info --maintainers py37-numpy), if any.

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

Description: modified (diff)
Owner: set to michaelld
Port: py-numpy added
Status: newassigned

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

Description: modified (diff)

comment:4 Changed 4 years ago by essandess (Steve Smith)

I also see this issue. Workaround:

sudo port -vst install py37-numpy

comment:5 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: duplicate
Status: assignedclosed

Duplicate of issue:59631 and issue:62578

Last edited 3 years ago by mascguy (Christopher Nielsen) (previous) (diff)
Note: See TracTickets for help on using tickets.