-
Notifications
You must be signed in to change notification settings - Fork 374
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
ValueError: numpy.ndarray size changed #193
Comments
Same issue seems to be coming from gensim
But really the issue seems to be |
I'm having the same issue running in a Kaggle notebook. I found these relevant issues, but I've tried the suggestions and they didn't work for me. Seems like an old version of top2vec had this issue too. |
Just an update: I was running Top2Vec in Databricks (which was giving me the same problem with BERTopic). Now I migrated everything to Google Colab and it works fine. Probably there is one package which is giving some troubles. |
@edogab33 thanks! Colab also worked for me. That's strange |
This sounds like an environment issue. |
Yes, it is. The problem is that I checked each external library version and they were all correct. |
I'm running Top2Vec in Databricks and this error appears:
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
Code:
from top2vec import Top2Vec
model = Top2Vec(messages_lst, embedding_model='distiluse-base-multilingual-cased')
Environment:
python3.8.8
numpy==1.20.0 (also 1.21.x doesn't work)
scipy==1.5.2
hdbscan==0.8.27
Seems to be related to hdbscan but doing
!pip install hdbscan --no-cache-dir --no-binary :all: --no-build-isolation
(also with numpy), as suggested in other issues, doesn't solve the problem.The text was updated successfully, but these errors were encountered: