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

ModuleNotFoundError: No module named 'pydantic.v1' #19

Open
adi- opened this issue Jun 13, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'pydantic.v1' #19

adi- opened this issue Jun 13, 2024 · 1 comment

Comments

@adi-
Copy link

adi- commented Jun 13, 2024

Although I have pydantic 2.0a3 installed I get error ModuleNotFoundError: No module named 'pydantic.v1'.

Traceback (most recent call last):
  File "/home/vagrant/.venv/lib/python3.8/site-packages/django_flatpickr/settings.py", line 8, in <module>
    from pydantic.v1 import Field
ModuleNotFoundError: No module named 'pydantic.v1'

...
  File "/home/vagrant/.venv/lib/python3.8/site-packages/django_flatpickr/_media.py", line 4, in <module>
    from django_flatpickr.settings import DjangoFlatpickrSettings
  File "/home/vagrant/.venv/lib/python3.8/site-packages/django_flatpickr/settings.py", line 12, in <module>
    from pydantic.env_settings import (  # type: ignore
ImportError: cannot import name 'BaseSettings' from 'pydantic.env_settings' (/home/vagrant/.venv/lib/python3.8/site-packages/pydantic/env_settings.py)
@adi-
Copy link
Author

adi- commented Jun 13, 2024

Problem is on version 2.0.2 and 2.0.3

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