chatterbox icon indicating copy to clipboard operation
chatterbox copied to clipboard

fix: Support Python 3.12 by relaxing numpy version constraint

Open devbyteai opened this issue 3 weeks ago • 2 comments

Summary

Relax numpy version constraint from >=1.24.0,<1.26.0 to >=1.24.0,<2.0.0 Enables installation on Python 3.12 and 3.13

Problem

Fixes #77, #104, #231, #240, #243, #272, #319, #322, #323, #390

The numpy<1.26.0 constraint prevented installation on Python 3.12+ because numpy 1.24.x/1.25.x cannot be built from source (pkgutil.ImpImporter was removed in Python 3.12, and distutils was removed from stdlib).

Solution

Changed to >=1.24.0,<2.0.0 to allow prebuilt numpy wheels for Python 3.12/3.13 while maintaining numpy 1.x API compatibility.

Test

Verified with pip install -e . on Python 3.12:

  • Installs numpy 1.26.4
  • All imports work correctly

devbyteai avatar Dec 25 '25 18:12 devbyteai

Numpy 2.3.5 works fine too, btw. (2.4 doesn't due to numba requirements.)

akx avatar Jan 05 '26 11:01 akx