Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directed_test_schema.py pydantic error #2077

Closed
omerkarslioglu opened this issue Aug 24, 2023 · 1 comment
Closed

directed_test_schema.py pydantic error #2077

omerkarslioglu opened this issue Aug 24, 2023 · 1 comment
Labels
Type:Question Questions

Comments

@omerkarslioglu
Copy link

When I run dv with makefile in core_ibex, pydantic gives error. I think it should be updated.

The message is like:
@pydantic.root_validator()
File "/home/tutel/.local/lib/python3.8/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.

I changed somewhere in the python script according to error message but i didn't succeed.

@omerkarslioglu omerkarslioglu added the Type:Question Questions label Aug 24, 2023
@rswarbrick
Copy link
Contributor

We're working around this by forcing an older version of Pydantic in python-requirements.txt. To get that, you'll want to use something like pip3 install -r python-requirements.txt.

But see #2058, which should allow recent versions of Pydantic too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Question Questions
Projects
None yet
Development

No branches or pull requests

2 participants