Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/python-backports.spec'], chrootPath='/var/lib/mock/module-python27-2.7-8050020220619111603-c7643c7d-build-9773-1357/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 --target x86_64 --nodeps /builddir/build/SPECS/python-backports.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 Wrote: /builddir/build/SRPMS/python-backports-1.0-16.module+oc8.5.0+83+7490e917.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-backports.spec'], chrootPath='/var/lib/mock/module-python27-2.7-8050020220619111603-c7643c7d-build-9773-1357/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 --target x86_64 --nodeps /builddir/build/SPECS/python-backports.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.L2Odqf + umask 022 + cd /builddir/build/BUILD + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.TQa1ne + umask 022 + cd /builddir/build/BUILD + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.9Q4s0d + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64 ++ dirname /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64 + mkdir -pm 755 /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64/usr/lib/python2.7/site-packages/backports + install -pm 644 /builddir/build/SOURCES/backports.py /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64/usr/lib/python2.7/site-packages/backports/__init__.py + mkdir -pm 755 /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64/usr/lib64/python2.7/site-packages/backports + install -pm 644 /builddir/build/SOURCES/backports.py /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64/usr/lib64/python2.7/site-packages/backports/__init__.py + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump Bytecompiling .py files below /builddir/build/BUILDROOT/python-backports-1.0-16.module+oc8.5.0+83+7490e917.x86_64/usr/lib64/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 ERROR: Python 2 is disabled in RHEL8. - For guidance on porting to Python 3, see the Conservative Python3 Porting Guide: http://portingguide.readthedocs.io/ - If you need Python 2 at runtime: - Use the python27 module - If you do not have access to BZ#1533919: - Use the python27 module - If you need to use Python 2 only at RPM build time: - File a bug blocking BZ#1533919: https://bugzilla.redhat.com/show_bug.cgi?id=1533919 - Set the environment variable RHEL_ALLOW_PYTHON2_FOR_BUILD=1 (Note that if you do not file the bug as above, this workaround will break without warning in the future.) - If you need to use Python 2 only for tests: - File a bug blocking BZ#1533919: https://bugzilla.redhat.com/show_bug.cgi?id=1533919 (If your test tool does not have a Bugzilla component, feel free to use `python2`.) - Use /usr/bin/python2-for-tests instead of python2 to run your tests. (Note that if you do not file the bug as above, this workaround will break without warning in the future.) For details, see https://hurl.corp.redhat.com/rhel8-py2 Fatal Python error: Python 2 is disabled /usr/lib/rpm/brp-python-bytecompile: line 19: 2782034 Done cat <