Fast_Sentence_Embeddings
Fast_Sentence_Embeddings copied to clipboard
Avoid crushing due to AttributeError during poetry install
The hack around numpy during installation with poetry throws an attribute error due to the lack of the attribute during.
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
(...)
AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'
This is due to the hack to prevent numpy to prevent it is still in its setup process.
IMHO, this has been fixed in gensim 4.3.0 and It is not causing problems anymore so it is not needed.
I added a try/except in order to let the installation continue in case it is not found