fix: support numpy 2.x for compatibility with markitdown (Issue #548)#562
Open
yang1002378395-cmyk wants to merge 1 commit intoagentuniverse-ai:masterfrom
Open
Conversation
…universe-ai#548) - Update numpy constraint from ^1.26.0 to >=1.26.0,<3.0.0 - Allows installation of markitdown 0.1.4+ which requires numpy >= 2.1.0 - Tested with faiss_store.py and readimage_tool.py (numpy usage compatible) - Resolves agentuniverse-ai#548
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
^1.26.0to>=1.26.0,<3.0.0Background
Users reported dependency conflict when trying to use the latest
markitdown(0.1.4+):Compatibility Analysis
Checked all numpy usage in codebase:
faiss_store.py- Uses basic numpy array operations (compatible with 2.x)readimage_tool.py- Uses cv2, PIL, numpy array ops (compatible with 2.x)doubao_embedding.py- Uses basic numpy (compatible)image_reader.py- Uses basic numpy (compatible)All numpy usage patterns in the codebase are compatible with numpy 2.x.
Testing
Checklist