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

pydantic.errors.PydanticImportError: BaseSettings has been moved #23

Open
hirefrank opened this issue Oct 11, 2023 · 7 comments
Open

pydantic.errors.PydanticImportError: BaseSettings has been moved #23

hirefrank opened this issue Oct 11, 2023 · 7 comments

Comments

@hirefrank
Copy link

$ meilisync --help

Alamalinux 9.

LMK if you have any ideas on how to resolve -- thx

Traceback (most recent call last):
  File "/srv/proj/.venv/bin/meilisync", line 5, in <module>
    from meilisync.main import app
  File "/srv/proj/.venv/lib64/python3.9/site-packages/meilisync/main.py", line 8, in <module>
    from meilisync.discover import get_progress, get_source
  File "/srv/proj/.venv/lib64/python3.9/site-packages/meilisync/discover.py", line 7, in <module>
    from meilisync import progress, source
  File "/srv/proj/.venv/lib64/python3.9/site-packages/meilisync/source/__init__.py", line 4, in <module>
    from meilisync.settings import Sync
  File "/srv/proj/.venv/lib64/python3.9/site-packages/meilisync/settings.py", line 3, in <module>
    from pydantic import BaseModel, BaseSettings, Extra
  File "/srv/proj/.venv/lib64/python3.9/site-packages/pydantic/__init__.py", line 218, in __getattr__
    return _getattr_migration(attr_name)
  File "/srv/proj/.venv/lib64/python3.9/site-packages/pydantic/_migration.py", line 294, in wrapper
    raise PydanticImportError(
pydantic.errors.PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.4/migration/#basesettings-has-moved-to-pydantic-settings for more details.
@long2ice
Copy link
Owner

Try latest source code

@hirefrank
Copy link
Author

Does pip install meilisync not pull the latest?

@long2ice
Copy link
Owner

No, not release

@hirefrank
Copy link
Author

Ah got it. Thx

@hirefrank
Copy link
Author

Apologies for being dense -- how do I use the code in the repo? Do I need to build it first?

@sanders41
Copy link
Contributor

sanders41 commented Oct 16, 2023

To install the dev branch:

python -m pip install git+https://github.com/long2ice/meilisync.git@dev

@hirefrank
Copy link
Author

hirefrank commented Oct 16, 2023 via email

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

3 participants