Motor-ODM icon indicating copy to clipboard operation
Motor-ODM copied to clipboard

ImportError: cannot import name 'ModelMetaclass' from 'pydantic.main'

Open mattlgroff opened this issue 5 months ago • 1 comments

Error when using Motor ODM with latest Pydantic 2.8.2 (and maybe earlier)

ImportError: cannot import name 'ModelMetaclass' from 'pydantic.main' 
(/app/.venv/lib/python3.12/site-packages/pydantic/main.py)
dependencies = [
    "motor-odm>=0.1.dev0",
    "motor>=3.5.1",
    "pydantic>=2.8.2",
]

mattlgroff avatar Sep 01 '24 18:09 mattlgroff