GaiZhenbiao / ChuanhuChatGPT

GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
https://huggingface.co/spaces/JohnSmith9982/ChuanhuChatGPT
GNU General Public License v3.0
15.24k stars 2.3k forks source link

[远程部署] 简短的错误描述 #316

Closed cuifeiran closed 1 year ago

cuifeiran commented 1 year ago

感谢提交 issue! 请尽可能完整填写以下信息,帮助我们更好地定位问题~ 请务必先查看 README 中是否已经对您的问题做出了解答。如果没有,请检索issue,查看有没有相同或类似的问题。如果您确信这是一个前人没有遇到的问题,欢迎提交该issue!注意,请编辑issue标题栏“简短的错误描述”部分,也请替换我们的issue模板中的原文。

错误描述

报错:ImportError: cannot import name 'BaseOutputParser' from 'langchain.output_parsers' (C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\langchain\output_parsers__init__.py)

复现操作

按照教程安装启动过程中出现报错

错误截图

如果可以,请提供错误的截图,如部署的网页截图与控制台错误报告的截图。

终端(控制台)中的错误报告

PS C:\Users\Administrator\Desktop\ChuanhuChatGPT-main> python ChuanhuChatbot.py Traceback (most recent call last): File "ChuanhuChatbot.py", line 10, in from overwrites import * File "C:\Users\Administrator\Desktop\ChuanhuChatGPT-main\overwrites.py", line 4, in from llama_index import Prompt File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index__init.py", line 18, in from llama_index.indices.common.struct_store.base import SQLDocumentContextBuilder File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\indices__init.py", line 4, in from llama_index.indices.keyword_table.base import GPTKeywordTableIndex File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\indices\keyword_table__init__.py", line 4, in from llama_index.indices.keyword_table.base import GPTKeywordTableIndex File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\indices\keyword_table\base.py", line 16, in from llama_index.indices.base import DOCUMENTS_INPUT, BaseGPTIndex File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\indices\base.py", line 23, in from llama_index.indices.prompt_helper import PromptHelper File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\indices\prompt_helper.py", line 12, in from llama_index.langchain_helpers.chain_wrapper import LLMPredictor File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\langchain_helpers\chain_wrapper.py", line 6, in from llama_index.llm_predictor.base import ( # noqa: F401 File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\llm_predictor\init.py", line 4, in from llama_index.llm_predictor.base import LLMPredictor File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\llm_predictor\base.py", line 15, in from llama_index.prompts.base import Prompt File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\prompts\init.py", line 3, in from llama_index.prompts.base import Prompt File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\prompts\base.py", line 11, in from llama_index.output_parsers.base import BaseOutputParser File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\output_parsers\init__.py", line 4, in from llama_index.output_parsers.langchain import LangchainOutputParser File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\llama_index\output_parsers\langchain.py", line 6, in from langchain.output_parsers import BaseOutputParser as LCOutputParser ImportError: cannot import name 'BaseOutputParser' from 'langchain.output_parsers' (C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\langchain\output_parsers\init__.py)

(请使用错误报告替换本行)

运行环境

python3.8、python3.11均有此问题

其他

补充说明

Keldos-Li commented 1 year ago

Duplicate with