Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'install_requires' must be a string or list of string #29

Open
hussainaphroj opened this issue Sep 17, 2019 · 3 comments
Open

'install_requires' must be a string or list of string #29

hussainaphroj opened this issue Sep 17, 2019 · 3 comments

Comments

@hussainaphroj
Copy link

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

@Konubinix
Copy link
Collaborator

It might be because of a change in pip itself. Could you please post the version of pip you are using ?

@dgptamayo
Copy link

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.

@yasny
Copy link

yasny commented Dec 17, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants