Skip to content
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

chromadb==0.4.24 incompatible with latest NumPy #1

Open
gavmor opened this issue Aug 27, 2024 · 1 comment
Open

chromadb==0.4.24 incompatible with latest NumPy #1

gavmor opened this issue Aug 27, 2024 · 1 comment

Comments

@gavmor
Copy link

gavmor commented Aug 27, 2024

Got this error running create_db.py the first time. It's a known issue in chroma-core for which chroma have "made a deliberate choice of pinning the version of numpy we use to <2.0 in the latest Chroma release (0.5.3)."

Traceback (most recent call last):
  File "/home/user/workspace/other/llamaindex_rag/create_db.py", line 11, in <module>
    import chromadb
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/chromadb/__init__.py", line 3, in <module>
    from chromadb.api.client import Client as ClientCreator
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/chromadb/api/__init__.py", line 7, in <module>
    from chromadb.api.models.Collection import Collection
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/chromadb/api/models/Collection.py", line 7, in <module>
    import chromadb.utils.embedding_functions as ef
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/chromadb/utils/embedding_functions.py", line 7, in <module>
    from chromadb.api.types import (
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/chromadb/api/types.py", line 102, in <module>
    ImageDType = Union[np.uint, np.int_, np.float_]
                                         ^^^^^^^^^
  File "/home/user/workspace/other/llamaindex_rag/venv/lib/python3.11/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
@gpythomas
Copy link
Owner

I generated a cleaner requirements.txt file with PDM, it should take care of dependencies issues, let me know if you still have issues.

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

No branches or pull requests

2 participants