No module named 'gensim.summarization'

Hi @htsnet - Thank you for sharing your code! :grinning:

The error is triggered on line 8 in your app.py file, where you import from gensim.summarization. The error tells us that gensim.summarization is not found in the version of Genism in requirements.txt: gensim==4.0.1.

On Gensim’s Github changelog, they’ve said that the gensim.summarization module has been removed in versions Gensim 4.x because it was an unmaintained third-party module.

To continue using gensim.summarization, you will have to downgrade the version of Gensim in requirements.txt. Try replacing it with gensim==3.8.3 or older.

Let us know if downgrading to gensim==3.8.3 works! :crossed_fingers:

Best,
Snehan

2 Likes