Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'TransformerSummarizer' from 'summarizer' #2

Open
Patrikkk opened this issue Dec 23, 2022 · 4 comments

Comments

@Patrikkk
Copy link

Patrikkk commented Dec 23, 2022

When I run textsummarize.py, I get the following error:

  File "H:\GitHub\Text_Summarization_for_Youtube-Videos_Using_AssemblyAI\textsummarizex.py", line 1, in <module>
    from summarizer import TransformerSummarizer
ImportError: cannot import name 'TransformerSummarizer' from 'summarizer' (C:\Users\patri\AppData\Local\Programs\Python\Python310\lib\site-packages\summarizer\__init__.py)```
@Patrikkk Patrikkk changed the title Nothing happening ImportError: cannot import name 'TransformerSummarizer' from 'summarizer' Dec 23, 2022
@anush-933
Copy link
Owner

anush-933 commented Dec 24, 2022 via email

@Patrikkk
Copy link
Author

Thanks for the reply.
I already had summarizer installed when I posted the issue.

PS C:\Windows\system32> pip install summarizer
Requirement already satisfied: summarizer in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (0.0.7)
Requirement already satisfied: nltk in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from summarizer) (3.8)
Requirement already satisfied: tqdm in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from nltk->summarizer) (4.64.1)
Requirement already satisfied: regex>=2021.8.3 in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from nltk->summarizer) (2022.10.31)
Requirement already satisfied: joblib in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from nltk->summarizer) (1.2.0)
Requirement already satisfied: click in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from nltk->summarizer) (8.1.3)
Requirement already satisfied: colorama in c:\users\patri\appdata\local\programs\python\python310\lib\site-packages (from click->nltk->summarizer) (0.4.6)
PS C:\Windows\system32>

@anush-933
Copy link
Owner

It seems you are running the program files in H: directory. Try to tun in c:\users\patri itself.

@anush-933 anush-933 reopened this Dec 24, 2022
@anush-933
Copy link
Owner

anush-933 commented Dec 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants