build: python3-k8sapp-intel-device-plugins-operator: build fails

Bug #2039182 reported by Davlet Panech
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Md Irshad Sheikh

Bug Description

Brief Description
-----------------
The package python3-k8sapp-intel-device-plugins-operator_1.0 fails to compile. It looks like a new package introduced by: https://review.opendev.org/c/starlingx/app-intel-device-plugins/+/895921 . The error is: "No module named pip"

Severity
--------
Major

Steps to Reproduce
------------------
Try to build the package

Expected Behavior
------------------
Build succeeds

Actual Behavior
----------------
Build fails, "No module named pip"

Reproducibility
---------------
Seen once

System Configuration
--------------------
N/A

Branch/Pull Time/Commit
-----------------------
master/2023-10-11

Last Pass
---------
N/A

Timestamp/Logs
--------------

From this log:
http://yow2-wrcp2-lx.wrs.com:8088/localdisk/loadbuild/jenkins/debian-master/20231012T060059Z/workspace/std/python3-k8sapp-intel-device-plugins-operator/python3-k8sapp-intel-device-plugins-operator_1.0-1.stx.3_amd64.build

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -rfakeroot -j6
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: info: source package python3-k8sapp-intel-device-plugins-operator
dpkg-buildpackage: info: source version 1.0-1.stx.3
dpkg-buildpackage: info: source distribution bullseye
dpkg-buildpackage: info: source changed by STX Builder <email address hidden>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with=python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:232: python3.9 setup.py clean
/usr/bin/python3.9: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/setuptools/installer.py", line 75, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmps0ykq895', '--quiet', 'PyYAML>=3.10.0']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 9, in <module>
    setuptools.setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 147, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 686, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 766, in resolve
    dist = best[req.key] = env.best_match(
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1051, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1063, in obtain
    return installer(requirement)
  File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 745, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python3/dist-packages/setuptools/installer.py", line 77, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python3.9', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmps0ykq895', '--quiet', 'PyYAML>=3.10.0']' returned non-zero exit status 1.
E: pybuild pybuild:353: clean: plugin distutils failed with: exit code=1: python3.9 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.9 returned exit code 13
make: *** [debian/rules:16: clean] Error 25
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2

Test Activity
-------------
N/A

Workaround
----------
N/A

Revision history for this message
Ghada Khalil (gkhalil) wrote (last edit ):

This build issue is introduced by a code merge on Oct 11: https://review.opendev.org/c/starlingx/app-intel-device-plugins/+/895921.

This code is reverted.

Code review to revert the change: https://review.opendev.org/c/starlingx/app-intel-device-plugins/+/898077 was merged on Oct 12.

Changed in starlingx:
importance: Undecided → High
tags: added: stx.9.0 stx.build
Changed in starlingx:
assignee: nobody → Md Irshad Sheikh (msheikh)
status: New → Fix Released
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.