setuptools >= 50 breaks pip installs

Bug #1893920 reported by Michal Nasiadka
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Invalid
Undecided
Unassigned
Train
Fix Released
Critical
Radosław Piliszek
Ussuri
Fix Released
Critical
Michal Nasiadka

Bug Description

INFO:kolla.common.utils.openstack-base: ERROR: Command errored out with exit status 1:
INFO:kolla.common.utils.openstack-base: command: /var/lib/kolla/venv/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-75kolw3y/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-75kolw3y/mysqlclient/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 /tmp/pip-pip-egg-info-c2m0gh_d
INFO:kolla.common.utils.openstack-base: cwd: /tmp/pip-install-75kolw3y/mysqlclient/
INFO:kolla.common.utils.openstack-base: Complete output (9 lines):
INFO:kolla.common.utils.openstack-base: Traceback (most recent call last):
INFO:kolla.common.utils.openstack-base: File "<string>", line 1, in <module>
INFO:kolla.common.utils.openstack-base: File "/var/lib/kolla/venv/lib/python3.6/site-packages/setuptools/__init__.py", line 5, in <module>
INFO:kolla.common.utils.openstack-base: import distutils.core
INFO:kolla.common.utils.openstack-base: File "/usr/local/lib/python3.6/dist-packages/_distutils_hack/__init__.py", line 83, in create_module
INFO:kolla.common.utils.openstack-base: return importlib.import_module('setuptools._distutils')
INFO:kolla.common.utils.openstack-base: File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
INFO:kolla.common.utils.openstack-base: return _bootstrap._gcd_import(name[level:], package, level)
INFO:kolla.common.utils.openstack-base: ModuleNotFoundError: No module named 'setuptools._distutils'
INFO:kolla.common.utils.openstack-base: ----------------------------------------

Related bug in setup tools repo: https://github.com/pypa/setuptools/issues/2353

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

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

Changed in kolla:
assignee: nobody → Michal Nasiadka (mnasiadka)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/749548

Changed in kolla:
status: In Progress → Invalid
assignee: Michal Nasiadka (mnasiadka) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/ussuri)

Reviewed: https://review.opendev.org/749548
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=aecf4c51e1d6a8795931191edb1f5aae29f93b4e
Submitter: Zuul
Branch: stable/ussuri

commit aecf4c51e1d6a8795931191edb1f5aae29f93b4e
Author: Michal Nasiadka <email address hidden>
Date: Wed Sep 2 18:13:17 2020 +0200

    Install newer virtualenv with relaxed importlib

    After setuptools 50.x release - virtualenv dictated by Ussuri constraints
    cause an error when using --system-site-packages, installing newer virtualenv
    solves the issue.
    Virtualenv 2.0.22 (and later) introduced a change to relax importlib.resources
    requirements which seems to solve the issue.

    Change-Id: I71ba982339d5dd4306b2166d346e3e6b1f3af60e
    Closes-Bug: #1893920

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/train)

Reviewed: https://review.opendev.org/749534
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=326823c4d3661ee5cc329857eab65148aa1d8fba
Submitter: Zuul
Branch: stable/train

commit 326823c4d3661ee5cc329857eab65148aa1d8fba
Author: Radosław Piliszek <email address hidden>
Date: Wed Sep 2 15:18:05 2020 +0000

    Revert "openstack-base: pin setuptools < 46 to get horizon working"

    This reverts commit ca8b61516401d61d90e2940fa130c8f55a8b6e45.

    This is to fix recent breakage caused by setuptools and virtualenv
    incompatibilities.

    Includes bifrost version bump to fix its building.

    Change-Id: Ia6c415b18374cefa3f160229d1f58cb209df348e
    Closes-Bug: #1893920
    Depends-On: https://review.opendev.org/749576

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 10.2.0

This issue was fixed in the openstack/kolla 10.2.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 9.3.0

This issue was fixed in the openstack/kolla 9.3.0 release.

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.