Fix numpy version and remove scipy optional #347
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original goal of the task was to relax the forced

numpy
version constraint that was causing issues in Python 3.11 environments where numpy 2.x.x was required (like Google Colab)Problem
However, I quickly ran into dependency chain issues with:
scipy
-- the scientific computing stack is a bit like a dinosaur stillboto3
-- always an issueranx
-- not really sure why, but this one has 13+ separate dependencies and includes a pin onnumba
that expects certain things fromnumpy
and then it gets easily circularSolution:
Working together with claude, I was able to resolve and rebuild the environment and the lockfile with one major change.
ranx
is still an optional, but it's not an explicit extra.ranx
they have to install it withpip install ranx
instead ofpip install redisvl[ranx]
This could be some kind of limitation with the poetry version I was using. But I spent 6 hours on this with Claude and probably spent 50$ in credits on working through an onion of python environment. It now works and our issues on google colab are gone. I also think the package ranges are a bit more generous now.