miaoshouai / miaoshouai-assistant

MiaoshouAI Assistant for Automatic1111 Webui
Apache License 2.0
295 stars 25 forks source link

No extension tabs after installation. #73

Open Arashi3516 opened 3 weeks ago

Arashi3516 commented 3 weeks ago

Here is logs: logs_location: D:\SoftWare\SD\sd.webui\webui\extensions\miaoshouai-assistant\logs *** Error loading script: main.py Traceback (most recent call last): File "D:\SoftWare\SD\sd.webui\webui\modules\scripts.py", line 508, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "D:\SoftWare\SD\sd.webui\webui\modules\script_loading.py", line 13, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "D:\SoftWare\SD\sd.webui\webui\extensions\miaoshouai-assistant\scripts\main.py", line 4, in from scripts.assistant.miaoshou import MiaoShouAssistant File "D:\SoftWare\SD\sd.webui\webui\extensions\miaoshouai-assistant\scripts\assistant\miaoshou.py", line 15, in from scripts.runtime.msai_runtime import MiaoshouRuntime File "D:\SoftWare\SD\sd.webui\webui\extensions\miaoshouai-assistant\scripts\runtime\msai_runtime.py", line 27, in from gpt_index import SimpleDirectoryReader, GPTListIndex, GPTSimpleVectorIndex, LLMPredictor, PromptHelper File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index__init.py", line 18, in from gpt_index.indices.common.struct_store.base import SQLDocumentContextBuilder File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\indices__init.py", line 4, in from gpt_index.indices.keyword_table.base import GPTKeywordTableIndex File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\indices\keyword_table\init__.py", line 4, in from gpt_index.indices.keyword_table.base import GPTKeywordTableIndex File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\indices\keyword_table\base.py", line 16, in from gpt_index.indices.base import DOCUMENTS_INPUT, BaseGPTIndex File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\indices\base.py", line 23, in from gpt_index.indices.prompt_helper import PromptHelper File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\indices\prompt_helper.py", line 12, in from gpt_index.langchain_helpers.chain_wrapper import LLMPredictor File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\gpt_index\langchain_helpers\chain_wrapper.py", line 8, in from langchain import Cohere, LLMChain, OpenAI File "D:\SoftWare\SD\sd.webui\system\python\lib\site-packages\langchain\init.py", line 145, in getattr__ from langchain_community.llms import Cohere ModuleNotFoundError: No module named 'langchain_community'

Charmandrigo commented 3 weeks ago

Yeah this addon likely broke because it hasn't been updated in over half a year. If it has been abandoned then there's not much that can be done

SwShard commented 1 week ago

Manually installing dependencies for the extension via (venv) was able to help me: [ pip install -r .\extensions\miaoshouai-assistant\requirements.txt ] But before that, it is better to first delete the old venv and configure it again.