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

[远程部署] 在VPS上部署的时候启动脚本出错 #313

Closed ste0815 closed 1 year ago

ste0815 commented 1 year ago

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

错误描述

git拉取下来之后,pip安装都没问题,什么都不修改直接运行脚本就会报错。

复现操作

描述出现错误的操作步骤。

错误截图

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

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

[root@attckw ChuanhuChatGPT]# python3 ChuanhuChatbot.py Traceback (most recent call last): File "/opt/chatgpt/ChuanhuChatGPT/ChuanhuChatbot.py", line 10, in from overwrites import * File "/opt/chatgpt/ChuanhuChatGPT/overwrites.py", line 4, in from llama_index import Prompt File "/usr/local/lib/python3.10/site-packages/llama_index/init.py", line 18, in from llama_index.indices.common.struct_store.base import SQLDocumentContextBuilder File "/usr/local/lib/python3.10/site-packages/llama_index/indices/init.py", line 4, in from llama_index.indices.keyword_table.base import GPTKeywordTableIndex File "/usr/local/lib/python3.10/site-packages/llama_index/indices/keyword_table/init.py", line 4, in from llama_index.indices.keyword_table.base import GPTKeywordTableIndex File "/usr/local/lib/python3.10/site-packages/llama_index/indices/keyword_table/base.py", line 16, in from llama_index.indices.base import DOCUMENTS_INPUT, BaseGPTIndex File "/usr/local/lib/python3.10/site-packages/llama_index/indices/base.py", line 23, in from llama_index.indices.prompt_helper import PromptHelper File "/usr/local/lib/python3.10/site-packages/llama_index/indices/prompt_helper.py", line 12, in from llama_index.langchain_helpers.chain_wrapper import LLMPredictor File "/usr/local/lib/python3.10/site-packages/llama_index/langchain_helpers/chain_wrapper.py", line 6, in from llama_index.llm_predictor.base import ( # noqa: F401 File "/usr/local/lib/python3.10/site-packages/llama_index/llm_predictor/init.py", line 4, in from llama_index.llm_predictor.base import LLMPredictor File "/usr/local/lib/python3.10/site-packages/llama_index/llm_predictor/base.py", line 15, in from llama_index.prompts.base import Prompt File "/usr/local/lib/python3.10/site-packages/llama_index/prompts/init.py", line 3, in from llama_index.prompts.base import Prompt File "/usr/local/lib/python3.10/site-packages/llama_index/prompts/base.py", line 11, in from llama_index.output_parsers.base import BaseOutputParser File "/usr/local/lib/python3.10/site-packages/llama_index/output_parsers/init.py", line 4, in from llama_index.output_parsers.langchain import LangchainOutputParser File "/usr/local/lib/python3.10/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' (/usr/local/lib/python3.10/site-packages/langchain/output_parsers/init.py)

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

运行环境

请填写以下列表:

其他

补充说明

Keldos-Li commented 1 year ago

表现与 #314 #315 一致,请先在该issue或discussion中讨论。(虽然你发的更早,但 #314 人多一些,抱歉看晚了)先关闭了。