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
Python2 (Centos 7) setup: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers #190
Comments
Is upgrading pip an option for you? |
@temoto Unfortunately, no. This installation is part of a 3rd party ansible role. |
@gamename please show |
@temoto Here ya go [tennis@apigee-node-1 ~]$ /bin/pip2 freeze |fgrep setupt
You are using pip version 8.1.2, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. |
@gamename does it work after |
@temoto Here's what I get for that: [tennis@apigee-node-1 ~]$ /bin/pip2 install setuptools
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/site-packages
You are using pip version 8.1.2, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[tennis@apigee-node-1 ~]$ |
|
@temoto Here's what happened [tennis@apigee-node-1 ~]$ /bin/pip2 install -U setuptools
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/94/75/05e1d69c61c4dfaf65ad12785cd18bedc1e0129976c55914d6aea59c7da8/setuptools-54.2.0.tar.gz (2.1MB)
100% |████████████████████████████████| 2.1MB 420kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "setuptools/__init__.py", line 16, in <module>
import setuptools.version
File "setuptools/version.py", line 1, in <module>
import pkg_resources
File "pkg_resources/__init__.py", line 1367
raise SyntaxError(e) from e
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-funexW/setuptools/
You are using pip version 8.1.2, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command. |
@gamename sorry, it'll have to wait best case for tomorrow. I'll get CentOS 7 in virtual machine and find a solution. |
Ok |
@temoto I can get you the GCP terraform setup I'm using if you want. That is, I can give you the terraform scripts to fire up a CentOS 7 box on GCP. |
@temoto Any update? |
Good morning! Any updates? |
I'm experiencing the same issue related to Ansible and CentOS, so I'm wondering if a fix for this in progress or planned? Thanks in advance |
Sorry, no updates yet. |
@gamename or @dturet how did you go from clean centos:7 image to |
That may help now. |
Yes. It was a clean image. |
OK. let me put something together for you. |
Quick workaround
https://setuptools.readthedocs.io/en/latest/python%202%20sunset.html |
I was able to reproduce the problem. This is no longer needed. Sorry for disturbing. |
Np. Glad to hear you can reproduce it. |
Hi,
I'm getting this error when installing on CentOS7:
Could you investigate, please?
Thanks,
-T
The text was updated successfully, but these errors were encountered: