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.

Offen
#6 2 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
176
Forks
121
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.