Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713099022.119597/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-av-12.0.0-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713099022.119597/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-av.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 :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/python-av-12.0.0-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec'], chrootPath='/var/lib/mock/openeuler-23.09-x86_64-1713099022.119597/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=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.sAhnZE + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf PyAV-12.0.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/PyAV-12.0.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd PyAV-12.0.0 + /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.DbFqXe + umask 022 + cd /builddir/build/BUILD + cd PyAV-12.0.0 + source scripts/activate.sh ++ [[ /var/tmp/rpm-tmp.DbFqXe == \s\c\r\i\p\t\s\/\a\c\t\i\v\a\t\e\.\s\h ]] ++++ dirname scripts/activate.sh +++ cd scripts/.. +++ pwd ++ export PYAV_ROOT=/builddir/build/BUILD/PyAV-12.0.0 ++ PYAV_ROOT=/builddir/build/BUILD/PyAV-12.0.0 ++ [[ ! -n '' ]] ++ [[ -n '' ]] No $PYAV_LIBRARY set; defaulting to ffmpeg-6.0 No $PYAV_PYTHON set; defaulting to python3. ++ PYAV_LIBRARY=ffmpeg-6.0 ++ echo 'No $PYAV_LIBRARY set; defaulting to ffmpeg-6.0' ++ export PYAV_LIBRARY ++ [[ ! -n '' ]] ++ PYAV_PYTHON=python3 ++ echo 'No $PYAV_PYTHON set; defaulting to python3.' ++ [[ python3 == *pypy* ]] ++ export PYAV_PYTHON ++ export 'PYAV_PIP=python3 -m pip' ++ PYAV_PIP='python3 -m pip' ++ [[ -n '' ]] +++ uname -s +++ uname -r +++ python3 -c ' import sys import platform print("{}{}.{}".format(platform.python_implementation().lower(), *sys.version_info[:2])) ' ++ export PYAV_VENV_NAME=Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 ++ PYAV_VENV_NAME=Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 ++ export PYAV_VENV=/builddir/build/BUILD/PyAV-12.0.0/venvs/Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 ++ PYAV_VENV=/builddir/build/BUILD/PyAV-12.0.0/venvs/Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 ++ [[ ! -e /builddir/build/BUILD/PyAV-12.0.0/venvs/Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11/bin/python ]] ++ mkdir -p /builddir/build/BUILD/PyAV-12.0.0/venvs/Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 ++ virtualenv -p python3 /builddir/build/BUILD/PyAV-12.0.0/venvs/Linux.5.10.0-60.118.0.145.oe2203.x86_64.cpython3.11 scripts/activate.sh: line 55: virtualenv: command not found error: Bad exit status from /var/tmp/rpm-tmp.DbFqXe (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DbFqXe (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, 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 --target x86_64 --nodeps /builddir/build/SPECS/python-av.spec