[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)
错误描述
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)
运行环境
请填写以下列表:
其他
补充说明