miso-belica / sumy

Module for automatic summarization of text documents and HTML pages.
https://miso-belica.github.io/sumy/
Apache License 2.0
3.46k stars 525 forks source link

"cannot import name 'Sequence' from 'collections'" error with Python 3.10 #172

Closed kburchfiel closed 2 years ago

kburchfiel commented 2 years ago

I'm currently using Python 3.10.4. When I try to run:

from sumy.parsers.plaintext import PlaintextParser

I receive the following error:

ImportError: cannot import name 'Sequence' from 'collections'

Is there a way to resolve this, or will I need to wait for sumy to be updated?

miso-belica commented 2 years ago

Hi, thank you. Yes, it seems it is duplicate of #170 and I should release a new version with the fix 🙂

miso-belica commented 2 years ago

Should be working now if you run pip install -U sumy 🙂 It's fixed in version 0.10.0+