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

[Core]: YamlModel is a deprecated class in pydantic_yaml #136

Open
realTaki opened this issue Oct 4, 2023 · 1 comment
Open

[Core]: YamlModel is a deprecated class in pydantic_yaml #136

realTaki opened this issue Oct 4, 2023 · 1 comment

Comments

@realTaki
Copy link

realTaki commented Oct 4, 2023

System Info

commit 6a4d55a

Reproduction

When running python main.py in local env, the settings.py raises an error because YamlModel is a deprecated class in pydantic_yaml.

Traceback (most recent call last):
  File "/data/wangshichuan/workspace/embedbase-qdrant/main.py", line 3, in <module>
    from embedbase import get_app
  File "/data/wangshichuan/workspace/embedbase-qdrant/embedbase/__init__.py", line 2, in <module>
    from embedbase.api import get_app
  File "/data/wangshichuan/workspace/embedbase-qdrant/embedbase/api.py", line 3, in <module>
    from embedbase.app import Embedbase
  File "/data/wangshichuan/workspace/embedbase-qdrant/embedbase/app.py", line 20, in <module>
    from embedbase.logging_utils import get_logger
  File "/data/wangshichuan/workspace/embedbase-qdrant/embedbase/logging_utils.py", line 4, in <module>
    from embedbase.settings import Settings
  File "/data/wangshichuan/workspace/embedbase-qdrant/embedbase/settings.py", line 5, in <module>
    from pydantic_yaml import YamlModel
ImportError: cannot import name 'YamlModel' from 'pydantic_yaml' (/home/wangshichuan/miniconda/envs/embedbase/lib/python3.10/site-packages/pydantic_yaml/__init__.py)

the code in settings.py:

4   ...
5   from pydantic_yaml import YamlModel
6   ...
```raises

### Expected behavior

should parse the file well by using pydantic_yaml.
@github-actions
Copy link

github-actions bot commented Oct 4, 2023

Hello @realTaki, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

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