“PydanticUserError” in replit but not on local pc

Question: Getting this error:

File “/home/runner/chalbe/venv/lib/python3.10/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 Usage Errors - Pydantic

while it runs perfectly on my local machine.

Repl link: https://replit.com/@YTW7/langchainbot

the langchain library raising this error

try after you run in Shell

poetry update
1 Like