We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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", ]
The text was updated successfully, but these errors were encountered:
pydantic/pydantic#6381
This issue suggesting updating the import to:
from pydantic._internal._model_construction import ModelMetaclass
Sorry, something went wrong.
No branches or pull requests
Error when using Motor ODM with latest Pydantic 2.8.2 (and maybe earlier)
The text was updated successfully, but these errors were encountered: