salesforce / logai

LogAI - An open-source library for log analytics and intelligence
BSD 3-Clause "New" or "Revised" License
393 stars 58 forks source link

scipy version issue #71

Open DarkRemino opened 2 months ago

DarkRemino commented 2 months ago

When installing with the given commands, one of the packages installs a newer version of scipy which has depreciated the "tri", "triu" and "tril" functions. Because of the missing functions, the program can't start. The resulting error code looks something like this:

ImportError: cannot import name 'triu' from 'scipy.linalg.special_matrices' (/var/www/logai/venv/lib64/python3.9/site-packages/scipy/linalg/special_matrices.py)

It can be resolved by installing the latest version of scipy that still supports them: pip install scipy==1.10.1

(taken from this Stack Overflow problem)