-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Bug]: getting 'hnswlib.Index' has no attribute 'file_handle_count' error when using PersistentClient #931
Comments
// in python is floor division not comment - https://www.freecodecamp.org/news/what-does-double-slash-mean-in-python/. That line should not be commented out I suspect something is wrong with your environment. Can you try deleting your env and reinstalling the deps? |
thanks for checking. it looks like my env. i checked again - and after removing my existing hnswlib module (but keeping the chroma-hnswlib module), it works fine. |
Ah - glad you figured it out! Closing this out. |
Are you installing both hnswlib and chroma-hnswlib? That will cause issues as mentioned above. Please run pip freeze and check |
Other people also get this error Wrong comment symbol used |
There seems to be a trivial bug with a wrong comment sign from another programming language. I stumbled upon it when testing nano-graphrag with Kotaemon (https://github.com/Cinnamon/kotaemon) Other mentions of this bug: Cinnamon/kotaemon#440 chroma-core#931
What happened?
i am using the latest chromadb (v0.4.4) and has an error running the following standard example code:
throws an error:
AttributeError: type object 'hnswlib.Index' has no attribute 'file_handle_count'
looking at the stack trace, it seems like there is a bug in:
chromadb/segment/impl/manager/local.py:73
i suspect the intention is to comment out line 73? (wrong syntax // for java, # for python)
i manually changed this to # in my local version of local.py, and it works.
hope this helps.
thanks
Versions
Chromadb 0.4.4
Chroma-hnswlib 0.7.2
Python 3.10.0
MacOS 13.4.1, Ubuntu 22.04.2
Relevant log output
The text was updated successfully, but these errors were encountered: