aws / aws/sagemaker-python-sdk

[Bug]: PySDK V3: pydantic-core (2.42.0) incompatibility with sagemaker.ai_registry dataset import

Aperta
#5,652 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2.3k
Fork
1.3k
Merge medio
1g 22h
PR unite (30g)
35

Descrizione

**PySDK Version**
- [ ] PySDK V3 (3.x)

**Describe the bug**
Fails with error below to import `from sagemaker.ai_registry.dataset import DataSet `
`SystemError: The installed pydantic-core version (2.42.0) is incompatible with the current pydantic version, which requires 2.41.5. If you encounter this error, make sure that you haven't upgraded pydantic-core manually.`
**To reproduce**
Run the below code in SageMakerAI Studio notebooks

!pip install --force-reinstall sagemaker sagemaker-serve sagemaker-mlops sagemaker-train sagemaker-core
or
!pip install 'sagemaker>=3.0,<4.0' boto3 pydantic-core -q --force-reinstall --no-deps # failed

from sagemaker.ai_registry.dataset import DataSet

**Expected behavior**
Fails with error below to import `from sagemaker.ai_registry.dataset import DataSet `
`SystemError: The installed pydantic-core version (2.42.0) is incompatible with the current pydantic version, which requires 2.41.5. If you encounter this error, make sure that you haven't upgraded pydantic-core manually.`

**Screenshots or logs**
If applicable, add screenshots or logs to help explain your problem.

Image
Image

**System information**
A description of your system. Please provide:
- **SageMaker Python SDK version**: V3
- **Framework name (eg. PyTorch) or algorithm (eg. KMeans)**:
- **Framework version**:
- **Python version**:
- **CPU or GPU**: SageMakerAI Studio notebooks
- **Custom Docker image (Y/N)**: N

**Additional context**
Add any other context about the problem here.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo l'import da sagemaker.ai_registry.dataset dopo aver eseguito i comandi pip elencati in un notebook SageMaker AI Studio. Esamina le dichiarazioni delle dipendenze dei pacchetti sagemaker, sagemaker-core e pydantic per identificare il vincolo incompatibile di pydantic-core. Il lavoro è completato quando i comandi di installazione terminano correttamente e l'importazione di DataSet non genera più l'errore di versione segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, python
Ambito
machine-learning
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.