arundo / adtk

A Python toolkit for rule-based/unsupervised anomaly detection in time series
https://adtk.readthedocs.io
Mozilla Public License 2.0
1.06k stars 143 forks source link

Pip installation fails due to missing openml model file.. #125

Closed joriws closed 3 years ago

joriws commented 3 years ago

On my windows 10 Python3.9 environment (Python from MS Store if it makes any diff) I try to install

python.exe -m pip install adtk ...... Installing collected packages: scikit-learn, matplotlib, adtk ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '...\LocalCache\local-packages\Python39\site-packages\sklearn\datasets\tests\data\openml\292\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz'

These files are installed and found on that particular directory Mode LastWriteTime Length Name


-a---- 7.4.2021 10.47 551 api-v1-json-data-292.json.gz -a---- 7.4.2021 10.47 553 api-v1-json-data-40981.json.gz -a---- 7.4.2021 10.47 306 api-v1-json-data-features-292.json.gz -a---- 7.4.2021 10.47 306 api-v1-json-data-features-40981.json.gz

joriws commented 3 years ago

Ok, this is windows registry error. Found scikit-learn some tips and this also fixed this issue..

  1. Type “regedit” in the Windows start menu to launch regedit.
  2. Go to the Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem key.
  3. Edit the value of the LongPathsEnabled property of that key and set it to 1.