AIAnytime / AIAnytime/Chat-with-PDF-Chatbot

PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.2/migration/#basesettings-has-moved-to-pydantic-settings for more details.

Đang mở
#6 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
176
Fork
121
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```
import os
import chromadb
from chromadb.config import Settings
CHROMA_SETTINGS = Settings(
chroma_db_impl='duckdb+parquet',
persist_directory='db',
anonymized_telemetry=False
)
```
gives error:
```
---------------------------------------------------------------------------
PydanticImportError Traceback (most recent call last)
[](https://localhost:8080/#) in ()
1 import os
----> 2 import chromadb
3 from chromadb.config import Settings
4 CHROMA_SETTINGS = Settings(
5 chroma_db_impl='duckdb+parquet',

3 frames
[/usr/local/lib/python3.10/dist-packages/pydantic/_migration.py](https://localhost:8080/#) in wrapper(name)
287 return import_string(REDIRECT_TO_V1[import_path])
288 if import_path == 'pydantic:BaseSettings':
--> 289 raise PydanticImportError(
290 '`BaseSettings` has been moved to the `pydantic-settings` package. '
291 f'See [https://docs.pydantic.dev/{version_short()}/migration/#basesettings-has-moved-to-pydantic-settings](https://docs.pydantic.dev/%7Bversion_short()%7D/migration/#basesettings-has-moved-to-pydantic-settings) '

PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` package. See https://docs.pydantic.dev/2.2/migration/#basesettings-has-moved-to-pydantic-settings for more details.

For further information visit https://errors.pydantic.dev/2.2/u/import-error

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.