You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/home/xxxx/miniconda3/lib/python3.9/site-packages/pydantic/fields.py)
It seems from this issue, ModelField no longer exists since V2 of pydantic. The above works, if I force an install of an earlier version of pydantic. (pip install pydantic==1.10.11).
Given that the default version of pydantic is >2, this will need fixing
System Information
OS: ubuntu linux
The text was updated successfully, but these errors were encountered:
This issue is still an issue (also on Mac). Is there any progress?
I tried the pydantic==1.10.11 install workaround, which only reinstalls pydantic, but now I get ModuleNotFoundError: No module named 'numpy.core._exceptions'. Installing numpy==1.26.4 will work.
Describe the bug
I was playing around with getting an interactive-app working, per your docs
To Reproduce
Create a test.py with this code from link above.
Then run
python test.py
.You get an error:
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/home/xxxx/miniconda3/lib/python3.9/site-packages/pydantic/fields.py)
It seems from this issue,
ModelField
no longer exists since V2 of pydantic. The above works, if I force an install of an earlier version of pydantic. (pip install pydantic==1.10.11
).Given that the default version of pydantic is >2, this will need fixing
System Information
The text was updated successfully, but these errors were encountered: