stack.sh fails on installing setuptools

Bug #1859350 reported by Radosław Piliszek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Invalid
Undecided
Radosław Piliszek

Bug Description

All DevStack CI jobs are broken due to setuptools not available for Python 2.

stack.sh uses the unversioned python, which is usually Python 2 still (including Ubuntu Bionic), and fails with:
UnsupportedPythonVersion: Package 'setuptools' requires a different Python: 2.7.17 not in '>=3.5'

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Notice USE_PYTHON3=True does not help as stack.sh is hardcoded to versionless Python.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

https://setuptools.readthedocs.io/en/latest/history.html#v45-0-0
#1458: Drop support for Python 2. Setuptools now requires Python 3.5 or later. Install setuptools using pip >=9 or pin to Setuptools <45 to maintain 2.7 support.

PS:
#1959: Fix for Python 4: replace unsafe six.PY3 with six.PY2
here we go again :-)

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

So this is due to using virtualenv which calls old pip to install latest pip and friends.
The easiest fix for gate is to update system pip before running virtualenv.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.opendev.org/702140

Changed in devstack:
assignee: nobody → Radosław Piliszek (yoctozepto)
status: New → In Progress
Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

going py3 also fixes this issue of course: https://review.opendev.org/702131

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Unfortunately, it seems pip was already 9 but virtualenv does not use the modern version resolver and keeps trying latest.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

The issue has been reported independently to virtualenv not so long ago: https://github.com/pypa/virtualenv/issues/1493

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Radosław Piliszek (<email address hidden>) on branch: master
Review: https://review.opendev.org/702140
Reason: not the way forward (I don't like the pin either heh)

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

fixed by removing the offending wheel

Changed in devstack:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.