Container build fails due to a yanked python module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Critical
|
Davlet Panech |
Bug Description
Brief Description
-----------------
Containers build fails while compiling python wheels. Problem is caused by pip attempting to download a recently released, but withdrawn ("yanked") module in pypi.org.
Severity
--------
Critical
Steps to reproduce
------------------
Build python wheels (cgcs-root/
Expected Behaviour
------------------
Wheels are built successfully
Actual Behavior
----------------
Module "lz4" fails to compile
Reproducibility
---------------
Reproducible
Branch/Pull Time/Commit
-------
Master/2021-08-26
Last Pass
---------
Master/2021-08-23
Timestamp/Logs
--------------
23:49:49 [python3] Running: docker run --rm --env DISPLAY_RESULT=no -v /localdisk/
23:49:49 [python3]
23:49:49 [python3] #######
23:49:49 [python3] Building lz4-0.9.
23:49:49 [python3] #######
23:49:49 [python3] Cloning into 'python-lz4'...
23:49:49 [python3] /build-
23:49:49 [python3] From https:/
23:49:49 [python3] * tag v0.9.0 -> FETCH_HEAD
23:49:49 [python3] Note: checking out 'FETCH_HEAD'.
23:49:49 [python3]
23:49:49 [python3] You are in 'detached HEAD' state. You can look around, make experimental
23:49:49 [python3] changes and commit them, and you can discard any commits you make in this
23:49:49 [python3] state without impacting any branches by performing another checkout.
23:49:49 [python3]
23:49:49 [python3] If you want to create a new branch to retain commits you create, you may
23:49:49 [python3] do so (now or later) by using -b with the checkout command again. Example:
23:49:49 [python3]
23:49:49 [python3] git checkout -b new_branch_name
23:49:49 [python3]
23:49:49 [python3] HEAD is now at bc6fb12... Update README.rst
23:49:49 [python3] Traceback (most recent call last):
23:49:49 [python3] File "setup.py", line 160, in <module>
23:49:49 [python3] 'Programming Language :: Python :: 3.6',
23:49:49 [python3] File "/root/
23:49:49 [python3] return distutils.
23:49:49 [python3] File "/usr/lib64/
23:49:49 [python3] _setup_distribution = dist = klass(attrs)
23:49:49 [python3] File "/root/
23:49:49 [python3] k: v for k, v in attrs.items()
23:49:49 [python3] File "/usr/lib64/
23:49:49 [python3] self.finalize_
23:49:49 [python3] File "/root/
23:49:49 [python3] ep.load()(self)
23:49:49 [python3] File "/root/
23:49:49 [python3] ep.load()(self, ep.name, value)
23:49:49 [python3] File "/build-
23:49:49 [python3] dist.metadata.
23:49:49 [python3] File "/build-
23:49:49 [python3] template=
23:49:49 [python3] File "/build-
23:49:49 [python3] version_fields = parsed_
23:49:49 [python3] AttributeError: 'Version' object has no attribute 'release'
23:49:49 [python3] Could not find dist/lz4-
23:49:49 [python3] Searching for wheel:
23:49:49 [python3] find: 'dist/': No such file or directory
23:49:49 [python3] /build-wheels
Workaround
----------
None
Changed in starlingx: | |
assignee: | nobody → Davlet Panech (dpanech) |
Changed in starlingx: | |
status: | New → In Progress |
Changed in starlingx: | |
importance: | Undecided → Critical |
tags: | added: stx.6.0 stx.build |
Reviewed: https:/ /review. opendev. org/c/starlingx /root/+ /806425 /opendev. org/starlingx/ root/commit/ 699a7d4207415fd 57e40894443aff2 8bd86675c5
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 699a7d4207415fd 57e40894443aff2 8bd86675c5
Author: Davlet Panech <email address hidden>
Date: Fri Aug 27 11:33:27 2021 -0400
build-wheels: ignore yanked pypi.org modules
1) Pip3 9.0.3 provided by CentOS does not ignore "yanked" modules
published to pypi.org. This causes the builds to download modules
that are broken. Solution: use the earliest version of pip where
that bug is fixed (19.2.3)
2) A number of recent versions of setuptools-scm are broken in pypi.org.
Use last version known to work, 6.0.1
Closes-Bug: 1941901 3f24bf1d4089be7 1bf01f8066a
Change-Id: I3ba746d36983ee
Signed-off-by: Davlet Panech <email address hidden>