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

BGEM3EmbeddingFunction no attribute 'ListViewType' error on colab. #32

Closed
zc277584121 opened this issue Aug 23, 2024 · 1 comment
Closed

Comments

@zc277584121
Copy link

I'm trying to run following snippet:

from pymilvus.model.hybrid import BGEM3EmbeddingFunction

ef = BGEM3EmbeddingFunction(use_fp16=False, device="cpu")
dense_dim = ef.dim["dense"]
print(dense_dim)

It raised an error:

/usr/local/lib/python3.10/dist-packages/pyarrow/_parquet.pyx in init pyarrow._parquet()

AttributeError: module 'pyarrow.lib' has no attribute 'ListViewType'

How should I fix it?

@wxywb
Copy link
Collaborator

wxywb commented Aug 23, 2024

According to huggingface/datasets#6985
This error is raised due to datasets's dependency pyarrow(which is pre-installed on Colab) is not installed properly.
The quickest way to fix this is to run following snippet to force to reinstall pyarrow library and restart the session to make it available.

!pip install pyarrow==15.0.0

@wxywb wxywb closed this as completed Aug 29, 2024
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