Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Relax certifi version constraint in the Kubernetes Python client

未關閉
#2,733 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
python
領域
build-system

研究方向

The conflict comes from the certifi lower bound added in PR #2660, so start by finding where the package declares its certifi dependency and check that PR's diff. Whether the bound is needed is a maintainer decision, so confirm the intended minimum before editing. Done means pip install kubernetes==37.0.0 certifi==2024.10.17 resolves without error.

由索引模型根據 Issue 內容生成。

描述

kind/bug

Description

For reasons unrelated to Kubernetes, one of our Python applications requires certifi==2024.10.17 and cannot be upgraded to a later version.
However, we also need to use the latest version of the Kubernetes Python client (kubernetes==37.0.0).

Interestingly, if we force-install both packages together, everything functions correctly with no runtime errors.
However, standard pip installation fails due to a strict dependency constraint.

$ pip install kubernetes==37.0.0 certifi==2024.10.17
ERROR: Cannot install certifi==2024.10.17 and kubernetes==37.0.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested certifi==2024.10.17
    kubernetes 37.0.0 depends on certifi>=2026.7.22

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

It appears this restriction was introduced in PR #2660.

Questions / Request

Is this strict lower bound on certifi (>=2026.7.22) strictly necessary for kubernetes==37.0.0?

Would it be possible to relax or widen the certifi version requirement in future releases to accommodate applications locked to slightly older versions, especially since force-installing works smoothly?

What happened (please include outputs or screenshots):

$ pip install kubernetes==37.0.0 certifi==2024.10.17
ERROR: Cannot install certifi==2024.10.17 and kubernetes==37.0.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested certifi==2024.10.17
    kubernetes 37.0.0 depends on certifi>=2026.7.22

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict

What you expected to happen:

The latest version of kubernetes can be installed successfully together with certifi==2024.10.17.

How to reproduce it (as minimally and precisely as possible):

pip install kubernetes==37.0.0 certifi==2024.10.17

Anything else we need to know?:

Environment:

  • Kubernetes version (kubectl version): Client Version: v1.35.9, Server Version: v1.35.0
  • OS (e.g., MacOS 10.13.6): Debian bookworm 12.12
  • Python version (python --version): Python 3.14.0
  • Python client version (pip list | grep kubernetes): 37.0.0
主要語言
Python
星號
7.7k
分支
3.5k
平均合併
1 天 13 小時
30 天內合併 PR
19

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

kubernetes-client/python 的其他 Issue

查看 kubernetes-client/python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。