atxcowboy / megasearch

A plugin for Oobabooga TextUI that allows you to search multiple search engines. Initially we're using Google API or DuckDuckGo.
GNU General Public License v3.0
16 stars 1 forks source link

Failed to load the extension "megasearch #2

Open bunnywaffle opened 1 year ago

bunnywaffle commented 1 year ago

When I  enable it and restart the webUI, it gives me this error.

Traceback (most recent call last): File "G:\LangAI\oobabooga_windows\text-generation-webui\modules\extensions.py", line 34, in load_extensions exec(f"import extensions.{name}.script") File "", line 1, in File "G:\LangAI\oobabooga_windows\text-generation-webui\extensions\megasearch\script.py", line 38, in from summarizer import Summarizer ModuleNotFoundError: No module named 'summarizer'

image

atxcowboy commented 1 year ago

Then thing I dislike most about python is the missing requirements.txt in most projects and of course, I forgot to add it to my own first project too!

I have now added a requirements.txt.

Please try pip install -r requirements.txt

or

pip install beautifulsoup4
pip install bert-extractive-summarizer
pip install spacy
python -m spacy download en_core_web_sm
bunnywaffle commented 1 year ago

I don't know why, but I am still getting this error:

ERROR:Failed to load the extension "megasearch".Traceback (most recent call last):  File "G:\LangAI\oobabooga_windows\text-generation-webui\modules\extensions.py", line 34, in load_extensions    exec(f"import extensions.{name}.script")  File "", line 1, in   File "G:\LangAI\oobabooga_windows\text-generation-webui\extensions\megasearch\script.py", line 38, in     from summarizer import SummarizerModuleNotFoundError: No module named 'summarizer'