oborchers / Fast_Sentence_Embeddings

Compute Sentence Embeddings Fast!
GNU General Public License v3.0
619 stars 83 forks source link

Avoid crushing due to AttributeError during poetry install #73

Open juanhuguet opened 1 year ago

juanhuguet commented 1 year ago

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