opencv-python icon indicating copy to clipboard operation
opencv-python copied to clipboard

fix: add explicit NumPy version constraints for Python 3.13+ and 3.14 (NumPy 2.x compatibility)

Open mulhamfetna opened this issue 6 months ago • 0 comments

Summary

  • Fix NumPy 2.x ABI compatibility issue for Python 3.13+ and 3.14
  • Changed to specify explicit minimum NumPy versions per Python version
  • This resolves the runtime error where wheels compiled against NumPy 1.x fail when used with NumPy 2.x

Changes

  • Python 3.9-3.12:
  • Python 3.13:
  • Python 3.14+:

Root Cause

The wheel metadata declared as dependency at install time, but the compiled wheels may have been built against NumPy 1.x headers, causing ABI incompatibility at runtime.

Fixes #1201

mulhamfetna avatar May 09 '26 17:05 mulhamfetna