Mock Version: 5.6 Mock Version: 5.6 Mock Version: 5.6 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'], chrootPath='/var/lib/mock/f40-build-55047443-6532009/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6d500c8679954df7ace698d27829b81a', '-D', '/var/lib/mock/f40-build-55047443-6532009/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721347200 Wrote: /builddir/build/SRPMS/pygrib-2.1.6-1.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'], chrootPath='/var/lib/mock/f40-build-55047443-6532009/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=201600uid=1000gid=425user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '8176e155d6b348c8b32158c1f8eec87d', '-D', '/var/lib/mock/f40-build-55047443-6532009/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1721347200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Q2gpjl + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pygrib-2.1.6 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/pygrib-2.1.6.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd pygrib-2.1.6 + rm -rf /builddir/build/BUILD/pygrib-2.1.6-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/pygrib-2.1.6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/pygrib-build.patch + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/pygrib-test-gaussian.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2hPDxC + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/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=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pygrib-2.1.6 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' eccodes found in /usr running build running build_py creating build creating build/lib.linux-x86_64-cpython-312 creating build/lib.linux-x86_64-cpython-312/pygrib copying src/pygrib/__init__.py -> build/lib.linux-x86_64-cpython-312/pygrib running build_ext /builddir/build/BUILD/pygrib-2.1.6/setup.py:18: _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`. ******************************************************************************** !! self.distribution.fetch_build_eggs(["numpy"]) WARNING: The wheel package is not available. /usr/lib64/python3.12/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /builddir/build/BUILD/pygrib-2.1.6/src/pygrib/_pygrib.pyx tree = Parsing.p_module(s, pxd, full_module_name) warning: src/pygrib/_pygrib.pyx:358:12: Unreachable code Compiling src/pygrib/_pygrib.pyx because it changed. [1/1] Cythonizing src/pygrib/_pygrib.pyx building 'pygrib._pygrib' extension creating build/temp.linux-x86_64-cpython-312 creating build/temp.linux-x86_64-cpython-312/src creating build/temp.linux-x86_64-cpython-312/src/pygrib gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -fexceptions -fcf-protection -fexceptions -fcf-protection -fexceptions -fcf-protection -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -I/usr/include -I/usr/include/python3.12 -I/usr/lib64/python3.12/site-packages/numpy/core/include -c src/pygrib/_pygrib.c -o build/temp.linux-x86_64-cpython-312/src/pygrib/_pygrib.o In file included from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929, from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/arrayobject.h:5, from src/pygrib/_pygrib.c:1231: /usr/lib64/python3.12/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] 17 | #warning "Using deprecated NumPy API, disable it with " \ | ^~~~~~~ gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer build/temp.linux-x86_64-cpython-312/src/pygrib/_pygrib.o -L/usr/lib -L/usr/lib64 -L/usr/lib64 -leccodes -o build/lib.linux-x86_64-cpython-312/pygrib/_pygrib.cpython-312-x86_64-linux-gnu.so running build_scripts creating build/scripts-3.12 copying and adjusting utils/grib_list -> build/scripts-3.12 copying and adjusting utils/grib_repack -> build/scripts-3.12 copying and adjusting utils/cnvgrib1to2 -> build/scripts-3.12 copying and adjusting utils/cnvgrib2to1 -> build/scripts-3.12 changing mode of build/scripts-3.12/grib_list from 644 to 755 changing mode of build/scripts-3.12/grib_repack from 644 to 755 changing mode of build/scripts-3.12/cnvgrib1to2 from 644 to 755 changing mode of build/scripts-3.12/cnvgrib2to1 from 644 to 755 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.U2ctHd + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64 ++ dirname /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/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=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pygrib-2.1.6 + export MAN_DIR=/usr/share/man/ + MAN_DIR=/usr/share/man/ + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64 --prefix /usr eccodes found in /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/pygrib-2.1.6-1.fc40.x86_64/usr creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64 creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12 creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages/pygrib copying build/lib.linux-x86_64-cpython-312/pygrib/__init__.py -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages/pygrib copying build/lib.linux-x86_64-cpython-312/pygrib/_pygrib.cpython-312-x86_64-linux-gnu.so -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages/pygrib byte-compiling /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages/pygrib/__init__.py to __init__.cpython-312.pyc writing byte-compilation script '/tmp/tmps5_8_9lu.py' /usr/bin/python3 /tmp/tmps5_8_9lu.py removing /tmp/tmps5_8_9lu.py running install_data creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man/man1 copying man/cnvgrib1to2.1 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man/man1 copying man/cnvgrib2to1.1 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man/man1 copying man/grib_list.1 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man/man1 copying man/grib_repack.1 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/man/man1 running install_egg_info running egg_info writing src/pygrib.egg-info/PKG-INFO writing dependency_links to src/pygrib.egg-info/dependency_links.txt writing requirements to src/pygrib.egg-info/requires.txt writing top-level names to src/pygrib.egg-info/top_level.txt reading manifest file 'src/pygrib.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'src/pygrib.egg-info/SOURCES.txt' Copying src/pygrib.egg-info to /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12/site-packages/pygrib-2.1.6-py3.12.egg-info running install_scripts creating /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin copying build/scripts-3.12/grib_list -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin copying build/scripts-3.12/grib_repack -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin copying build/scripts-3.12/cnvgrib1to2 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin copying build/scripts-3.12/cnvgrib2to1 -> /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin changing mode of /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin/grib_list to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin/grib_repack to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin/cnvgrib1to2 to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin/cnvgrib2to1 to 755 + rm -rfv /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/bin/__pycache__ + mkdir -p /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/doc/pygrib + cp -r /builddir/build/BUILD/pygrib-2.1.6/docs/_build/html /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/doc/pygrib/html + /usr/bin/rm /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/share/doc/pygrib/html/.buildinfo + /usr/bin/find-debuginfo -j48 --strict-build-id -m -i --build-id-seed 2.1.6-1.fc40 --unique-debug-suffix -2.1.6-1.fc40.x86_64 --unique-debug-src-base pygrib-2.1.6-1.fc40.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/pygrib-2.1.6 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/pygrib-2.1.6-1.fc40.x86_64 6531 blocks 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 -j48 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib64/python3.12 using python3.12 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64/usr/lib/debug/usr/lib64/python3.12 using python3.12 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Kfckfj + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -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 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/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=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd pygrib-2.1.6 + export PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64//usr/lib64/python3.12/site-packages + PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.1.6-1.fc40.x86_64//usr/lib64/python3.12/site-packages + export MPLBACKEND=agg + MPLBACKEND=agg + export TESTROOT=/builddir/build/BUILD/pygrib-2.1.6-tmp-test + TESTROOT=/builddir/build/BUILD/pygrib-2.1.6-tmp-test + mkdir /builddir/build/BUILD/pygrib-2.1.6-tmp-test + cp -R sampledata /builddir/build/BUILD/pygrib-2.1.6-tmp-test + cp -R test /builddir/build/BUILD/pygrib-2.1.6-tmp-test + cd /builddir/build/BUILD/pygrib-2.1.6-tmp-test/test + /usr/bin/python3 -c 'import pygrib' + /usr/bin/python3 test.py Trying: import pygrib Expecting nothing ok Trying: list(pygrib.open('../sampledata/flux.grb')) Expecting: [1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200, 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200, 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200, 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200] ok Trying: pygrib.open('../sampledata/flux.grb').read() Expecting: [1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200, 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200, 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200, 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200] ok Trying: grbs = pygrib.open('../sampledata/flux.grb') Expecting nothing ok Trying: len(grbs) Expecting: 4 ok Trying: grbs.tell() Expecting: 0 ok Trying: grbs.read(1) Expecting: [1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200] ok Trying: grbs.tell() Expecting: 1 ok Trying: grbs.read(2) Expecting: [2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200, 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200] ok Trying: grbs.read() Expecting: [4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200] ok Trying: grbs.seek(1) Expecting nothing ok Trying: grbs.readline() Expecting: 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 ok Trying: grbs.seek(-3,2) Expecting nothing ok Trying: grbs.readline() Expecting: 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 ok Trying: grbs.seek(1,1) Expecting nothing ok Trying: grbs.readline() Expecting: 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grbs.seek(0) Expecting nothing ok Trying: grb1 = grbs.readline() Expecting nothing ok Trying: grb1 Expecting: 1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200 ok Trying: for grb in grbs: grb Expecting: 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grb Expecting: 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grb1 Expecting: 1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200 ok Trying: grbs.rewind() Expecting nothing ok Trying: for grb in grbs: grb Expecting: 1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grb = grbs.message(3) Expecting nothing ok Trying: grb # 3rd message Expecting: 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grbs.seek(0) # position iterator at beginning (same as grbs.rewind()) Expecting nothing ok Trying: grb = grbs[2] # 2nd message Expecting nothing ok Trying: grb Expecting: 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 ok Trying: grb = grbs.readline() Expecting nothing ok Trying: grb # back to the 1st message Expecting: 1:Precipitation rate:kg m**-2 s**-1 (avg):regular_gg:surface:level 0:fcst time 108-120 hrs (avg):from 200402291200 ok Trying: selected_grbs = grbs.select(level=2,typeOfLevel='heightAboveGround') # get all 2-m level fields Expecting nothing ok Trying: for grb in selected_grbs: grb Expecting: 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: selected_grbs = grbs.select(level=2,typeOfLevel='heightAboveGround',step=120) Expecting nothing ok Trying: for grb in selected_grbs: grb Expecting: 3:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok Trying: grbindx = pygrib.index('../sampledata/flux.grb','name','typeOfLevel','level') Expecting nothing ok Trying: selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 98, in __main__.test Failed example: selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/pygrib/_pygrib.pyx", line 1873, in pygrib._pygrib.index.__call__ File "src/pygrib/_pygrib.pyx", line 1959, in pygrib._pygrib.index.select ValueError: no matches found Trying: for grb in selgrbs: grb Expecting: 1:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 99, in __main__.test Failed example: for grb in selgrbs: grb Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in for grb in selgrbs: grb ^^^^^^^ NameError: name 'selgrbs' is not defined Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 101, in __main__.test Failed example: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/pygrib/_pygrib.pyx", line 1873, in pygrib._pygrib.index.__call__ File "src/pygrib/_pygrib.pyx", line 1959, in pygrib._pygrib.index.select ValueError: no matches found Trying: for grb in selgrbs: grb Expecting: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 102, in __main__.test Failed example: for grb in selgrbs: grb Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in for grb in selgrbs: grb ^^^^^^^ NameError: name 'selgrbs' is not defined Trying: grbindx.write('flux.grb.idx') # save the index Expecting nothing ok Trying: grbindx.close() Expecting nothing ok Trying: grbindx = pygrib.index('flux.grb.idx') Expecting nothing ok Trying: selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 109, in __main__.test Failed example: selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in selgrbs = grbindx(name='Minimum temperature',level=2,typeOfLevel='heightAboveGround') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/pygrib/_pygrib.pyx", line 1873, in pygrib._pygrib.index.__call__ File "src/pygrib/_pygrib.pyx", line 1959, in pygrib._pygrib.index.select ValueError: no matches found Trying: for grb in selgrbs: grb Expecting: 1:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 110, in __main__.test Failed example: for grb in selgrbs: grb Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in for grb in selgrbs: grb ^^^^^^^ NameError: name 'selgrbs' is not defined Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 112, in __main__.test Failed example: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "src/pygrib/_pygrib.pyx", line 1873, in pygrib._pygrib.index.__call__ File "src/pygrib/_pygrib.pyx", line 1959, in pygrib._pygrib.index.select ValueError: no matches found Trying: for grb in selgrbs: grb Expecting: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 113, in __main__.test Failed example: for grb in selgrbs: grb Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in for grb in selgrbs: grb ^^^^^^^ NameError: name 'selgrbs' is not defined Trying: grbindx.close() Expecting nothing ok Trying: grb = selgrbs[0] Expecting nothing ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 117, in __main__.test Failed example: grb = selgrbs[0] Exception raised: Traceback (most recent call last): File "/usr/lib64/python3.12/doctest.py", line 1368, in __run exec(compile(example.source, filename, "single", File "", line 1, in grb = selgrbs[0] ^^^^^^^ NameError: name 'selgrbs' is not defined Trying: grb Expecting: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 118, in __main__.test Failed example: grb Expected: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 Got: 4:Minimum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 Trying: data = grb['values'] # 'values' returns the data Expecting nothing ok Trying: 'shape/min/max data %s %6.2f %6.2f'%(str(data.shape),data.min(),data.max()) Expecting: 'shape/min/max data (94, 192) 223.70 319.90' ********************************************************************** File "/builddir/build/BUILD/pygrib-2.1.6-tmp-test/test/test.py", line 123, in __main__.test Failed example: 'shape/min/max data %s %6.2f %6.2f'%(str(data.shape),data.min(),data.max()) Expected: 'shape/min/max data (94, 192) 223.70 319.90' Got: 'shape/min/max data (94, 192) 216.00 303.80' Trying: lats, lons = grb.latlons() # returns lat/lon values on grid. Expecting nothing ok Trying: str('min/max of %d lats on %s grid %4.2f %4.2f' % (grb['Nj'], grb['typeOfGrid'],lats.min(),lats.max())) Expecting: 'min/max of 94 lats on regular_gg grid -88.54 88.54' ok Trying: str('min/max of %d lons on %s grid %4.2f %4.2f' % (grb['Ni'], grb['typeOfGrid'],lons.min(),lons.max())) Expecting: 'min/max of 192 lons on regular_gg grid 0.00 358.12' ok Trying: grb = grbs.message(2) Expecting nothing ok Trying: grb Expecting: 2:Surface pressure:Pa (instant):regular_gg:surface:level 0:fcst time 120 hrs:from 200402291200 ok Trying: 'valid date %s' % grb['validityDate'] Expecting: 'valid date 20040305' ok Trying: 'min/max %5.1f %5.1f' % (grb['minimum'],grb['maximum']) Expecting: 'min/max 49650.0 109330.0' ok Trying: grb['forecastTime'] = 168 Expecting nothing ok Trying: grb['forecastTime'] Expecting: 168 ok Trying: grb.forecastTime = 240 Expecting nothing ok Trying: grb.forecastTime Expecting: 240 ok Trying: grb['parameterNumber'] = 2 # change to pressure tendency Expecting nothing ok Trying: data = grb['values'] Expecting nothing ok Trying: grb['values']=data/1000. # rescale Expecting nothing ok Trying: grbout = open('test.grb','wb') Expecting nothing ok Trying: msg = grb.tostring() Expecting nothing ok Trying: ret = grbout.write(msg) Expecting nothing ok Trying: grbout.close() Expecting nothing ok Trying: grbs = pygrib.open('test.grb') Expecting nothing ok Trying: grb = grbs.readline() Expecting nothing ok Trying: grb Expecting: 1:Pressure tendency:Pa s**-1 (instant):regular_gg:surface:level 0:fcst time 240 hrs:from 200402291200 ok Trying: 'valid date %s' % grb['validityDate'] Expecting: 'valid date 20040310' ok Trying: grb.analDate Expecting: datetime.datetime(2004, 2, 29, 12, 0) ok Trying: grb.validDate Expecting: datetime.datetime(2004, 3, 10, 12, 0) ok Trying: grbs.close() Expecting nothing ok Trying: grbs = pygrib.open('../sampledata/gfs.grb') Expecting nothing ok Trying: sel_grbs = grbs.select(shortName='t',level=500) Expecting nothing ok Trying: for grb in sel_grbs: grb Expecting: 101:Temperature:K (instant):regular_ll:isobaricInhPa:level 50000 Pa:fcst time 72 hrs:from 201110080000 ok Trying: sel_grbs = grbs.select(shortName='t',level=(850,700,500)) Expecting nothing ok Trying: for grb in sel_grbs: grb Expecting: 101:Temperature:K (instant):regular_ll:isobaricInhPa:level 50000 Pa:fcst time 72 hrs:from 201110080000 133:Temperature:K (instant):regular_ll:isobaricInhPa:level 70000 Pa:fcst time 72 hrs:from 201110080000 157:Temperature:K (instant):regular_ll:isobaricInhPa:level 85000 Pa:fcst time 72 hrs:from 201110080000 ok Trying: sel_grbs = grbs.select(shortName='t',level=lambda l: l < 500 and l >= 300) Expecting nothing ok Trying: for grb in sel_grbs: grb Expecting: 69:Temperature:K (instant):regular_ll:isobaricInhPa:level 30000 Pa:fcst time 72 hrs:from 201110080000 77:Temperature:K (instant):regular_ll:isobaricInhPa:level 35000 Pa:fcst time 72 hrs:from 201110080000 85:Temperature:K (instant):regular_ll:isobaricInhPa:level 40000 Pa:fcst time 72 hrs:from 201110080000 93:Temperature:K (instant):regular_ll:isobaricInhPa:level 45000 Pa:fcst time 72 hrs:from 201110080000 ok Trying: from datetime import datetime Expecting nothing ok Trying: sel_grbs = grbs.select(shortName='t',level=300,validDate=datetime(2011,10,11,0)) Expecting nothing ok Trying: for grb in sel_grbs: grb Expecting: 69:Temperature:K (instant):regular_ll:isobaricInhPa:level 30000 Pa:fcst time 72 hrs:from 201110080000 ok Trying: lats, lons = grb.latlons() # returns lat/lon values on grid. Expecting nothing ok Trying: str('min/max of %d lats on %s grid %4.2f %4.2f' % (grb['Nj'], grb['typeOfGrid'],lats.min(),lats.max())) Expecting: 'min/max of 73 lats on regular_ll grid -90.00 90.00' ok Trying: datsubset,latsubset,lonsubset=grb.data(lat1=15,lat2=65,lon1=220,lon2=320) Expecting nothing ok Trying: latsubset.min(),latsubset.max(),lonsubset.min(),lonsubset.max() Expecting: (15.0, 65.0, 220.0, 320.0) ok Trying: 'shape/min/max data subset %s %6.2f %6.2f' % (str(datsubset.shape),datsubset.min(),datsubset.max()) Expecting: 'shape/min/max data subset (21, 41) 219.70 247.60' ok Trying: grbstr = grb.tostring() Expecting nothing ok Trying: grb2 = pygrib.fromstring(grbstr) Expecting nothing ok Trying: grb2 Expecting: 1:Temperature:K (instant):regular_ll:isobaricInhPa:level 30000 Pa:fcst time 72 hrs:from 201110080000 ok Trying: grb2.analDate Expecting: datetime.datetime(2011, 10, 8, 0, 0) ok Trying: grb2.validDate Expecting: datetime.datetime(2011, 10, 11, 0, 0) ok Trying: grbs.close() Expecting nothing ok Trying: grbs = pygrib.open('../sampledata/gfs.t12z.pgrbf120.2p5deg.grib2') Expecting nothing ok Trying: grbs.messages Expecting: 343 ok Trying: grbs.close() Expecting nothing ok Trying: grbs = pygrib.open('../sampledata/dspr.temp.bin') Expecting nothing ok Trying: for grb in grbs: grb Expecting: 1:Maximum temperature:K (max):mercator:surface:level 0:fcst time 2-14 hrs (max):from 201109292200 2:Maximum temperature:K (max):mercator:surface:level 0:fcst time 26-38 hrs (max):from 201109292200 3:Maximum temperature:K (max):mercator:surface:level 0:fcst time 50-62 hrs (max):from 201109292200 4:Maximum temperature:K (max):mercator:surface:level 0:fcst time 74-86 hrs (max):from 201109292200 ok Trying: str(grb.packingType) Expecting: 'grid_complex_spatial_differencing' ok Trying: data = grb.values Expecting nothing ok Trying: grbs.close() Expecting nothing ok Trying: str('min/max %5.2f %5.2f' % (data.min(), data.max())) Expecting: 'min/max 295.40 308.10' ok Trying: grbs = pygrib.open('../sampledata/no-radius-shapeOfEarth-7.grb2') Expecting nothing ok Trying: for grb in grbs: print(grb) # doctest:+ELLIPSIS Expecting: 1:Total precipitation:kg m-2 (accum):lambert:surface:level 0:fcst time 15...-30... mins (accum):from 201804100000 ok Trying: str(grb.packingType) Expecting: 'grid_simple' ok Trying: grbs.close() Expecting nothing ok 1 items had no tests: __main__ ********************************************************************** 1 items had failures: 11 of 111 in __main__.test 111 tests in 2 items. 100 passed and 11 failed. ***Test Failed*** 11 failures. using ECCODES library version 2.38.0 error: Bad exit status from /var/tmp/rpm-tmp.Kfckfj (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Kfckfj (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 8176e155d6b348c8b32158c1f8eec87d -D /var/lib/mock/f40-build-55047443-6532009/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.12/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 8176e155d6b348c8b32158c1f8eec87d -D /var/lib/mock/f40-build-55047443-6532009/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.lwwyindm:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'