fzi-forschungszentrum-informatik / TSInterpret

An Open-Source Library for the interpretability of time series classifiers
BSD 3-Clause "New" or "Revised" License
121 stars 9 forks source link

Installation Error due to "sklearn" package name #13

Closed ulf1 closed 1 year ago

ulf1 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

Collecting sklearn
  Downloading sklearn-0.0.post1.tar.gz (3.6 kB)
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

To Reproduce Steps to reproduce the behavior. Also State the OS and the versions you are using.

run in a Colab notebook

!pip install TSInterpret

Additional context Add any other context about the problem here.

JHoelli commented 1 year ago

Hi, thanks for the feedback. For me it was not possible to replicate this issue in google colab. !pip install TSInterpret works fine with python 3.9 for me. Can you maybe give a few more details (e.g., Python version, GPU/ CPU ) ?

Thank a lot in advance. Best Jacqueline

ulf1 commented 1 year ago

!pip install TSInterpret

https://colab.research.google.com/drive/1cq-Ku9Owbkf76RExVEuZS0gIedSKGhgu?usp=sharing

ulf1 commented 1 year ago

it works with

!git clone https://github.com/fzi-forschungszentrum-informatik/TSInterpret.git
!cd TSInterpret && pip install -e .

but this isn't great as many people consider tools like Colab to tinker with new tools.

JHoelli commented 1 year ago

For Completeness:

Issue also occurs when installing TSInterpret in python 3.7. due to deprecation of sklearn. Can currently not be solved for python 3.7. due to dependencies of used packages (e.g., mkdocs relies on sklearn).

Preferably use python >= 3.9. .