Repository navigation
Install the kubernetes pcakage successfully but can't use it #1053
Copy link
Copy link
Closed
Labels
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Description
Activity
- addedkind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.
on Jan 10, 2020 Hi @nettyxiong, we are dropping support for Python 2.7 from the client. Can you please try with Python 3 and see if the error still occurs?
I checked with Python 3.8.0 and the
ImportErrordoes not occur.Xref: #1054
The dynamic client is enabled in #1035. Looks like there are import issues.
/assignThe dynamic client is enabled in #1035. Looks like there are import issues.
/assignI tried it with Python 3.8.0 and the import is working. I couldn't test with Python 2.7 as I couldn't successfully install the client and its dependencies.
I cannot replicate this error with Python 2.7.17 on ubuntu 18.04.
Command:pip install -e git+https://github.com/kubernetes-client/python.git@master#egg=kubernetes Python 2.7.17 (default, Nov 7 2019, 10:07:09) [GCC 7.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import kubernetes >>> from kubernetes import dynamic >>> dynamic <module 'kubernetes.dynamic' from '/home/micw/py27/src/kubernetes/kubernetes/dynamic/__init__.py'> >>> import kubernetes.dynamic >>>/priority awaiting-more-evidence
- addedpriority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.Lowest priority. Possibly useful, but not yet enough support to actually get it done.
on Jan 10, 2020
Metadata
Metadata
Assignees
Labels
kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.Lowest priority. Possibly useful, but not yet enough support to actually get it done.
git clone --recursive https://github.com/kubernetes-client/python.git cd python python setup.py install