Yale-LILY / SummerTime

An open-source text summarization toolkit for non-experts. EMNLP'2021 Demo
https://arxiv.org/abs/2108.12738
Apache License 2.0
264 stars 30 forks source link

Unable to install Summertime in the provided Google Colab notebook #119

Open yungsinatra0 opened 1 year ago

yungsinatra0 commented 1 year ago

Hi, I've tried following the provided Colab notebook in this repo, but I'm unable to properly install summertime (and some necessary modules) which makes the whole notebook unusable.

Here's an example of an error message I was getting yesterday:

Obtaining file:///content/SummerTime
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: cython in /usr/local/lib/python3.10/dist-packages (from summertime==1.2.1) (0.29.35)
Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from summertime==1.2.1) (1.22.4)
Collecting click==7.1.2 (from summertime==1.2.1)
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 kB 3.0 MB/s eta 0:00:00
Collecting transformers~=4.5.1 (from summertime==1.2.1)
  Downloading transformers-4.5.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 27.1 MB/s eta 0:00:00
Collecting torch~=1.8 (from summertime==1.2.1)
  Downloading torch-1.13.1-cp310-cp310-manylinux1_x86_64.whl (887.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 887.5/887.5 MB 1.7 MB/s eta 0:00:00
Collecting lexrank~=0.1.0 (from summertime==1.2.1)
  Downloading lexrank-0.1.0-py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.8/69.8 kB 7.3 MB/s eta 0:00:00
Collecting nltk==3.6.2 (from summertime==1.2.1)
  Downloading nltk-3.6.2-py3-none-any.whl (1.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 70.5 MB/s eta 0:00:00
Collecting spacy==3.0.6 (from summertime==1.2.1)
  Downloading spacy-3.0.6.tar.gz (7.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.1/7.1 MB 81.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pytextrank (from summertime==1.2.1)
  Downloading pytextrank-3.2.4-py3-none-any.whl (30 kB)
Collecting datasets~=1.6.2 (from summertime==1.2.1)
  Downloading datasets-1.6.2-py3-none-any.whl (221 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 221.8/221.8 kB 18.6 MB/s eta 0:00:00
Collecting sentencepiece~=0.1.95 (from summertime==1.2.1)
  Downloading sentencepiece-0.1.99-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 45.5 MB/s eta 0:00:00
Collecting summ-eval==0.70 (from summertime==1.2.1)
  Downloading summ_eval-0.70-py3-none-any.whl (62.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.5/62.5 MB 9.2 MB/s eta 0:00:00
Collecting jupyter (from summertime==1.2.1)
  Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)
Collecting gdown~=4.2.0 (from summertime==1.2.1)
  Downloading gdown-4.2.2.tar.gz (13 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting readability-lxml (from summertime==1.2.1)
  Downloading readability_lxml-0.8.1-py3-none-any.whl (20 kB)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.10/dist-packages (from summertime==1.2.1) (4.11.2)
Collecting orjson (from summertime==1.2.1)
  Downloading orjson-3.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.7/138.7 kB 14.2 MB/s eta 0:00:00
Collecting gensim~=3.8.3 (from summertime==1.2.1)
  Downloading gensim-3.8.3.tar.gz (23.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.4/23.4 MB 61.5 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting sklearn (from summertime==1.2.1)
  Downloading sklearn-0.0.post5.tar.gz (3.7 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.

This is not the only error I'd get - I've been getting errors with building wheels for gensim & tokenizers modules as well.

I've opened a new thread on Stack Overflow, where I explain what I've tried so far. At the moment of writing, the issue still hasn't been solved.

One of my colleagues mentioned that they've had a similar issue with SummerTime and they believe it's because Colab has updated some libraries/modules and it's not compatible with SummerTime anymore. Could this be the cause? In that case, would using conda or a virtual environment solve this?

I'd appreciate if anyone can point out what the issue could be. Thanks!