Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44738-14591/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-tomli-2.0.1-4.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec'], chrootPath='/var/lib/mock/dist-oc9-build-44738-14591/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YFpnTq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tomli-2.0.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/2.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd tomli-2.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Qj3BuN + umask 022 + cd /builddir/build/BUILD + cd tomli-2.0.1 + mkdir -p /builddir/build/BUILD/tomli-2.0.1/.pyproject-builddir + CFLAGS='-O2 -g' + LDFLAGS= + TMPDIR=/builddir/build/BUILD/tomli-2.0.1/.pyproject-builddir + /usr/bin/python3 -m pip wheel --wheel-dir /builddir/build/BUILD/tomli-2.0.1/pyproject-wheeldir --no-deps --use-pep517 --no-build-isolation --disable-pip-version-check --no-clean --progress-bar off --verbose . Processing /builddir/build/BUILD/tomli-2.0.1 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: tomli Building wheel for tomli (pyproject.toml): started Running command Building wheel for tomli (pyproject.toml) Building wheel for tomli (pyproject.toml): finished with status 'done' Created wheel for tomli: filename=tomli-2.0.1-py3-none-any.whl size=13063 sha256=d39ea4e32ea9dc07032bfca713ab42207e554b17dacecc5beb2dd3cb2661661b Stored in directory: /builddir/.cache/pip/wheels/7a/5c/1f/ed6b60051035388b3a5425185a54a26e4430ec6adc691964a0 Successfully built tomli + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.zvdqKK + umask 022 + cd /builddir/build/BUILD + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch + /usr/bin/mkdir -p /builddir/build/BUILDROOT + /usr/bin/mkdir /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch + cd tomli-2.0.1 ++ ls /builddir/build/BUILD/tomli-2.0.1/pyproject-wheeldir/tomli-2.0.1-py3-none-any.whl ++ xargs basename --multiple ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' + specifier=tomli==2.0.1 + TMPDIR=/builddir/build/BUILD/tomli-2.0.1/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/tomli-2.0.1/pyproject-wheeldir tomli==2.0.1 Using pip 22.1.1 from /usr/lib/python3.10/site-packages/pip (python 3.10) Looking in links: /builddir/build/BUILD/tomli-2.0.1/pyproject-wheeldir Processing ./pyproject-wheeldir/tomli-2.0.1-py3-none-any.whl Installing collected packages: tomli Successfully installed tomli-2.0.1 + '[' -d /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/bin ']' + rm -f /builddir/build/BUILD/pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + site_dirs+=("/usr/lib/python3.10/site-packages") + '[' /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib64/python3.10/site-packages '!=' /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib/python3.10/site-packages ']' + '[' -d /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib64/python3.10/site-packages ']' + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch$site_dir/*.dist-info + echo '%ghost /usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/TencentOS + /usr/bin/python3 -B /usr/lib/rpm/TencentOS/pyproject_preprocess_record.py --buildroot /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch --record /builddir/build/BUILDROOT/python-tomli-2.0.1-4.oc9.noarch/usr/lib/python3.10/site-packages/tomli-2.0.1.dist-info/RECORD --output /builddir/build/BUILD/pyproject-record /usr/bin/python3: can't open file '/usr/lib/rpm/TencentOS/pyproject_preprocess_record.py': [Errno 2] No such file or directory RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.zvdqKK (%install) Bad exit status from /var/tmp/rpm-tmp.zvdqKK (%install) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-tomli.spec