aws / aws/sagemaker-python-sdk
[Bug]: PySDK V3: pydantic-core (2.42.0) incompatibility with sagemaker.ai_registry dataset import
- Vorherrschende Sprache
- Python
- Sterne
- 2.3k
- Forks
- 1.3k
- Ø Merge
- 1 T. 22 Std.
- Gemergte PRs (30 T.)
- 35
Beschreibung
**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.
**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.
Beitragsleitfaden
Rechercherichtung
Beginne damit, den Import aus sagemaker.ai_registry.dataset nach dem Ausführen der aufgeführten pip-Befehle in einem SageMaker AI Studio-Notebook zu reproduzieren. Untersuche die Paketabhängigkeitsdeklarationen für sagemaker, sagemaker-core und pydantic, um die inkompatible Einschränkung für pydantic-core zu identifizieren. Als erledigt gilt die Aufgabe, wenn die Installationsbefehle erfolgreich abgeschlossen werden und der Import von DataSet nicht mehr den gemeldeten Versionsfehler auslöst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100