pydantic-numpy icon indicating copy to clipboard operation
pydantic-numpy copied to clipboard

import error using latest pydantic

Open epifanio opened this issue 2 years ago • 3 comments

the following import:: from pydantic.fields import ModelField

trows an exception when using latest pydantic

>>> from pydantic.fields import ModelField
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (/home/epinux/mambaforge/envs/fastapi/lib/python3.10/site-packages/pydantic/fields.py)

epifanio avatar Jul 16 '23 14:07 epifanio

confirmed in: https://github.com/pydantic/pydantic/issues/6701 ModelField is no longer available

epifanio avatar Jul 16 '23 15:07 epifanio

Is there no fix for this? Can't really use the library bc of this issues currently

AnirudhRahul avatar Feb 25 '24 04:02 AnirudhRahul

@cheind, could you archive this repository? Just so that everybody can find their way to the right place to post issues.

You should also post that active development has moved to https://github.com/caniko/pydantic-numpy

caniko avatar Jun 14 '24 04:06 caniko