Wrong setuptools version installed on stable branches gate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Critical
|
Unassigned |
Bug Description
On branches like Train or Stein sometimes wrong version of setuptools is installed and it causes error:
2020-10-02 04:39:27.457139 | controller | DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https:/
2020-10-02 04:39:27.581885 | controller | Looking in indexes: https:/
2020-10-02 04:39:27.751342 | controller | Collecting pip!=8,<10
2020-10-02 04:39:27.754880 | controller | Downloading https:/
2020-10-02 04:39:28.264619 | controller | Collecting setuptools
2020-10-02 04:39:28.268304 | controller | Downloading https:/
2020-10-02 04:39:28.422670 | controller | ERROR: Command errored out with exit status 1:
2020-10-02 04:39:28.422738 | controller | command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/
2020-10-02 04:39:28.422763 | controller | cwd: /tmp/pip-
2020-10-02 04:39:28.422786 | controller | Complete output (10 lines):
2020-10-02 04:39:28.422800 | controller | Traceback (most recent call last):
2020-10-02 04:39:28.422812 | controller | File "<string>", line 1, in <module>
2020-10-02 04:39:28.422824 | controller | File "setuptools/
2020-10-02 04:39:28.422836 | controller | import setuptools.version
2020-10-02 04:39:28.422848 | controller | File "setuptools/
2020-10-02 04:39:28.422860 | controller | import pkg_resources
2020-10-02 04:39:28.422872 | controller | File "pkg_resources/
2020-10-02 04:39:28.422884 | controller | raise SyntaxError(e) from e
2020-10-02 04:39:28.422896 | controller | ^
2020-10-02 04:39:28.422907 | controller | SyntaxError: invalid syntax
It happens on releases which still uses py27 and it seems that issue is only on OVH BHS1 mirrors.
Changed in neutron: | |
status: | Confirmed → Fix Released |
Hello:
There is a problem with the OVH pypi mirrors. From [1]:
(fungi) my guess is that if we start dissecting the apache cache on the ovh-bhs1 mirror we're going to find some cached copies of the setuptools version index which doesn't have requires-python metadata, indicating fastly served it from pypi's bandersnatch mirror fallback and not warehouse
This problem is not in the pypi servers or the projects (pip, setuptools), but in the server caches.
We should keep this bug open to track it.
I'll push a patch to devstack as a temporary workaround.
Regards.
[1]http:// eavesdrop. openstack. org/irclogs/ %23openstack- infra/% 23openstack- infra.2020- 10-02.log. html#t2020- 10-02T12: 26:00