Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-kaldiio.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-348914-70434/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=982gid=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-kaldiio.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=1705536000 Wrote: /builddir/build/SRPMS/python-kaldiio-2.18.0-1.an23.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-kaldiio.spec'], chrootPath='/var/lib/mock/dist-an23-epao-build-348914-70434/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=982gid=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-kaldiio.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=1705536000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.jAaeMD + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kaldiio-2.18.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kaldiio-2.18.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd kaldiio-2.18.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf kaldiio.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.V31YnG + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 kaldiio-2.18.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/kaldiio copying kaldiio/__init__.py -> build/lib/kaldiio copying kaldiio/compression_header.py -> build/lib/kaldiio copying kaldiio/highlevel.py -> build/lib/kaldiio copying kaldiio/matio.py -> build/lib/kaldiio copying kaldiio/python_wave.py -> build/lib/kaldiio copying kaldiio/utils.py -> build/lib/kaldiio copying kaldiio/wavio.py -> build/lib/kaldiio + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.G8DMeG + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch ++ dirname /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 kaldiio-2.18.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr creating /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib creating /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10 creating /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages creating /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/__init__.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/compression_header.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/highlevel.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/matio.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/python_wave.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/utils.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio copying build/lib/kaldiio/wavio.py -> /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/compression_header.py to compression_header.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/highlevel.py to highlevel.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/matio.py to matio.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/python_wave.py to python_wave.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/utils.py to utils.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio/wavio.py to wavio.cpython-310.pyc writing byte-compilation script '/tmp/tmp_cnc1r53.py' /usr/bin/python3 /tmp/tmp_cnc1r53.py removing /tmp/tmp_cnc1r53.py running install_egg_info running egg_info creating kaldiio.egg-info writing kaldiio.egg-info/PKG-INFO writing dependency_links to kaldiio.egg-info/dependency_links.txt writing requirements to kaldiio.egg-info/requires.txt writing top-level names to kaldiio.egg-info/top_level.txt writing manifest file 'kaldiio.egg-info/SOURCES.txt' reading manifest file 'kaldiio.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'kaldiio.egg-info/SOURCES.txt' Copying kaldiio.egg-info to /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10/site-packages/kaldiio-2.18.0-py3.10.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j80 --strict-build-id -m -i --build-id-seed 2.18.0-1.an23 --unique-debug-suffix -2.18.0-1.an23.noarch --unique-debug-src-base python-kaldiio-2.18.0-1.an23.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/kaldiio-2.18.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/anolis/brp-ldconfig + COMPRESS='zstd -f --rm -19 -T0' + COMPRESS_EXT=.zst + /usr/lib/rpm/brp-compress + /usr/lib/rpm/anolis/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/anolis/clean_perl + /usr/lib/rpm/anolis/check_elf_files + /usr/lib/rpm/anolis/brp-mangle-shebangs + /usr/lib/rpm/anolis/remove-info-dir + /usr/lib/rpm/anolis/check-desktop-files + /usr/lib/rpm/anolis/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-kaldiio-2.18.0-1.an23.noarch/usr/lib/python3.10 using python3.10 + /usr/lib/rpm/anolis/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.kvFmH5 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-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 kaldiio-2.18.0 + /usr/bin/python3 setup.py test running pytest running egg_info writing kaldiio.egg-info/PKG-INFO writing dependency_links to kaldiio.egg-info/dependency_links.txt writing requirements to kaldiio.egg-info/requires.txt writing top-level names to kaldiio.egg-info/top_level.txt reading manifest file 'kaldiio.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'kaldiio.egg-info/SOURCES.txt' running build_ext ============================= test session starts ============================== platform linux -- Python 3.10.13, pytest-7.3.1, pluggy-1.0.0 rootdir: /builddir/build/BUILD/kaldiio-2.18.0 configfile: setup.cfg testpaths: tests plugins: cov-4.0.0 collected 126 items tests/test_extended_ark.py ......... [ 7%] tests/test_highlevel.py ....... [ 12%] tests/test_limited_size_dict.py . [ 13%] tests/test_mat_ark.py s....................................FFF.......... [ 53%] .. [ 54%] tests/test_multi_file_descriptor.py .......................... [ 75%] tests/test_open_like_kaldi.py . [ 76%] tests/test_parse_specifier.py ........ [ 82%] tests/test_wav.py ..........FFFF......FF [100%] =================================== FAILURES =================================== ________________________ test_write_compressed_arks[1] _________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_write_compressed_arks_1_0') compression_method = 1 @pytest.mark.parametrize("compression_method", [1, 3, 5]) def test_write_compressed_arks(tmpdir, compression_method): # Assume arks dir existing at the same directory > ark0 = dict( kaldiio.load_ark(os.path.join(os.path.dirname(__file__), "arks", "test.ark")) ) tests/test_mat_ark.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/matio.py:342: in load_ark with open_or_fd(fname, "rb") as fd: /usr/lib64/python3.10/contextlib.py:135: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fname = '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark', mode = 'rb' @contextmanager def open_or_fd(fname, mode): # If fname is a file name if isinstance(fname, string_types): encoding = None if "b" in mode else default_encoding > f = io.open(fname, mode, encoding=encoding) E FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark' kaldiio/utils.py:215: FileNotFoundError ________________________ test_write_compressed_arks[3] _________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_write_compressed_arks_3_0') compression_method = 3 @pytest.mark.parametrize("compression_method", [1, 3, 5]) def test_write_compressed_arks(tmpdir, compression_method): # Assume arks dir existing at the same directory > ark0 = dict( kaldiio.load_ark(os.path.join(os.path.dirname(__file__), "arks", "test.ark")) ) tests/test_mat_ark.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/matio.py:342: in load_ark with open_or_fd(fname, "rb") as fd: /usr/lib64/python3.10/contextlib.py:135: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fname = '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark', mode = 'rb' @contextmanager def open_or_fd(fname, mode): # If fname is a file name if isinstance(fname, string_types): encoding = None if "b" in mode else default_encoding > f = io.open(fname, mode, encoding=encoding) E FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark' kaldiio/utils.py:215: FileNotFoundError ________________________ test_write_compressed_arks[5] _________________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_write_compressed_arks_5_0') compression_method = 5 @pytest.mark.parametrize("compression_method", [1, 3, 5]) def test_write_compressed_arks(tmpdir, compression_method): # Assume arks dir existing at the same directory > ark0 = dict( kaldiio.load_ark(os.path.join(os.path.dirname(__file__), "arks", "test.ark")) ) tests/test_mat_ark.py:204: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/matio.py:342: in load_ark with open_or_fd(fname, "rb") as fd: /usr/lib64/python3.10/contextlib.py:135: in __enter__ return next(self.gen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fname = '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark', mode = 'rb' @contextmanager def open_or_fd(fname, mode): # If fname is a file name if isinstance(fname, string_types): encoding = None if "b" in mode else default_encoding > f = io.open(fname, mode, encoding=encoding) E FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/test.ark' kaldiio/utils.py:215: FileNotFoundError ______________________ test_scpwav_stream[load_scp-uint8] ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_ui0') func = , dtype = @pytest.mark.parametrize("dtype", [np.uint8, np.int16]) @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_scpwav_stream(tmpdir, func, dtype): path = tmpdir.mkdir("test") wav = path.join("aaa.wav").strpath wav2 = path.join("bbb.wav").strpath scp = path.join("wav.scp").strpath # Write as pcm16 array = np.random.randint(0, 10, 40, dtype=dtype).reshape(5, 8) write_wav(wav, 8000, array) array2 = np.random.randint(0, 10, 10, dtype=dtype) write_wav(wav2, 8000, array2) with open(scp, "w") as f: f.write("aaa sox {wav} -t wav - |\n".format(wav=wav)) f.write("bbb cat {wav} |\n".format(wav=wav2)) > rate, test = dict(func(scp))["aaa"] tests/test_wav.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/utils.py:479: in __getitem__ return self._loader(ark_name) kaldiio/matio.py:240: in load_mat return _load_mat(fd, offset, slices, endian=endian) kaldiio/matio.py:330: in _load_mat array = read_kaldi(fd, endian) kaldiio/matio.py:442: in read_kaldi array = read_ascii_mat(fd) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fd = return_size = False def read_ascii_mat(fd, return_size=False): """Call from load_kaldi_file Args: fd (file): binary mode return_size (bool): """ string = [] size = 0 # Find '[' char while True: b = fd.read(1) try: char = b.decode(encoding=default_encoding) except UnicodeDecodeError: raise ValueError("File format is wrong?") size += 1 if char == " " or char == "\n": continue elif char == "[": hasparent = True break else: string.append(char) hasparent = False break # Read data ndmin = 1 while True: char = fd.read(1).decode(encoding=default_encoding) size += 1 if hasparent: if char == "]": char = fd.read(1).decode(encoding=default_encoding) size += 1 assert char == "\n" or char == "" break elif char == "\n": ndmin = 2 elif char == "": raise ValueError("There are no corresponding bracket ']' with '['") else: if char == "\n" or char == "": break string.append(char) string = "".join(string) > assert len(string) != 0 E AssertionError kaldiio/matio.py:606: AssertionError ----------------------------- Captured stderr call ----------------------------- /bin/sh: line 1: sox: command not found ______________________ test_scpwav_stream[load_scp-int16] ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_in0') func = , dtype = @pytest.mark.parametrize("dtype", [np.uint8, np.int16]) @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_scpwav_stream(tmpdir, func, dtype): path = tmpdir.mkdir("test") wav = path.join("aaa.wav").strpath wav2 = path.join("bbb.wav").strpath scp = path.join("wav.scp").strpath # Write as pcm16 array = np.random.randint(0, 10, 40, dtype=dtype).reshape(5, 8) write_wav(wav, 8000, array) array2 = np.random.randint(0, 10, 10, dtype=dtype) write_wav(wav2, 8000, array2) with open(scp, "w") as f: f.write("aaa sox {wav} -t wav - |\n".format(wav=wav)) f.write("bbb cat {wav} |\n".format(wav=wav2)) > rate, test = dict(func(scp))["aaa"] tests/test_wav.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/utils.py:479: in __getitem__ return self._loader(ark_name) kaldiio/matio.py:240: in load_mat return _load_mat(fd, offset, slices, endian=endian) kaldiio/matio.py:330: in _load_mat array = read_kaldi(fd, endian) kaldiio/matio.py:442: in read_kaldi array = read_ascii_mat(fd) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fd = return_size = False def read_ascii_mat(fd, return_size=False): """Call from load_kaldi_file Args: fd (file): binary mode return_size (bool): """ string = [] size = 0 # Find '[' char while True: b = fd.read(1) try: char = b.decode(encoding=default_encoding) except UnicodeDecodeError: raise ValueError("File format is wrong?") size += 1 if char == " " or char == "\n": continue elif char == "[": hasparent = True break else: string.append(char) hasparent = False break # Read data ndmin = 1 while True: char = fd.read(1).decode(encoding=default_encoding) size += 1 if hasparent: if char == "]": char = fd.read(1).decode(encoding=default_encoding) size += 1 assert char == "\n" or char == "" break elif char == "\n": ndmin = 2 elif char == "": raise ValueError("There are no corresponding bracket ']' with '['") else: if char == "\n" or char == "": break string.append(char) string = "".join(string) > assert len(string) != 0 E AssertionError kaldiio/matio.py:606: AssertionError ----------------------------- Captured stderr call ----------------------------- /bin/sh: line 1: sox: command not found ________________ test_scpwav_stream[load_scp_sequential-uint8] _________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_se0') func = dtype = @pytest.mark.parametrize("dtype", [np.uint8, np.int16]) @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_scpwav_stream(tmpdir, func, dtype): path = tmpdir.mkdir("test") wav = path.join("aaa.wav").strpath wav2 = path.join("bbb.wav").strpath scp = path.join("wav.scp").strpath # Write as pcm16 array = np.random.randint(0, 10, 40, dtype=dtype).reshape(5, 8) write_wav(wav, 8000, array) array2 = np.random.randint(0, 10, 10, dtype=dtype) write_wav(wav2, 8000, array2) with open(scp, "w") as f: f.write("aaa sox {wav} -t wav - |\n".format(wav=wav)) f.write("bbb cat {wav} |\n".format(wav=wav2)) > rate, test = dict(func(scp))["aaa"] tests/test_wav.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/matio.py:126: in load_scp_sequential mat = _load_mat(arkfd, offset, slices, endian=endian) kaldiio/matio.py:330: in _load_mat array = read_kaldi(fd, endian) kaldiio/matio.py:442: in read_kaldi array = read_ascii_mat(fd) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fd = return_size = False def read_ascii_mat(fd, return_size=False): """Call from load_kaldi_file Args: fd (file): binary mode return_size (bool): """ string = [] size = 0 # Find '[' char while True: b = fd.read(1) try: char = b.decode(encoding=default_encoding) except UnicodeDecodeError: raise ValueError("File format is wrong?") size += 1 if char == " " or char == "\n": continue elif char == "[": hasparent = True break else: string.append(char) hasparent = False break # Read data ndmin = 1 while True: char = fd.read(1).decode(encoding=default_encoding) size += 1 if hasparent: if char == "]": char = fd.read(1).decode(encoding=default_encoding) size += 1 assert char == "\n" or char == "" break elif char == "\n": ndmin = 2 elif char == "": raise ValueError("There are no corresponding bracket ']' with '['") else: if char == "\n" or char == "": break string.append(char) string = "".join(string) > assert len(string) != 0 E AssertionError kaldiio/matio.py:606: AssertionError ----------------------------- Captured stderr call ----------------------------- /bin/sh: line 1: sox: command not found ________________ test_scpwav_stream[load_scp_sequential-int16] _________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_se1') func = dtype = @pytest.mark.parametrize("dtype", [np.uint8, np.int16]) @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_scpwav_stream(tmpdir, func, dtype): path = tmpdir.mkdir("test") wav = path.join("aaa.wav").strpath wav2 = path.join("bbb.wav").strpath scp = path.join("wav.scp").strpath # Write as pcm16 array = np.random.randint(0, 10, 40, dtype=dtype).reshape(5, 8) write_wav(wav, 8000, array) array2 = np.random.randint(0, 10, 10, dtype=dtype) write_wav(wav2, 8000, array2) with open(scp, "w") as f: f.write("aaa sox {wav} -t wav - |\n".format(wav=wav)) f.write("bbb cat {wav} |\n".format(wav=wav2)) > rate, test = dict(func(scp))["aaa"] tests/test_wav.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/matio.py:126: in load_scp_sequential mat = _load_mat(arkfd, offset, slices, endian=endian) kaldiio/matio.py:330: in _load_mat array = read_kaldi(fd, endian) kaldiio/matio.py:442: in read_kaldi array = read_ascii_mat(fd) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fd = return_size = False def read_ascii_mat(fd, return_size=False): """Call from load_kaldi_file Args: fd (file): binary mode return_size (bool): """ string = [] size = 0 # Find '[' char while True: b = fd.read(1) try: char = b.decode(encoding=default_encoding) except UnicodeDecodeError: raise ValueError("File format is wrong?") size += 1 if char == " " or char == "\n": continue elif char == "[": hasparent = True break else: string.append(char) hasparent = False break # Read data ndmin = 1 while True: char = fd.read(1).decode(encoding=default_encoding) size += 1 if hasparent: if char == "]": char = fd.read(1).decode(encoding=default_encoding) size += 1 assert char == "\n" or char == "" break elif char == "\n": ndmin = 2 elif char == "": raise ValueError("There are no corresponding bracket ']' with '['") else: if char == "\n" or char == "": break string.append(char) string = "".join(string) > assert len(string) != 0 E AssertionError kaldiio/matio.py:606: AssertionError ----------------------------- Captured stderr call ----------------------------- /bin/sh: line 1: sox: command not found _____________________ test_incorrect_header_wav[load_scp] ______________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_incorrect_header_wav_load0') func = @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_incorrect_header_wav(tmpdir, func): wav = os.path.join(os.path.dirname(__file__), "arks", "incorrect_header.wav") > _, array = read_wav(wav) tests/test_wav.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/wavio.py:9: in read_wav wd = wave.open(fd) kaldiio/python_wave.py:552: in open return Wave_read(f) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = f = '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/incorrect_header.wav' def __init__(self, f): self._i_opened_the_file = None if isinstance(f, str): > f = builtin_open(f, "rb") E FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/incorrect_header.wav' kaldiio/python_wave.py:169: FileNotFoundError ________________ test_incorrect_header_wav[load_scp_sequential] ________________ tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_incorrect_header_wav_load1') func = @pytest.mark.parametrize("func", [load_scp, load_scp_sequential]) def test_incorrect_header_wav(tmpdir, func): wav = os.path.join(os.path.dirname(__file__), "arks", "incorrect_header.wav") > _, array = read_wav(wav) tests/test_wav.py:167: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ kaldiio/wavio.py:9: in read_wav wd = wave.open(fd) kaldiio/python_wave.py:552: in open return Wave_read(f) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = f = '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/incorrect_header.wav' def __init__(self, f): self._i_opened_the_file = None if isinstance(f, str): > f = builtin_open(f, "rb") E FileNotFoundError: [Errno 2] No such file or directory: '/builddir/build/BUILD/kaldiio-2.18.0/tests/arks/incorrect_header.wav' kaldiio/python_wave.py:169: FileNotFoundError =============================== warnings summary =============================== tests/test_wav.py::test_scpwav_stream[load_scp-uint8] /builddir/build/BUILD/kaldiio-2.18.0/kaldiio/utils.py:481: UserWarning: An error happens at loading "sox /tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_ui0/test/aaa.wav -t wav - |" warnings.warn('An error happens at loading "{}"'.format(ark_name)) tests/test_wav.py::test_scpwav_stream[load_scp-int16] /builddir/build/BUILD/kaldiio-2.18.0/kaldiio/utils.py:481: UserWarning: An error happens at loading "sox /tmp/pytest-of-mockbuild/pytest-0/test_scpwav_stream_load_scp_in0/test/aaa.wav -t wav - |" warnings.warn('An error happens at loading "{}"'.format(ark_name)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.10.13-final-0 ---------- Coverage HTML written to dir htmlcov =========================== short test summary info ============================ FAILED tests/test_mat_ark.py::test_write_compressed_arks[1] - FileNotFoundErr... FAILED tests/test_mat_ark.py::test_write_compressed_arks[3] - FileNotFoundErr... FAILED tests/test_mat_ark.py::test_write_compressed_arks[5] - FileNotFoundErr... FAILED tests/test_wav.py::test_scpwav_stream[load_scp-uint8] - AssertionError FAILED tests/test_wav.py::test_scpwav_stream[load_scp-int16] - AssertionError FAILED tests/test_wav.py::test_scpwav_stream[load_scp_sequential-uint8] - Ass... FAILED tests/test_wav.py::test_scpwav_stream[load_scp_sequential-int16] - Ass... FAILED tests/test_wav.py::test_incorrect_header_wav[load_scp] - FileNotFoundE... FAILED tests/test_wav.py::test_incorrect_header_wav[load_scp_sequential] - Fi... ============= 9 failed, 116 passed, 1 skipped, 2 warnings in 1.76s ============= error: Bad exit status from /var/tmp/rpm-tmp.kvFmH5 (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.kvFmH5 (%check) 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-kaldiio.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 --noclean --target noarch --nodeps /builddir/build/SPECS/python-kaldiio.spec