[ISSUE] `protobuf<7.0` cap conflicts with current gRPC releases

オープン 初心者向け
#1,602 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

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

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
grpc, python

調査の方向性

競合は databricks-sdk パッケージのメタデータにある protobuf の上限指定が原因と考えられます。場所は pyproject.toml または setup.py の可能性が高いです。#1041 で追加されたコミットを読み、なぜこの上限が導入されたのかを確認してください。issue にある pip dry-run で問題を再現し、その後で上限を緩めてください。最後に dev および sandbox extras で単体テストを実行し、何も壊れていないことを確認してください。

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

説明

Description
databricks-sdk caps protobuf at <7.0, but grpcio-health-checking and grpcio-tools 1.82+ require protobuf>=7.35.1. As a result, the latest SDK cannot be installed alongside current gRPC packages.

Reproduction

$ pip install --dry-run grpcio-health-checking==1.84.0 databricks-sdk==0.150.0
ERROR: Cannot install databricks-sdk==0.150.0 and grpcio-health-checking==1.84.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    grpcio-health-checking 1.84.0 depends on protobuf<8.0.0 and >=7.35.1
    databricks-sdk 0.150.0 depends on protobuf!=5.26.*, ..., <7.0 and >=4.25.8

Expected behavior
Allow protobuf 7.x (e.g. <8.0).

Other Information

  • Tested using Linux / python:3.12-slim container (docker run --rm -it python:3.12-slim pip install --dry-run grpcio-health-checking==1.84.0 databricks-sdk==0.150.0)

Additional context
#1041 added the cap as a precaution ("Avoid future breaking changes"), not because of a known incompatibility. With protobuf==7.36.2 and grpcio==1.84.0 forced, the unit tests of databricks-sdk==0.150.0[dev,sandbox] pass.

主要言語
Python
スター
577
フォーク
229
平均マージ
40分
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

databricks/databricks-sdk-py のほかの issue

databricks/databricks-sdk-py の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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