You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
System Info
commit 6a4d55a
Reproduction
When running
python main.py
in local env, thesettings.py
raises an error because YamlModel is a deprecated class inpydantic_yaml
.the code in
settings.py
:The text was updated successfully, but these errors were encountered: