Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-dist-git.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1742724393.690213/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-dist-git.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 :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/copr-dist-git-1.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/copr-dist-git.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1742724393.690213/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-dist-git.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 :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/copr-dist-git-1.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/copr-dist-git.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1742724393.690213/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=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-dist-git.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.ZdD2it + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf copr-dist-git-1.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/copr-dist-git-1.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd copr-dist-git-1.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.BSAa9N + umask 022 + cd /builddir/build/BUILD + cd copr-dist-git-1.0 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -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' running build running build_py creating build creating build/lib creating build/lib/copr_dist_git copying copr_dist_git/__init__.py -> build/lib/copr_dist_git copying copr_dist_git/exceptions.py -> build/lib/copr_dist_git copying copr_dist_git/helpers.py -> build/lib/copr_dist_git copying copr_dist_git/import_dispatcher.py -> build/lib/copr_dist_git copying copr_dist_git/import_task.py -> build/lib/copr_dist_git copying copr_dist_git/importer.py -> build/lib/copr_dist_git copying copr_dist_git/package_import.py -> build/lib/copr_dist_git copying copr_dist_git/process_pool.py -> build/lib/copr_dist_git running egg_info creating copr_dist_git.egg-info writing copr_dist_git.egg-info/PKG-INFO writing dependency_links to copr_dist_git.egg-info/dependency_links.txt writing top-level names to copr_dist_git.egg-info/top_level.txt writing manifest file 'copr_dist_git.egg-info/SOURCES.txt' reading manifest file 'copr_dist_git.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'copr_dist_git.egg-info/SOURCES.txt' running build_scripts creating build/scripts-3.11 copying and adjusting run/copr-dist-git-config -> build/scripts-3.11 copying run/copr-dist-git-refresh-cgit -> build/scripts-3.11 copying and adjusting run/copr-distgit-process-import -> build/scripts-3.11 copying and adjusting run/copr-run-dispatcher-dist-git -> build/scripts-3.11 copying and adjusting run/dist-git-clear-tarballs.py -> build/scripts-3.11 copying and adjusting run/prune-dist-git.py -> build/scripts-3.11 changing mode of build/scripts-3.11/copr-dist-git-config from 644 to 755 changing mode of build/scripts-3.11/copr-distgit-process-import from 644 to 755 changing mode of build/scripts-3.11/copr-run-dispatcher-dist-git from 644 to 755 changing mode of build/scripts-3.11/dist-git-clear-tarballs.py from 644 to 755 changing mode of build/scripts-3.11/prune-dist-git.py from 644 to 755 + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.t6Tf1B + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64 ++ dirname /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64 + cd copr-dist-git-1.0 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -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 install -O1 --skip-build --root /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64 running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11 creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/__init__.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/exceptions.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/helpers.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/import_dispatcher.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/import_task.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/importer.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/package_import.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git copying build/lib/copr_dist_git/process_pool.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/exceptions.py to exceptions.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/helpers.py to helpers.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/import_dispatcher.py to import_dispatcher.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/import_task.py to import_task.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/importer.py to importer.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/package_import.py to package_import.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git/process_pool.py to process_pool.cpython-311.pyc writing byte-compilation script '/tmp/tmpx2tnkfzi.py' /usr/bin/python3 /tmp/tmpx2tnkfzi.py removing /tmp/tmpx2tnkfzi.py running install_egg_info running egg_info writing copr_dist_git.egg-info/PKG-INFO writing dependency_links to copr_dist_git.egg-info/dependency_links.txt writing top-level names to copr_dist_git.egg-info/top_level.txt reading manifest file 'copr_dist_git.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'copr_dist_git.egg-info/SOURCES.txt' Copying copr_dist_git.egg-info to /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11/site-packages/copr_dist_git-1.0-py3.11.egg-info running install_scripts creating /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/copr-dist-git-config -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/copr-dist-git-refresh-cgit -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/copr-distgit-process-import -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/copr-run-dispatcher-dist-git -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/dist-git-clear-tarballs.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin copying build/scripts-3.11/prune-dist-git.py -> /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/copr-dist-git-config to 755 changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/copr-dist-git-refresh-cgit to 755 changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/copr-distgit-process-import to 755 changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/copr-run-dispatcher-dist-git to 755 changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/dist-git-clear-tarballs.py to 755 changing mode of /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/bin/prune-dist-git.py to 755 + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/share/copr/dist_git + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/copr + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/logrotate.d/ + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/httpd/conf.d/ + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/systemd/system + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/var/log/copr-dist-git + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/tmpfiles.d + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/var/lib/copr-dist-git + install -d /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/cron.monthly + install -p -m 755 conf/cron.monthly/copr-dist-git /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/cron.monthly/copr-dist-git + cp -a conf/copr-dist-git.conf.example /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/copr/copr-dist-git.conf + cp -a conf/httpd/copr-dist-git.conf /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/httpd/conf.d/copr-dist-git.conf + cp -a conf/tmpfiles.d/copr-dist-git.conf /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64//usr/lib/tmpfiles.d + cp -a copr-dist-git.service /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/systemd/system/ + cp -a conf/logrotate /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/etc/logrotate.d/copr-dist-git + touch /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/var/log/copr-dist-git/main.log + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.0-1 --unique-debug-suffix -1.0-1.x86_64 --unique-debug-src-base copr-dist-git-1.0-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/copr-dist-git-1.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/copr-dist-git-1.0-1.x86_64/usr/lib/python3.11 using /usr/bin/python3.11 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.cyRQou + umask 022 + cd /builddir/build/BUILD + cd copr-dist-git-1.0 + ./run_tests.sh -vv --no-cov + set -e ++ readlink -f ../common + common_path=/builddir/build/BUILD/common + export PYTHONPATH=/builddir/build/BUILD/common + PYTHONPATH=/builddir/build/BUILD/common + COVPARAMS=(--cov-report term-missing --cov ./dist_git) + KEEP_ARGS=() + for arg in "$@" + case $arg in + KEEP_ARGS+=("$arg") + for arg in "$@" + case $arg in + COVPARAMS=() + python3 -m pytest tests -vv ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.4, pluggy-1.4.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/copr-dist-git-1.0 collecting ... collected 4 items / 3 errors ==================================== ERRORS ==================================== _________________ ERROR collecting tests/test_crazy_merging.py _________________ ImportError while importing test module '/builddir/build/BUILD/copr-dist-git-1.0/tests/test_crazy_merging.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.11/site-packages/git/__init__.py:140: in refresh() /usr/lib/python3.11/site-packages/git/__init__.py:127: in refresh if not Git.refresh(path=path): /usr/lib/python3.11/site-packages/git/cmd.py:455: in refresh raise ImportError(err) E ImportError: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet The above exception was the direct cause of the following exception: /usr/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) /usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /usr/lib64/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) :1204: in _gcd_import ??? :1176: in _find_and_load ??? :1147: in _find_and_load_unlocked ??? :690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) tests/test_crazy_merging.py:13: in from copr_dist_git.package_import import import_package copr_dist_git/package_import.py:19: in from pyrpkg import Commands /usr/lib/python3.11/site-packages/pyrpkg/__init__.py:38: in import git /usr/lib/python3.11/site-packages/git/__init__.py:142: in raise ImportError("Failed to initialize: {0}".format(_exc)) from _exc E ImportError: Failed to initialize: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet ___________________ ERROR collecting tests/test_importer.py ____________________ ImportError while importing test module '/builddir/build/BUILD/copr-dist-git-1.0/tests/test_importer.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.11/site-packages/git/__init__.py:140: in refresh() /usr/lib/python3.11/site-packages/git/__init__.py:127: in refresh if not Git.refresh(path=path): /usr/lib/python3.11/site-packages/git/cmd.py:455: in refresh raise ImportError(err) E ImportError: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet The above exception was the direct cause of the following exception: /usr/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) /usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /usr/lib64/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) :1204: in _gcd_import ??? :1176: in _find_and_load ??? :1147: in _find_and_load_unlocked ??? :690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) tests/test_importer.py:12: in from base import Base tests/base.py:8: in from copr_dist_git import importer copr_dist_git/importer.py:13: in from .package_import import import_package copr_dist_git/package_import.py:19: in from pyrpkg import Commands /usr/lib/python3.11/site-packages/pyrpkg/__init__.py:38: in import git /usr/lib/python3.11/site-packages/git/__init__.py:142: in raise ImportError("Failed to initialize: {0}".format(_exc)) from _exc E ImportError: Failed to initialize: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet ________________ ERROR collecting tests/test_package_import.py _________________ ImportError while importing test module '/builddir/build/BUILD/copr-dist-git-1.0/tests/test_package_import.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.11/site-packages/git/__init__.py:140: in refresh() /usr/lib/python3.11/site-packages/git/__init__.py:127: in refresh if not Git.refresh(path=path): /usr/lib/python3.11/site-packages/git/cmd.py:455: in refresh raise ImportError(err) E ImportError: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet The above exception was the direct cause of the following exception: /usr/lib/python3.11/site-packages/_pytest/python.py:617: in _importtestmodule mod = import_path(self.path, mode=importmode, root=self.config.rootpath) /usr/lib/python3.11/site-packages/_pytest/pathlib.py:567: in import_path importlib.import_module(module_name) /usr/lib64/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) :1204: in _gcd_import ??? :1176: in _find_and_load ??? :1147: in _find_and_load_unlocked ??? :690: in _load_unlocked ??? /usr/lib/python3.11/site-packages/_pytest/assertion/rewrite.py:186: in exec_module exec(co, module.__dict__) tests/test_package_import.py:9: in from pyrpkg import rpkgError /usr/lib/python3.11/site-packages/pyrpkg/__init__.py:38: in import git /usr/lib/python3.11/site-packages/git/__init__.py:142: in raise ImportError("Failed to initialize: {0}".format(_exc)) from _exc E ImportError: Failed to initialize: Bad git executable. E The git executable must be specified in one of the following ways: E - be included in your $PATH E - be set via $GIT_PYTHON_GIT_EXECUTABLE E - explicitly set via git.refresh() E E All git commands will error until this is rectified. E E This initial message can be silenced or aggravated in the future by setting the E $GIT_PYTHON_REFRESH environment variable. Use one of the following values: E - quiet|q|silence|s|silent|none|n|0: for no message or exception E - warn|w|warning|log|l|1: for a warning message (logged at level CRITICAL, displayed by default) E - error|e|exception|raise|r|2: for a raised exception E E Example: E export GIT_PYTHON_REFRESH=quiet =========================== short test summary info ============================ ERROR tests/test_crazy_merging.py ERROR tests/test_importer.py ERROR tests/test_package_import.py !!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!! ============================== 3 errors in 0.67s =============================== error: Bad exit status from /var/tmp/rpm-tmp.cyRQou (%check) Bad exit status from /var/tmp/rpm-tmp.cyRQou (%check) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-dist-git.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/copr-dist-git.spec