Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#5,652 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@rsareddy0329 がすでに取り組んでいます。

2026年9月29日 から。

  • #6363 @rsareddy0329 による — オープン

評価

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

調査の方向性

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

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

説明

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.

主要言語
Python
スター
2.3k
フォーク
1.3k
平均マージ
3日 10時間
マージ済み PR(30日)
77

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aws/sagemaker-python-sdk のほかの issue

aws/sagemaker-python-sdk の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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