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

ModuleNotFoundError: No module named 'summertime' #117

Open fabioperez opened 2 years ago

fabioperez commented 2 years ago

Hello! I'm trying to install summertime, but I cannot import it after installation.

How to reproduce

Run on colab:

%pip install pyrouge@git+https://github.com/bheinzerling/pyrouge.git
%pip install en_core_web_sm@https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.0.0/en_core_web_sm-3.0.0-py3-none-any.whl
%pip install summertime
from summertime import model
> ModuleNotFoundError: No module named 'summertime'

Edit: even after updating pip, the problem is still there.

The package is correctly installed:

%pip freeze | grep summertime
> summertime==1.2.1

I've also tried to install on Python 3.9, and the problem persists.

tristanreid commented 2 years ago

My coworker and I are also experiencing this issue. He found that installing from source is working, I hope the pip install can also be fixed at some point.

YebowenHu commented 2 years ago

I have encountered this problem as well. Fix it by copy the SummerTime/summertime folder to my python site-packages folder. It's working so far.