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

Issue with Reflex 0.5.5 #6

Closed
kroo opened this issue Jun 28, 2024 · 4 comments
Closed

Issue with Reflex 0.5.5 #6

kroo opened this issue Jun 28, 2024 · 4 comments

Comments

@kroo
Copy link
Owner

kroo commented Jun 28, 2024

Seems like there is also an issue with the new Reflex version 0.5.5 - pydantic cannot be imported from reflex base - I think it's renamed to reflex_main.

@dentroai
Copy link

dentroai commented Jul 1, 2024

In a quick attempt to fix this issue I cloned the repo and replaced all relflex.base occurances with reflex.main in a first attempt and then reflex_main in a 2nd attempt, but didn't solve it.

How can I find out what I should replace it with?

@kroo
Copy link
Owner Author

kroo commented Jul 2, 2024

the reason we try to import pydantic from reflex rather than just directly from pydantic was to address an issue with pydantic v2 models in reflex. This issue was addressed in 0.5.4, so we can just fix this with a conditional import that falls back to import pydantic. I'll put up a PR to address shortly.

kroo added a commit that referenced this issue Jul 2, 2024
0.5.4 resolves the need to import pydantic from
reflex.base, allowing us to import pydantic directly.
mmuraki added a commit to mmuraki/reflex-clerk that referenced this issue Jul 3, 2024
kroo added a commit that referenced this issue Jul 15, 2024
@kroo
Copy link
Owner Author

kroo commented Jul 15, 2024

Resolved in v1.0.2

@kroo kroo closed this as completed Jul 15, 2024
@dentroai
Copy link

Thank you, works like a charm again!

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

No branches or pull requests

2 participants