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

[REF-3157] Avoid SQLModel metaclass conflict #3610

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented Jul 2, 2024

Ensure that reflex.utils.compat is loaded whenever reflex itself is imported to try and avoid the sqlmodel metaclass conflict error that arises when sqlmodel is imported first with pydantic v2, but reflex Model inherits from rx.Base which is based on pydantic v1.

Fix #3515

Ensure that reflex.utils.compat is loaded whenever `reflex` itself is imported
to try and avoid the sqlmodel metaclass conflict error that arises when
sqlmodel is imported first with pydantic v2, but reflex Model inherits from
rx.Base which is based on pydantic v1.

Fix #3515
Copy link

linear bot commented Jul 2, 2024

@Lendemor Lendemor merged commit 7cbd284 into main Jul 3, 2024
47 checks passed
masenf added a commit that referenced this pull request Jul 8, 2024
Ensure that reflex.utils.compat is loaded whenever `reflex` itself is imported
to try and avoid the sqlmodel metaclass conflict error that arises when
sqlmodel is imported first with pydantic v2, but reflex Model inherits from
rx.Base which is based on pydantic v1.

Fix #3515
Alek99 pushed a commit that referenced this pull request Jul 15, 2024
Ensure that reflex.utils.compat is loaded whenever `reflex` itself is imported
to try and avoid the sqlmodel metaclass conflict error that arises when
sqlmodel is imported first with pydantic v2, but reflex Model inherits from
rx.Base which is based on pydantic v1.

Fix #3515
@masenf masenf deleted the masenf/early-patch-sqlmodel branch December 12, 2024 07:10
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 this pull request may close these issues.

[REF-3157] sqlmodel metaclass conflict when importing sqlmodel before reflex.model
2 participants