click-completion
click-completion copied to clipboard
'install_requires' must be a string or list of string
Hello,
I tried installing molecule using pip on centos7 but getting following error:
Collecting click-completion>=0.5.1 (from molecule==3.0a1) Using cached https://files.pythonhosted.org/packages/77/fd/2d7ec2b86cd4d487abf0b13dce58e98413096c45b9645470be0cb8de6ff2/click-completion-0.5.1.tar.gz ERROR: Command errored out with exit status 1: command: /bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-RyPp9J/click-completion/setup.py'"'"'; file='"'"'/tmp/pip-install-RyPp9J/click-completion/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /tmp/pip-install-RyPp9J/click-completion/ Complete output (1 lines): error in click-completion setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
Any help would be appreciated
Thanks Afroz Hussain
It might be because of a change in pip itself. Could you please post the version of pip you are using ?
Hi. I'm facing a similar issue (installing Molecule using pip on RHEL 7.7) Here's my environment:
$ python -V
Python 2.7.5
$ pip --version
pip 19.2.3 from /usr/lib/python2.7/site-packages/pip (python 2.7)
Here's the error:
Collecting click-completion>=0.3.1 (from molecule)
Using cached https://<internal_pypi_proxy>/repository/pypi/packages/77/fd/2d7ec2b86cd4d487abf0b13dce58e98413096c45b9645470be0cb8de6ff2/click-completion-0.5.1.tar.gz
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-TzPFb3/click-completion/setup.py'"'"'; __file__='"'"'/tmp/pip-install-TzPFb3/click-completion/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: /tmp/pip-install-TzPFb3/click-completion/
Complete output (1 lines):
error in click-completion setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I just had the same issue on a CentOS 7.7 sytem. Updating setuptools
fixed it (currently using 42.0.2).
$ python -V
Python 2.7.5
$ pip --version
pip 19.3.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)
$ pip list | grep setuptools
setuptools 42.0.2