Skip to content
New issue

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 ImportError: cannot import name 'validate_core_schema' from 'pydantic_core' #28

Open
SmallThings-coder opened this issue Aug 12, 2024 · 0 comments

Comments

@SmallThings-coder
Copy link

Keep getting error ImportError: cannot import name 'validate_core_schema' from 'pydantic_core' when run python app.py

Windows 10.
File "C:\Users\Nina\anaconda3\Lib\site-packages\fastapi\exceptions.py", line 3, in <module> from pydantic import BaseModel, create_model File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\__init__.py", line 372, in __getattr__ module = import_module(module_name, package=package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\importlib\__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\main.py", line 15, in <module> from ._internal import ( File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_decorators.py", line 15, in <module> from ._core_utils import get_type_ref File "C:\Users\Nina\anaconda3\Lib\site-packages\pydantic\_internal\_core_utils.py", line 15, in <module> from pydantic_core import validate_core_schema as _validate_core_schema ImportError: cannot import name 'validate_core_schema' from 'pydantic_core' (C:\Users\Nina\anaconda3\Lib\site-packages\pydantic_core\__init__.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant