Traceback (most recent call last):
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/script_runner.py", line 354, in _run_script
exec(code, module.__dict__)
File "/app/test/app.py", line 4, in <module>
from langchain.text_splitter import CharacterTextSplitter
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/__init__.py", line 8, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/agents/__init__.py", line 2, in <module>
from langchain.agents.agent import Agent
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/agents/agent.py", line 8, in <module>
from langchain.chains.base import Chain
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/chains/__init__.py", line 2, in <module>
from langchain.chains.conversation.base import ConversationChain
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/chains/conversation/base.py", line 7, in <module>
from langchain.chains.conversation.memory import ConversationBufferMemory
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/chains/conversation/memory.py", line 7, in <module>
from langchain.chains.conversation.prompt import SUMMARY_PROMPT
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/chains/conversation/prompt.py", line 2, in <module>
from langchain.prompts.prompt import PromptTemplate
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/prompts/__init__.py", line 2, in <module>
from langchain.prompts.base import BasePromptTemplate
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/prompts/base.py", line 35, in <module>
class BasePromptTemplate(BaseModel, ABC):
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/prompts/base.py", line 41, in BasePromptTemplate
@root_validator()
File "/home/appuser/venv/lib/python3.9/site-packages/pydantic/deprecated/class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use `@root_validator` with pre=False (the default) you MUST specify `skip_on_failure=True`. Note that `@root_validator` is deprecated and should be replaced with `@model_validator`.
For further information visit https://errors.pydantic.dev/2.1.0/u/root-validator-pre-skip