Relax certifi version constraint in the Kubernetes Python client
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- python
- Domínio
- build-system
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- Python
- Estrelas
- 7.7k
- Forks
- 3.5k
- Merge médio
- 1d 9h
- PRs com merge (30d)
- 22
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de kubernetes-client/python
-
getheaders is deprecated in urllib3 >= 2.0.0Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertakind/bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 68/100
kubernetes-client/python#2280 · 16 comentários · 9 reações ·
Mantenedores costumam responder em até 1 dia
-
Make async an extraAbertakind/feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
kubernetes-client/python#2739 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Growing library sizeAbertahelp wanted
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
kubernetes-client/python#2677 · 15 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Add option to disable strict x509 verifcation in sync clientTalvez já em andamento @Vishwa0223 assumiu há 53 dias. Abertahelp wanted kind/feature
kubernetes-client/python#2602 · 6 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
v36.0.0 regression fetching container logsTalvez livre de novo @yliaog assumiu há 91 dias e não há nenhum pull request aberto. Abertakind/bug
kubernetes-client/python#2596 · 19 comentários · 2 reações · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de kubernetes-client/python
Issues semelhantes
-
area:core-platform effort:S priority:P3 status:in-review type:test
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 80/100
randomparity/kdive#3246 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Requantification library converts m/z to mass with the hydrogen-atom mass instead of the proton massAbertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
nf-core/metaboigniter#130 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
common-workflow-language/cwl-utils#477 ·
Mantenedores costumam responder em até 1 dia
-
Add dependabotAbertafeat
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 72/100
open-nudge/opentemplate#204 ·
Mantenedores costumam responder em até 1 dia
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limitTalvez já em andamento @VascoSch92 assumiu hoje. Abertapriority:medium ready-for-dev
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
OpenHands/extensions#781 ·
Mantenedores costumam responder em até 1 dia