LeonYang95 / PLELog

Implementation of PLELog in ICSE 2021 accepted paper:Semi-supervised Log-based Anomaly Detection via Probabilistic Label Estimation.
Apache License 2.0
71 stars 28 forks source link

Some problems with the requirements.txt #16

Closed tywofxd closed 1 year ago

tywofxd commented 1 year ago

Hello! Thanks for such a great sharing. I configured my virtual env based on the provided requirements.txt using pip, but some error occured.

  1. After the establishment of the virtual env, I started to run the project. The first error occured was: ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject. I searched for solutions, and finally this one worked for me. https://github.com/scikit-learn-contrib/hdbscan/issues/457

I did some experiments, but found that this seems to be a problem with the hdbscan package itself, and has nothing to do with the version of numpy. If you used the command pip install hdbscan to install the hdbscan package in your virtual environment, please uninstall it, and then try to use the command conda install -c conda-forge hdbscan to reinstall hdbscan.

  1. I used the above command to install hdbscan==0.8.27, but then I got the second error: TypeError: init() got an unexpected keyword argument 'cachedir'. This solution helped me: https://stackoverflow.com/questions/73830225/init-got-an-unexpected-keyword-argument-cachedir-when-importing-top2vec I installed hdbscan==0.8.29 using conda, and then everything worked fine.

I put an issue here just want to help anyone who want to establish the env for your code. Thanks again for your great work.

LeonYang95 commented 1 year ago

Thanks for your great effort and valuable advice, I'll add this issue into readme.