bug fix: restricting scipy version
Running the notebook results in the error message:
cannot import name 'triu' from 'scipy.linalg'
This PR restricts the version of scipy to avoid the import error message
See: https://stackoverflow.com/questions/78279136/importerror-cannot-import-name-triu-from-scipy-linalg-gensim
Thanks for the contribution!
It seems that it still gives the same error: ImportError: cannot import name 'triu' from 'scipy.linalg'. The cause seem to be from gensim. Maybe we should limit the version of gensim instead?
Thanks for the contribution!
It seems that it still gives the same error:
ImportError: cannot import name 'triu' from 'scipy.linalg'. The cause seem to be from gensim. Maybe we should limit the version of gensim instead?
I hit the same issue. It seems that gensim is not constraining their use of scipy. The functionality itself is said to have been moved to numpy:
- https://numpy.org/doc/stable/reference/generated/numpy.triu.html
- https://docs.scipy.org/doc/scipy-1.12.0/reference/generated/scipy.linalg.triu.html#scipy.linalg.triu
The scipy.linalg.triu is marked as deprecated in scipy.