Subject: 2.12.0 – ValueError in zipline/data/_equities.pyx when loading windowed EquityPricing data (usstock-1min)
Description:
After upgrading to QuantRocket 2.12.0, any Zipline backtest that requests a rolling window of price or volume data from the usstock-1min bundle fails with:
ValueError: could not broadcast input array from shape (0,) into shape (26,)
File "zipline/data/_equities.pyx", line 206, in zipline.data._equities._read_bcolz_data
outbuf[offset:offset + (last_row + 1 - first_row), asset] =\
Key observations:
- An empty
Pipeline()succeeds. - Any use of
SimpleMovingAverage(inputs=[EquityPricing.close], window_length=...)or aCustomFactorwithEquityPricing.volume(or.close) triggers the error. - The failure occurs inside the bcolz reader while the pipeline engine is materializing raw arrays (before any user
computemethod runs). - The problem began immediately after the 2.12.0 upgrade (NumPy 1.26 → 2.3).
- Reproduced with both a full strategy and minimal test pipelines on the
usstock-1minbundle. - Date range and universe size affect the exact output shape, but the
(0,)broadcast error remains.
Environment:
- QuantRocket 2.12.0
- Bundle:
usstock-1min - Platform: macOS (Docker Desktop)
This appears to be a NumPy 2.x compatibility issue in the compiled equity data reader. Happy to provide additional logs or a minimal failing strategy file if useful.