I was trying to install the LSST stack via EUPS on macOS 10.12 (Sierra); however, I am trying to do it against a python.org framework build rather than *conda. (So I will accept that an appropriate response may be “don’t do that”.)
During the install, meas_base-13.0 fails during the tests, which is due to the following code in testVariance.py:
bad = size//2 + i*width
var.getArray()[bad, :] = float("nan")
Here, width=2.0
– a float, not an integer, and hence bad
is a float, which means that we are trying to index a numpy array with a float – this used to be OK, but in recent versions is a bug.
The patch is simple: bad = int(size//2 + i*width)
.