Fixed chroma-hnswlib installation - #104
Merged
mounacheikho-cmd merged 2 commits intoAug 10, 2026
Merged
Conversation
suung
previously approved these changes
Jul 30, 2026
Collaborator
Author
|
After reviewing the codebase, I found that Chroma is not imported or used by the application. Rather than upgrading an unused dependency, this PR now removes It also removes the unused Validation:
|
This was referenced Jul 31, 2026
This was referenced Aug 10, 2026
nicooxxx
approved these changes
Aug 10, 2026
This was referenced Aug 10, 2026
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
chroma-hnswlibfrom0.7.3to0.7.6.chromadbfrom0.4.24to0.5.5.Problem
chroma-hnswlib 0.7.3does not provide a prebuilt wheel for CPython 3.12 on macOS ARM64.When installing the requirements on Apple Silicon with Python 3.12, pip therefore falls back to the source distribution and attempts to compile the package's native C++ extension. That build fails with:
Creating a fresh virtual environment does not resolve the failure because it continues to use the same Python version and platform for which the wheel is unavailable.
Why this works
chroma-hnswlib 0.7.6publishes a prebuilt CPython 3.12 wheel for macOS ARM64. Pip can install that binary directly instead of compiling the extension locally.chromadbis upgraded at the same time because its dependency is pinned to a specificchroma-hnswlibversion:chromadb 0.4.24requireschroma-hnswlib==0.7.3.chromadb 0.5.5requireschroma-hnswlib==0.7.6.ChromaDB 0.5.5 also no longer requires
pulsar-client, and the application does not import it directly, so the explicit pin can be removed.Validation
Tested in a clean CPython 3.12.2 environment on macOS ARM64:
requirements.txtsuccessfully.chroma-hnswlib 0.7.6wheel.pulsar-clientwas not installed.