Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681487307.134098/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 aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-mplcairo-0.5-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681487307.134098/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 aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-mplcairo-0.5-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.spec'], chrootPath='/var/lib/mock/openeuler-22.03-aarch64-1681487307.134098/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 aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.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 /etc/profile.d/system-info.sh: line 55: ps: command not found Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.OeSRTx + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mplcairo-0.5 + /usr/bin/gzip -dc /builddir/build/SOURCES/mplcairo-0.5.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mplcairo-0.5 + /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.kU1T9r + umask 022 + cd /builddir/build/BUILD + cd mplcairo-0.5 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/generic-hardened-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' /usr/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. ERROR: Command errored out with exit status 2: command: /usr/bin/python3 /tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-npg3fg7i/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools cwd: None Complete output (80 lines): Collecting setuptools Downloading setuptools-67.6.1-py3-none-any.whl (1.1 MB) ERROR: Exception: Traceback (most recent call last): File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/urllib3/response.py", line 438, in _error_catcher yield File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/urllib3/response.py", line 519, in read data = self._fp.read(amt) if not fp_closed else b"" File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/cachecontrol/filewrapper.py", line 62, in read data = self.__fp.read(amt) File "/usr/lib64/python3.9/http/client.py", line 463, in read n = self.readinto(b) File "/usr/lib64/python3.9/http/client.py", line 507, in readinto n = self.fp.readinto(b) File "/usr/lib64/python3.9/socket.py", line 704, in readinto return self._sock.recv_into(b) File "/usr/lib64/python3.9/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib64/python3.9/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/cli/base_command.py", line 164, in exc_logging_wrapper status = run_func(*args) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/cli/req_command.py", line 205, in wrapper return func(self, options, args) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/commands/install.py", line 364, in run requirement_set = resolver.resolve( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/resolver.py", line 92, in resolve result = self._result = resolver.resolve( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 482, in resolve state = resolution.resolve(requirements, max_rounds=max_rounds) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 349, in resolve self._add_to_criteria(self.state.criteria, r, parent=None) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria if not criterion.candidates: File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/resolvelib/structs.py", line 151, in __bool__ return bool(self._sequence) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 155, in __bool__ return any(self) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 143, in return (c for c in iterator if id(c) not in self._incompatible_ids) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/found_candidates.py", line 47, in _iter_built candidate = func() File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/factory.py", line 205, in _make_candidate_from_link self._link_candidate_cache[link] = LinkCandidate( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 281, in __init__ super().__init__( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__ self.dist = self._prepare() File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare dist = self._prepare_distribution() File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/resolution/resolvelib/candidates.py", line 292, in _prepare_distribution return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/operations/prepare.py", line 482, in prepare_linked_requirement return self._prepare_linked_requirement(req, parallel_builds) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/operations/prepare.py", line 527, in _prepare_linked_requirement local_file = unpack_url( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/operations/prepare.py", line 213, in unpack_url file = get_http_url( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/operations/prepare.py", line 94, in get_http_url from_path, content_type = download(link, temp_dir.path) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/network/download.py", line 145, in __call__ for chunk in chunks: File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/cli/progress_bars.py", line 144, in iter for x in it: File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_internal/network/utils.py", line 63, in response_chunks for chunk in response.raw.stream( File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/urllib3/response.py", line 576, in stream data = self.read(amt=amt, decode_content=decode_content) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/urllib3/response.py", line 541, in read raise IncompleteRead(self._fp_bytes_read, self.length_remaining) File "/usr/lib64/python3.9/contextlib.py", line 137, in __exit__ self.gen.throw(typ, value, traceback) File "/tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip/_vendor/urllib3/response.py", line 443, in _error_catcher raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/69/ca/9e9fa2e8be0876a9bbf046a1be7ee33e61d4fdfbd1fd25c76c1bdfddf8c4/pycairo-1.23.0.tar.gz#sha256=9b61ac818723adc04367301317eb2e814a83522f07bbd1f409af0dada463c44c (from https://pypi.org/simple/pycairo/) (requires-python:>=3.7). Command errored out with exit status 2: /usr/bin/python3 /tmp/pip-standalone-pip-qexjat7u/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-npg3fg7i/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools Check the logs for full command output. ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp3g9y4t1h cwd: /tmp/pip-wheel-_7k153np/pycairo_61a555602ebb4068a36e37d6192479c4 Complete output (15 lines): running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-cpython-39 creating build/lib.linux-aarch64-cpython-39/cairo copying cairo/__init__.py -> build/lib.linux-aarch64-cpython-39/cairo copying cairo/__init__.pyi -> build/lib.linux-aarch64-cpython-39/cairo copying cairo/py.typed -> build/lib.linux-aarch64-cpython-39/cairo running build_ext Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing `cairo.pc' to the PKG_CONFIG_PATH environment variable Package 'cairo', required by 'virtual:world', not found Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1. ---------------------------------------- ERROR: Failed building wheel for pycairo ERROR: Failed to build one or more wheels Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/setuptools/installer.py", line 82, in fetch_build_egg subprocess.check_call(cmd) File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpluy18sud', '--quiet', 'pycairo>=1.16.0']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/builddir/build/BUILD/mplcairo-0.5/setup.py", line 189, in setup( File "/builddir/build/BUILD/mplcairo-0.5/setupext.py", line 54, in __new__ setuptools.setup(**kwargs) File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 152, in setup _install_setup_requires(attrs) File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 806, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 771, in resolve dist = best[req.key] = env.best_match( File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1056, in best_match return self.obtain(req, installer) File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1068, in obtain return installer(requirement) File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 877, in fetch_build_egg return fetch_build_egg(self, req) File "/usr/lib/python3.9/site-packages/setuptools/installer.py", line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpluy18sud', '--quiet', 'pycairo>=1.16.0']' returned non-zero exit status 1. error: Bad exit status from /var/tmp/rpm-tmp.kU1T9r (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.kU1T9r (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 aarch64 --nodeps /builddir/build/SPECS/python-mplcairo.spec