Skip to content

fix: support numpy 2.x for compatibility with markitdown (Issue #548)#562

Open
yang1002378395-cmyk wants to merge 1 commit intoagentuniverse-ai:masterfrom
yang1002378395-cmyk:fix/numpy-2-compat-issue-548
Open

fix: support numpy 2.x for compatibility with markitdown (Issue #548)#562
yang1002378395-cmyk wants to merge 1 commit intoagentuniverse-ai:masterfrom
yang1002378395-cmyk:fix/numpy-2-compat-issue-548

Conversation

@yang1002378395-cmyk
Copy link
Copy Markdown

Summary

Background

Users reported dependency conflict when trying to use the latest markitdown (0.1.4+):

Because sample-standard-app depends on agentuniverse (0.0.19) which depends on numpy (>=1.26.0,<2.0.0), numpy is required. So, because sample-standard-app depends on numpy (>=2.1.0), version solving failed.

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

  • ✅ No breaking API changes in numpy 2.x for the functions used
  • ✅ faiss-cpu supports numpy 2.x
  • ✅ pandas, pyarrow dependencies also support numpy 2.x

Checklist

  • Code changes tested locally
  • No breaking changes to existing functionality
  • Commit message follows conventional commits

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Support numpy >= 2.0 for compatibility with markitdown

1 participant