When installing from release zip: "error: package directory 'kubernetes/config' does not exist"
維護者通常 1 天內回覆
評估
這個 Issue 還沒有評估資料。
描述
What happened (please include outputs or screenshots):
Install from release zip fails with message "error: package directory 'kubernetes/config' does not exist". Looking at the exploded zip the kubernetes/config link is broken, and the kubernetes/base directory is empty.
Our issue looks like this one https://github.com/kubernetes-client/python/issues/532, and the solution there was to properly install submodules. Is it possible that the release zip is missing submodules?
What you expected to happen:
I expect installation following the instructions provided for the release to work.
How to reproduce it (as minimally and precisely as possible):
This Dockerfile shows my issue:
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y \
unzip \
curl \
python \
python-pip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install 'setuptools>=21.0.0' requests
# Installing from zip based on https://github.com/kubernetes-client/python/releases/tag/v11.0.0b2
RUN curl -LO https://github.com/kubernetes-client/python/archive/v11.0.0b2.zip \
&& unzip v11.0.0b2.zip \
&& cd python-11.0.0b2 \
&& python setup.py install
docker build . on this will give the error "error: package directory 'kubernetes/config' does not exist".
The steps above the actual installation in the Dockerfile are just to mimmick our environment.
Anything else we need to know?:
Before we were installing by git clone --recurse-submodules. We want to move away from this and use the zip you provide directly instead, to remove the usage of git.
Note that we are not using pip, this is why we'd like to use the python setup.py install method. The usage of pip in the above Dockerfile is just to quicly mimmick our setup for this issue.
Environment:
- Kubernetes version (
kubectl version): N/A - OS (e.g., MacOS 10.13.6): Ubuntu 16.04 (Demo Dockerfile), Centos 7
- Python version (
python --version): Python 2.7.12 - Python client version (
pip list | grep kubernetes): N/A
- 主要語言
- Python
- 星號
- 7.7k
- 分支
- 3.5k
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 21
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
kubernetes-client/python 的其他 Issue
-
getheaders is deprecated in urllib3 >= 2.0.0可能重新可做 關聯的 PR 已關閉且未合併。 未關閉kind/bug
難度 1/5 1 小時以內 新手友好度 68/100
kubernetes-client/python#2280 · 18 則留言 · 9 個 reaction ·
維護者通常 1 天內回覆
-
kind/feature
難度 4/5 3-5 天 新手友好度 55/100
kubernetes-client/python#2752 · 2 則留言 ·
維護者通常 1 天內回覆
-
kind/feature
難度 2/5 1-3 小時 新手友好度 55/100
kubernetes-client/python#2739 · 3 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
help wanted
難度 5/5 一週以上 新手友好度 35/100
kubernetes-client/python#2677 · 15 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
Add option to disable strict x509 verifcation in sync client可能已有人在做 @Vishwa0223 於 59 天前認領。 未關閉help wanted kind/feature
kubernetes-client/python#2602 · 6 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 kubernetes-client/python 的全部 Issue
相似的 Issue
-
[oblt-aw][autodoc] Update workflow docs for gh-aw v0.92.5 and detector permission scope可能已有人在做 @github-actions 今天認領。 未關閉
難度 1/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
enhancement
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
roadmap-100
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
comp/tools P2 tool/browser tool/file type/bug
難度 2/5 1-3 小時 新手友好度 75/100
NousResearch/hermes-agent#143418 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
python-hyper/uritemplate#164 ·