Python: error in kubernetes setup command: 'install_requires' must be a string or list of strings

Created on 19 Jun 2018  路  12Comments  路  Source: kubernetes-client/python

Following installation instructions in Readme:

git clone --recursive https://github.com/kubernetes-client/python.git
cd python
python setup.py install

returns

error in kubernetes setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
lifecyclrotten

Most helpful comment

pip install setuptools --upgrade can solve this error. It's worth to try

All 12 comments

Hi @alexxa, which version of setuptools do you use (easy_install --version) ? I use virtualenv with setuptools 39.2.0 and it works without any problems.

@tomplus Hello Tomasz, right, the error appears on CentOS 7.5 which goes with setuptools 0.9.8. I have installed 39.2.0, and it works fine then. Do you think adding "Requirements" note in Readme will be beneficial?

@alexxa if you still have the issue then simply install it using pip.

sudo pip install kubernetes

@abushoeb pip installation works fine. The issue is not about that, but installation from the source. And there is no "Requirements" or "Tested on" notes in Readme, and I ask if it can be useful to add it there.

@alexxa I did more tests and at least setuptools v 8.0 is needed to parse requirements.txt correctly (http://setuptools.readthedocs.io/en/latest/history.html#id378). It's interesting because requirements.txt requires setuptools>=21.0 (https://github.com/kubernetes-client/python/blob/master/requirements.txt#L4), but this file can't be parsed by very old version :man_facepalming:

IMO it's worth to add a disclaimer about version of setuptools to readme to section about instalation from sources.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

pip install setuptools --upgrade can solve this error. It's worth to try

python -m pip install --upgrade pip setuptools wheel

This command works for me!

I just ran in to this issue too. really annoying that you don't have setuptool > version number not required

pip install setuptools --upgrade

Fixed my issue on centos7

Was this page helpful?
0 / 5 - 0 ratings