aws / aws/sagemaker-python-sdk

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

Abierto
#5,652 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
2.3k
Forks
1.3k
Merge medio
1 d 22 h
PR fusionados (30 d)
35

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza reproduciendo la importación desde sagemaker.ai_registry.dataset después de ejecutar los comandos pip indicados en un notebook de SageMaker AI Studio. Inspecciona las declaraciones de dependencias de los paquetes sagemaker, sagemaker-core y pydantic para identificar la restricción incompatible de pydantic-core. Se considera completado cuando los comandos de instalación terminan correctamente y la importación de DataSet ya no provoca el error de versión indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, python
Área
machine-learning
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
52/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.