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.

オープン
#6 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
176
フォーク
121
PR マージ指標
30日以内にマージされた PR はありません

説明

```
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.
---------------------------------------------------------------------------
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。