dotX12 / pyfa-converter

🪛 A simple pydantic to Form FastAPI model converter.
MIT License
37 stars 5 forks source link

ImportError: cannot import name 'ModelField' from 'pydantic.fields' #28

Closed damilareisaac closed 4 months ago

damilareisaac commented 4 months ago

from pyfa_converter.depends import QueryDepends

Got the error:

.../pyfa_converter/main.py",` line 11, in <module>
    from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields'

Dependencies List:

I think it is an issues with Pydantic V2 as reported here Downgrading the dependences will not be an option in this case as alot depends on the V2 already

dotX12 commented 4 months ago

@damilareisaac, see fork: https://github.com/AezaGroup/pyfa-converter-v2 for pydantic v2