-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use numpy 2.0 because old thinc version is used #13607
Comments
Same problem here. Also still installs numpy 1.26.4. |
thinc released 8.3.0 with a dependency on numpy 2: https://github.com/explosion/thinc/releases/tag/release-v8.3.0 I launched a local build of spaCy updating the Can we please get this bumped in spaCy please? (If both numpy 1 and numpy 2 compatibility are desired, is it worth considering bumping the version, similar to how thinc did it?) |
Version 3.7.6 should be built against numpy v2. Is it working for you? https://github.com/explosion/spaCy/releases/tag/release-v3.7.6 |
@honnibal No 3.7.6 is actually building against numpy 1.26 For example, the before_build of the cp312-manylinux_x86_64 wheel:
Looks like at first it matches 2.1.0 but later goes back to 1.26.4. This is because thinc 8.2.x depends on numpy <2, we need to upgrade to thinc 8.3.x which updates to numpy 2. Would you be able to help bump the dependency on a newer thinc and possibly release a 3.7.7 which will really build against numpy 2? Thanks! |
You're right, something went wrong with the dependencies on that version. I'd already published a v8.3.0 for Thinc that updated numpy, I'm building a v3.7.7 that should build against the correct dependencies now. |
Thanks @honnibal ! Looks like build for 3.7.8 succeeded and spot checking the logs dependencies look correct, looking forward to seeing that as an official releas. Much appreciated. |
Should be published now. I published as v3.8, as the change in dependencies might be disruptive for some folks. |
Very nice, thank you so much! |
Does this file need an update? Right now I see |
Looks like the models themselves might have restrictive requirements too:
|
And I'm also seeing a runtime dependency on thinc 8.2, probably from here: https://github.com/explosion/spaCy/blob/v3.8.x/requirements.txt#L6
Can you fix that one as well? |
Actually more likely this one is the source of the install requirement for thinc 8.2: https://github.com/explosion/spaCy/blob/v3.8.x/setup.cfg#L53 |
This should now be fixed with spaCy v3.8. Please reopen or rereport if there are problems. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the behaviour
spaCy 3.7.6 was built against numpy 2.0, but still lists
thinc>=8.2.2,<8.3.0
as a dependency. thinc does support numpy 2.0 until version 8.3.0, so spaCy is unable to use it.Your Environment
The text was updated successfully, but these errors were encountered: