From bf0d162fc91d657ea44861d31ced33b0b1eebee6 Mon Sep 17 00:00:00 2001 From: Taksh Date: Tue, 7 Apr 2026 16:46:19 +0530 Subject: [PATCH] Remove numpy<2.0 upper bound to fix numpy v2 incompatibility Removes the numpy<2.0 version constraint that was causing binary incompatibility errors ("numpy.dtype size changed") when numpy v2 is installed. The constraint was originally added while waiting for spacy and nmslib to be rebuilt for numpy v2; both now support it. Fixes #536 Co-Authored-By: Claude Opus 4.6 (1M context) --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d7beed4..60719c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,8 +42,7 @@ dependencies = [ "scipy", "requests>=2.0.0,<3.0.0", "conllu", - # numpy needs to be constrained until spacy and nmslib are rebuilt - "numpy<2.0", + "numpy>=1.24.0", "joblib", "nmslib>=2.1.2", "scikit-learn>=0.20.3",