aws / aws/sagemaker-python-sdk

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

オープン
#5,652 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2.3k
フォーク
1.3k
平均マージ
1日 22時間
マージ済み PR(30日)
35

説明

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

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

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

調査の方向性

まず、SageMaker AI Studio ノートブックで記載されている pip コマンドを実行した後、sagemaker.ai_registry.dataset からのインポートを再現します。sagemaker、sagemaker-core、pydantic のパッケージ依存関係の宣言を調査し、互換性のない pydantic-core の制約を特定します。インストールコマンドが正常に完了し、DataSet のインポートで報告されたバージョンエラーが発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, python
領域
machine-learning
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

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

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