[MacPorts] #59022: py-numpy: Anything that imports numpy crashes python on sierra/10.12 in a vm/virtual machine

MacPorts noreply at macports.org
Fri Jun 26 20:56:07 UTC 2020


#59022: py-numpy: Anything that imports numpy crashes python on sierra/10.12 in a
vm/virtual machine
-------------------------+-----------------------------
  Reporter:  ryandesign  |      Owner:  michaelld
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  sierra haspatch
      Port:  py-numpy    |
-------------------------+-----------------------------
Changes (by ryandesign):

 * keywords:  sierra => sierra haspatch


Comment:

 The patch was easy to backport. It required no changes to apply to
 py35-numpy @1.18.5 and only a tiny change to apply to py27-numpy @1.16.6.

 https://github.com/macports/macports-ports/pull/7550

 To test this, I first installed py35-numpy @1.18.5 on a 10.12 VM and
 verified that trying to install py35-matplotlib and py35-svipc failed as
 reported in this ticket. I then added my patch, rebuilt py35-numpy, and
 verified that py35-matplotlib and py35-svipc were then able to build.

 For py27-numpy @1.16.6 it's a slightly different situation.
 py27-matplotlib and py27-svipc built successfully with or without the
 numpy patch. Presumably numpy 1.18 uses the cpu detection functions during
 startup and so it crashes right away whereas 1.16 doesn't. However we do
 know that the pre-1.19 cpu detection functions are broken, so I think they
 should still be replaced in 1.16. I suspect that there are other codepaths
 that would lead to the cpu detection functions being used in 1.16 (just
 not right at startup) so that a crash might still happen during usage of
 numpy if we don't fix it.

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


More information about the macports-tickets mailing list