[MacPorts] #68787: py38-scipy @1.10.1_1+gfortran+openblas: Error: 'numpy' must be installed before running the build.

MacPorts noreply at macports.org
Tue Nov 28 22:51:09 UTC 2023


#68787: py38-scipy @1.10.1_1+gfortran+openblas: Error: 'numpy' must be installed
before running the build.
---------------------------+-----------------------
  Reporter:  odysseus9672  |      Owner:  michaelld
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  py-scipy      |
---------------------------+-----------------------

Comment (by erikbs):

 It happens with py311-scipy too. The Portfile was changed a couple of days
 ago, but it was only a revision bump (to trigger rebuild/update, I
 suppose). My NumPy version is 1.26.1. NumPy 1.24.1 came out almost a year
 ago, so I am pretty sure that NumPy itself is not responsible. Therefore I
 tried `import numpy` to verify that it actually worked. It did not.

 The NumPy libraries fail to load because the symbol `_xerbla_` is missing
 in OpenBLAS, which seems to be related to the `lapack` variant. Apparently
 OpenBLAS is broken without `lapack` too (spews out a ton of errors when I
 try to install it), so now I try installing numpy with `+atlas` instead of
 OpenBLAS. ATLAS takes forever to build (it must have been running for at
 almost an hour whilst OpenBLAS only took a couple of minutes), but if it
 works that is a temporary solution until OpenBLAS is fixed. Unfortunately,
 according to some benchmarks I found, ATLAS is slower than OpenBLAS. On
 the other hand there is another option, the non-free MKL library, which
 apparently beats the other two at performance, but I did not find out that
 until the ATLAS build had been running for quite a while.

-- 
Ticket URL: <https://trac.macports.org/ticket/68787#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list