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

[BUG] Errors w/ Python 3.11 #2

Closed
lhl opened this issue Sep 1, 2023 · 3 comments
Closed

[BUG] Errors w/ Python 3.11 #2

lhl opened this issue Sep 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@lhl
Copy link

lhl commented Sep 1, 2023

Not sure if you encountered this but when I created a new conda env (defaulted to Python 3.11) and installed instrukt, I got an error running it due to this known bug with older versions of wrapt: GrahamDumpleton/wrapt#196

instrukt is currently using wrapt-1.13.3, looks like it's fixed in 1.14.0 so I just upgraded wrapt to the latest version (1.15.0) now.

After I got a second error:

/home/lhl/mambaforge/envs/test/lib/python3.11/site-packages/chromadb/segment/impl/vector/local_persistent_hnsw.py", line 405, in get_file_handle_count
    hnswlib_count = hnswlib.Index.file_handle_count
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'hnswlib.Index' has no attribute 'file_handle_count'

Apparently also known bugs:

Solution was to make sure chromadb and chroma-hnswlib were updated and to uninstall hnswlib

Once these two issues were fixed, I was able to run w/ Python 3.11. If I installed an env w/ python=3.10, it ran OOTB.

@lhl lhl added the bug Something isn't working label Sep 1, 2023
@blob42
Copy link
Owner

blob42 commented Sep 1, 2023

Thanks for the detailed issue @lhl

@blob42
Copy link
Owner

blob42 commented Sep 2, 2023

@lhl I updated the dependencies and made an explicit requirement on wrapt. Tested on 3.10 and 3.11 and seems working fine now. Let me know if the latest 0.6.3 fixes the issue for you as well. Note that g++ is required to compile chroma-hnswlib

@lhl
Copy link
Author

lhl commented Sep 2, 2023

Gave the latest version a try in a new 3.11 conda env and lgtm

@lhl lhl closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants