Sam S.
Sam S.

Reputation: 803

Installing top2vec package, particularly in H2O Notebooks, and the error

After installing python top2vec package in H2O notebooks (!pip install top2vec), I am getting the following error when importing top2vec:

import top2vec

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I tried the techniques used in https://github.com/MaartenGr/BERTopic/issues/392 and also Unable to install top2vec, but none of them were helpful. It looks it is incompatible with numpy package. Any help on how to tackle the error in H2O environment much appreciated!

enter image description here

Upvotes: 0

Views: 116

Answers (1)

Tomáš Frýda
Tomáš Frýda

Reputation: 591

My guess would be that gensim is compiled against different version of numpy. I would try to recompile gensim (something like pip install --force-reinstall --ignore-installed --no-binary :all: gensim) or change the numpy version to the one that was there before the top2vec was installed.

Upvotes: 1

Related Questions