Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-imagehash.spec'], chrootPath='/var/lib/mock/f40-build-2246619-53804/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=864000uid=996gid=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-imagehash.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 setting SOURCE_DATE_EPOCH=1689897600 Wrote: /builddir/build/SRPMS/python-imagehash-4.0-16.fc40.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-imagehash.spec'], chrootPath='/var/lib/mock/f40-build-2246619-53804/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=864000uid=996gid=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-imagehash.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 setting SOURCE_DATE_EPOCH=1689897600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.G4zB3D + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf imagehash-4.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/imagehash-4.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd imagehash-4.0 + rm -rf /builddir/build/BUILD/imagehash-4.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/imagehash-4.0-SPECPARTS + /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.d3kuGv + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd imagehash-4.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' running build running build_py creating build creating build/lib creating build/lib/imagehash copying imagehash/__init__.py -> build/lib/imagehash creating build/lib/imagehash/tests copying imagehash/tests/test_dhash.py -> build/lib/imagehash/tests copying imagehash/tests/test_phash.py -> build/lib/imagehash/tests copying imagehash/tests/test_whash.py -> build/lib/imagehash/tests copying imagehash/tests/test_hex_conversions.py -> build/lib/imagehash/tests copying imagehash/tests/test_old_hex_conversions.py -> build/lib/imagehash/tests copying imagehash/tests/__init__.py -> build/lib/imagehash/tests copying imagehash/tests/test_average_hash.py -> build/lib/imagehash/tests creating build/lib/imagehash/tests/data copying imagehash/tests/data/imagehash.png -> build/lib/imagehash/tests/data copying imagehash/VERSION -> build/lib/imagehash running build_scripts creating build/scripts-3.12 copying and adjusting find_similar_images.py -> build/scripts-3.12 changing mode of build/scripts-3.12/find_similar_images.py from 644 to 755 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vKSAC1 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch ++ dirname /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd imagehash-4.0 + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch --prefix /usr running install /usr/lib/python3.12/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. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12 creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/test_dhash.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/test_phash.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/test_whash.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/data copying build/lib/imagehash/tests/data/imagehash.png -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/data copying build/lib/imagehash/tests/test_hex_conversions.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/test_old_hex_conversions.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/__init__.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/tests/test_average_hash.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests copying build/lib/imagehash/__init__.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash copying build/lib/imagehash/VERSION -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_dhash.py to test_dhash.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_phash.py to test_phash.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_whash.py to test_whash.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_hex_conversions.py to test_hex_conversions.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_old_hex_conversions.py to test_old_hex_conversions.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/__init__.py to __init__.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/tests/test_average_hash.py to test_average_hash.cpython-312.pyc byte-compiling /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/imagehash/__init__.py to __init__.cpython-312.pyc writing byte-compilation script '/tmp/tmp6giwezfk.py' /usr/bin/python3 /tmp/tmp6giwezfk.py removing /tmp/tmp6giwezfk.py running install_egg_info running egg_info creating ImageHash.egg-info writing ImageHash.egg-info/PKG-INFO writing dependency_links to ImageHash.egg-info/dependency_links.txt writing requirements to ImageHash.egg-info/requires.txt writing top-level names to ImageHash.egg-info/top_level.txt writing manifest file 'ImageHash.egg-info/SOURCES.txt' reading manifest file 'ImageHash.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'ImageHash.egg-info/SOURCES.txt' Copying ImageHash.egg-info to /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12/site-packages/ImageHash-4.0-py3.12.egg-info running install_scripts creating /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/bin copying build/scripts-3.12/find_similar_images.py -> /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/bin changing mode of /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/bin/find_similar_images.py to 755 + rm -rfv /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 4.0-16.fc40 --unique-debug-suffix -4.0-16.fc40.noarch --unique-debug-src-base python-imagehash-4.0-16.fc40.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/imagehash-4.0 find-debuginfo: starting Extracting debug info from 0 files Creating .debug symlinks for symlinks to ELF files find: ‘debug’: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-imagehash-4.0-16.fc40.noarch/usr/lib/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.6sRq1N + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd imagehash-4.0 + /usr/bin/python3 setup.py test running test WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox. /usr/lib/python3.12/site-packages/setuptools/command/test.py:193: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! ir_d = dist.fetch_build_eggs(dist.install_requires) WARNING: The wheel package is not available. /usr/lib/python3.12/site-packages/setuptools/command/test.py:194: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! tr_d = dist.fetch_build_eggs(dist.tests_require or []) WARNING: The wheel package is not available. /usr/lib/python3.12/site-packages/setuptools/command/test.py:195: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !! ******************************************************************************** Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`. ******************************************************************************** !! er_d = dist.fetch_build_eggs( WARNING: The wheel package is not available. running egg_info writing ImageHash.egg-info/PKG-INFO writing dependency_links to ImageHash.egg-info/dependency_links.txt writing requirements to ImageHash.egg-info/requires.txt writing top-level names to ImageHash.egg-info/top_level.txt reading manifest file 'ImageHash.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'ImageHash.egg-info/SOURCES.txt' running build_ext test_dhash (imagehash.tests.test_dhash.Test.test_dhash) ... ERROR test_dhash_length (imagehash.tests.test_dhash.Test.test_dhash_length) ... ERROR test_dhash_size (imagehash.tests.test_dhash.Test.test_dhash_size) ... ok /usr/lib64/python3.12/unittest/suite.py:107: ResourceWarning: unclosed file <_io.BufferedReader name='/builddir/build/BUILD/imagehash-4.0/imagehash/tests/data/imagehash.png'> for index, test in enumerate(self): ResourceWarning: Enable tracemalloc to get the object allocation traceback test_dhash_stored (imagehash.tests.test_dhash.Test.test_dhash_stored) ... ERROR test_phash (imagehash.tests.test_phash.Test.test_phash) ... ERROR test_phash_length (imagehash.tests.test_phash.Test.test_phash_length) ... ERROR test_phash_size (imagehash.tests.test_phash.Test.test_phash_size) ... ok /usr/lib64/python3.12/unittest/suite.py:107: ResourceWarning: unclosed file <_io.BufferedReader name='/builddir/build/BUILD/imagehash-4.0/imagehash/tests/data/imagehash.png'> for index, test in enumerate(self): ResourceWarning: Enable tracemalloc to get the object allocation traceback test_phash_stored (imagehash.tests.test_phash.Test.test_phash_stored) ... ERROR test_custom_hash_size_and_scale (imagehash.tests.test_whash.Test.test_custom_hash_size_and_scale) ... ERROR test_hash_size_2power (imagehash.tests.test_whash.Test.test_hash_size_2power) ... ERROR test_hash_size_for_small_images (imagehash.tests.test_whash.Test.test_hash_size_for_small_images) ... ERROR test_hash_size_is_less_than_image_scale (imagehash.tests.test_whash.Test.test_hash_size_is_less_than_image_scale) ... ok test_hash_size_more_than_scale (imagehash.tests.test_whash.Test.test_hash_size_more_than_scale) ... ok test_hash_size_not_2power (imagehash.tests.test_whash.Test.test_hash_size_not_2power) ... ok test_image_scale_not_2power (imagehash.tests.test_whash.Test.test_image_scale_not_2power) ... ok test_whash (imagehash.tests.test_whash.TestBasic.test_whash) ... ERROR test_whash_length (imagehash.tests.test_whash.TestBasic.test_whash_length) ... ERROR test_whash_stored (imagehash.tests.test_whash.TestBasic.test_whash_stored) ... ERROR test_binary_array_to_hex_input (imagehash.tests.test_hex_conversions.TestHexConversions.test_binary_array_to_hex_input) ... ok test_conversion_from_hex (imagehash.tests.test_hex_conversions.TestHexConversions.test_conversion_from_hex) ... ok test_conversion_to_hex (imagehash.tests.test_hex_conversions.TestHexConversions.test_conversion_to_hex) ... ok test_hex_to_hash_output (imagehash.tests.test_hex_conversions.TestHexConversions.test_hex_to_hash_output) ... ok test_hex_to_hash_output (imagehash.tests.test_old_hex_conversions.TestOldHexConversions.test_hex_to_hash_output) ... ok test_average_hash (imagehash.tests.test_average_hash.Test.test_average_hash) ... ERROR test_average_hash_length (imagehash.tests.test_average_hash.Test.test_average_hash_length) ... ERROR test_average_hash_size (imagehash.tests.test_average_hash.Test.test_average_hash_size) ... ok test_average_hash_stored (imagehash.tests.test_average_hash.Test.test_average_hash_stored) ... ERROR ====================================================================== ERROR: test_dhash (imagehash.tests.test_dhash.Test.test_dhash) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_dhash.py", line 16, in test_dhash self.check_hash_algorithm(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 25, in check_hash_algorithm original_hash = func(image) ^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 206, in dhash image = image.convert("L").resize((hash_size + 1, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_dhash_length (imagehash.tests.test_dhash.Test.test_dhash_length) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_dhash.py", line 19, in test_dhash_length self.check_hash_length(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 46, in check_hash_length image_hash = func(image, hash_size=hash_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 206, in dhash image = image.convert("L").resize((hash_size + 1, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_dhash_stored (imagehash.tests.test_dhash.Test.test_dhash_stored) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_dhash.py", line 22, in test_dhash_stored self.check_hash_stored(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 52, in check_hash_stored image_hash = func(image, hash_size) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 206, in dhash image = image.convert("L").resize((hash_size + 1, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_phash (imagehash.tests.test_phash.Test.test_phash) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_phash.py", line 16, in test_phash self.check_hash_algorithm(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 25, in check_hash_algorithm original_hash = func(image) ^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 164, in phash image = image.convert("L").resize((img_size, img_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_phash_length (imagehash.tests.test_phash.Test.test_phash_length) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_phash.py", line 19, in test_phash_length self.check_hash_length(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 46, in check_hash_length image_hash = func(image, hash_size=hash_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 164, in phash image = image.convert("L").resize((img_size, img_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_phash_stored (imagehash.tests.test_phash.Test.test_phash_stored) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_phash.py", line 22, in test_phash_stored self.check_hash_stored(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 52, in check_hash_stored image_hash = func(image, hash_size) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 164, in phash image = image.convert("L").resize((img_size, img_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_custom_hash_size_and_scale (imagehash.tests.test_whash.Test.test_custom_hash_size_and_scale) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 63, in test_custom_hash_size_and_scale hash = imagehash.whash(self.image, hash_size=hash_size, image_scale=64) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_hash_size_2power (imagehash.tests.test_whash.Test.test_hash_size_2power) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 38, in test_hash_size_2power hash = imagehash.whash(self.image, hash_size=hash_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_hash_size_for_small_images (imagehash.tests.test_whash.Test.test_hash_size_for_small_images) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 45, in test_hash_size_for_small_images hash = imagehash.whash(image) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_whash (imagehash.tests.test_whash.TestBasic.test_whash) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 18, in test_whash self.check_hash_algorithm(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 25, in check_hash_algorithm original_hash = func(image) ^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_whash_length (imagehash.tests.test_whash.TestBasic.test_whash_length) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 21, in test_whash_length self.check_hash_length(self.func, self.image, sizes=[2,4,8,16,32,64]) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 46, in check_hash_length image_hash = func(image, hash_size=hash_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_whash_stored (imagehash.tests.test_whash.TestBasic.test_whash_stored) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_whash.py", line 24, in test_whash_stored self.check_hash_stored(self.func, self.image, sizes=[2,4,8,16,32,64]) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 52, in check_hash_stored image_hash = func(image, hash_size) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 260, in whash image = image.convert("L").resize((image_scale, image_scale), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_average_hash (imagehash.tests.test_average_hash.Test.test_average_hash) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_average_hash.py", line 16, in test_average_hash self.check_hash_algorithm(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 25, in check_hash_algorithm original_hash = func(image) ^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 139, in average_hash image = image.convert("L").resize((hash_size, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_average_hash_length (imagehash.tests.test_average_hash.Test.test_average_hash_length) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_average_hash.py", line 19, in test_average_hash_length self.check_hash_length(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 46, in check_hash_length image_hash = func(image, hash_size=hash_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 139, in average_hash image = image.convert("L").resize((hash_size, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ====================================================================== ERROR: test_average_hash_stored (imagehash.tests.test_average_hash.Test.test_average_hash_stored) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/test_average_hash.py", line 22, in test_average_hash_stored self.check_hash_stored(self.func, self.image) File "/builddir/build/BUILD/imagehash-4.0/imagehash/tests/__init__.py", line 52, in check_hash_stored image_hash = func(image, hash_size) ^^^^^^^^^^^^^^^^^^^^^^ File "/builddir/build/BUILD/imagehash-4.0/imagehash/__init__.py", line 139, in average_hash image = image.convert("L").resize((hash_size, hash_size), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' ---------------------------------------------------------------------- Ran 27 tests in 54.163s FAILED (errors=15) Test failed: error: Test failed: error: Bad exit status from /var/tmp/rpm-tmp.6sRq1N (%check) Bad exit status from /var/tmp/rpm-tmp.6sRq1N (%check) RPM build errors: 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-imagehash.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 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-imagehash.spec