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

fhir.resources incompatible with pydantic v2 #1417

Closed
sainak opened this issue Jul 1, 2023 · 0 comments · Fixed by #1418
Closed

fhir.resources incompatible with pydantic v2 #1417

sainak opened this issue Jul 1, 2023 · 0 comments · Fixed by #1418
Assignees

Comments

@sainak
Copy link
Member

sainak commented Jul 1, 2023

fhir.resources is incompatible with pydantic v2 it raises the following error

    from fhir.resources import (
  File "/Users/aakash/Projects/care/.venv/lib/python3.11/site-packages/fhir/resources/__init__.py", line 5, in <module>
    from fhir.resources.core.fhirabstractmodel import FHIRAbstractModel
  File "/Users/aakash/Projects/care/.venv/lib/python3.11/site-packages/fhir/resources/core/fhirabstractmodel.py", line 13, in <module>
    from pydantic.class_validators import ROOT_VALIDATOR_CONFIG_KEY, root_validator
ImportError: cannot import name 'ROOT_VALIDATOR_CONFIG_KEY' from 'pydantic.class_validators' (/Users/aakash/Projects/care/.venv/lib/python3.11/site-packages/pydantic/class_validators.py)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant