explosion / spaCy

💫 Industrial-strength Natural Language Processing (NLP) in Python
https://spacy.io
MIT License
30.12k stars 4.4k forks source link

Numpy 2.0 update causing issues with other software #13669

Open Josh-XT opened 2 weeks ago

Josh-XT commented 2 weeks ago

Forcing numpy to 2.0+ forces breaking changes on other software. Unless it is absolutely required to use 2.0+, can this be reverted?

https://github.com/explosion/spaCy/commit/184e508d9c8db6fc89c60e5ec8e94324817259c9

rphellan commented 2 weeks ago

Yes, also numpy 2.0.0 requires python 3.9. Then, the line numpy>=2.0.0; python_version < "3.9" leads to a bug.

Darshan2104 commented 1 week ago

Yes it is creating issue. I am facing issue while working with keyphrase-vectorizers==0.0.10 where it is using spacy version >=3.0.0 and it is installing spacy==3.8.2 i'm using python3.8 with numpy==1.24.3 which is compatable but spacy3.8.2 is looking for numpy2.0+ and that is not compatable with python3.8.

lsmith77 commented 1 week ago

adding fasttext to the list of libs not compatible (and unfortunately also not maintained). we have found it to be the best language detection for shorter text.