question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot import name 'summarize'

See original GitHub issue

After using pip install and going into my Python 3.8 shell, if I enter:

from summarizer import Summarizer

I get the error:

ImportError: cannot import name 'summarize' from partially initialized module 'summarizer' (most likely due to a circular import)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dmmiller612commented, Apr 14, 2020

Hello Shuntera,

I would verify that the module is correct. We frequently get issues around wrong imports of the summarizer (there is another package that also has a package summarize).

0reactions
J-E-J-Scommented, Aug 26, 2022

Seems likely that @shuntera might have named the file summarizer.py which will cause problem with imports. See https://stackoverflow.com/questions/64807163/importerror-cannot-import-name-from-partially-initialized-module-m. Try rename the file to somthing different if this is the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to import from `gensim.summarization` module in ...
The summarization code was removed from Gensim 4.0. ... Despite its general-sounding name, the module will not satisfy the majority of use ...
Read more >
No module named 'gensim.summarization' - Using Streamlit
I am trying to deploy an app that uses NLP using GENSIM library. I included in requeriments.txt these components:
Read more >
No module named gensim.summarization summarizer Solved
No module named gensim. summarization.summarizerRead detail and Copy Code from here: ...
Read more >
cannot import name 'VectorPlotter' from 'seaborn._core ...
Hello, I have been using qiime2 for a while without issues. I tried to set up a Jupyter notebook to use qiime2 API...
Read more >
bert-extractive-summarizer - PyPI
Extractive Text Summarization with BERT. ... from summarizer import Summarizer body = 'Text body that you want to summarize with BERT' body2 =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found