Mock Version: 1.2.21 Mock Version: 1.2.21 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'], user='mockbuild'chrootPath='/var/lib/mock/f25-build-6962840-670429/root'logger=timeout=172800gid=425printOutput=Falseuid=1000env={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'LANG': 'en_US.UTF-8'}shell=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/pygrib-2.0.2-2.fc25.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'], user='mockbuild'chrootPath='/var/lib/mock/f25-build-6962840-670429/root'private_network=Truetimeout=172800gid=425printOutput=Falseuid=1000env={'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'LANG': 'en_US.UTF-8'}logger=shell=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/pygrib.spec'] with env {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'HOME': '/builddir', 'PS1': ' \\s-\\v\\$ ', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.XMWB58 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pygrib-2.0.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/pygrib-2.0.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pygrib-2.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (pygrib-2.0.2-2-build.patch): + echo 'Patch #0 (pygrib-2.0.2-2-build.patch):' + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .orig --fuzz=0 patching file setup.py + rm -rf g2clib_src + rm g2clib.c + rm pygrib.c + rm redtoreg.c + rm -rf /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + cp -a . /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + find /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 -name '*.py' + xargs sed -i '1s|^#!python|#!/usr/bin/python3|' + cython g2clib.pyx + cython redtoreg.pyx + cython pygrib.pyx + pushd /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + cython -3 g2clib.pyx ~/build/BUILD/python3-pygrib-2.0.2-2.fc25 ~/build/BUILD/pygrib-2.0.2 + cython -3 redtoreg.pyx + cython -3 pygrib.pyx + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.k7R5Pa + umask 022 + cd /builddir/build/BUILD + cd pygrib-2.0.2 + export JASPER_DIR=/usr/ + JASPER_DIR=/usr/ + export PNG_DIR=/usr/ + PNG_DIR=/usr/ + /usr/bin/python2 setup.py build running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying ncepgrib2.py -> build/lib.linux-x86_64-2.7 running build_ext skipping 'pygrib.c' Cython extension (up-to-date) building 'pygrib' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include -I/usr/include/jasper -I/usr/include -I/usr/include -I/usr/include/python2.7 -c pygrib.c -o build/temp.linux-x86_64-2.7/pygrib.o In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from pygrib.c:273: /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_16keys': pygrib.c:13246:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] __pyx_v_name = grib_keys_iterator_get_name(__pyx_v_gi); ^ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_18_read_only_keys': pygrib.c:13685:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] __pyx_v_name = grib_keys_iterator_get_name(__pyx_v_gi); ^ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_30tostring': pygrib.c:17853:53: warning: passing argument 2 of 'grib_get_message' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_v_err = grib_get_message(__pyx_v_self->_gh, (&__pyx_v_message), (&__pyx_v_size)); ^ In file included from pygrib.c:274:0: /usr/include/grib_api.h:555:5: note: expected 'const void **' but argument is of type 'void **' int grib_get_message(grib_handle* h ,const void** message, size_t *message_length); ^~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/pygrib.o -L/usr/lib -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lgrib_api -ljasper -lpng -lgrib2c -lpython2.7 -o build/lib.linux-x86_64-2.7/pygrib.so skipping 'g2clib.c' Cython extension (up-to-date) building 'g2clib' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__64BIT__=1 -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include -I/usr/include/jasper -I/usr/include -I/usr/include -I/usr/include/python2.7 -c g2clib.c -o build/temp.linux-x86_64-2.7/g2clib.o g2clib.c: In function '__pyx_pf_6g2clib_rtoi_ieee': g2clib.c:1180:53: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_1 = ((PyObject_AsReadBuffer(__pyx_v_rarr, (&__pyx_v_rdat), (&__pyx_v_buflenr)) != 0) != 0); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_2itor_ieee': g2clib.c:1394:53: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_1 = ((PyObject_AsReadBuffer(__pyx_v_rarr, (&__pyx_v_rdat), (&__pyx_v_buflenr)) != 0) != 0); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_4unpack1': g2clib.c:1873:18: warning: implicit declaration of function 'g2_unpack1' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack1(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ids), (&__pyx_v_idslen)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_6unpack3': g2clib.c:2147:18: warning: implicit declaration of function 'g2_unpack3' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack3(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_igds), (&__pyx_v_igdstmpl), (&__pyx_v_mapgridlen), (&__pyx_v_ideflist), (&__pyx_v_idefnum)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_8unpack4': g2clib.c:2486:18: warning: implicit declaration of function 'g2_unpack4' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack4(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ipdsnum), (&__pyx_v_ipdstmpl), (&__pyx_v_mappdslen), (&__pyx_v_icoordlist), (&__pyx_v_numcoord)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_10unpack5': g2clib.c:2809:18: warning: implicit declaration of function 'g2_unpack5' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack5(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ndpts), (&__pyx_v_idrsnum), (&__pyx_v_idrstmpl), (&__pyx_v_mapdrslen)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_12unpack6': g2clib.c:3107:18: warning: implicit declaration of function 'g2_unpack6' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack6(__pyx_v_cgrib, (&__pyx_v_iofst), __pyx_v_ngpts, (&__pyx_v_ibmap), (&__pyx_v_bmap)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_14unpack7': g2clib.c:3532:41: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_drtmpl, (&__pyx_v_drtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:3541:41: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gdtmpl, (&__pyx_v_gdtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:3568:18: warning: implicit declaration of function 'g2_unpack7' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack7(__pyx_v_cgrib, (&__pyx_v_iofst), __pyx_v_igdsnum, __pyx_v_igdstmpl, __pyx_v_idrsnum, __pyx_v_idrstmpl, __pyx_v_ngpts, (&__pyx_v_fld)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_16grib2_create': g2clib.c:4113:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_listsec0, (&__pyx_v_listsec0dat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4122:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_listsec1, (&__pyx_v_listsec1dat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_20grib2_addgrid': g2clib.c:4562:38: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gds, (&__pyx_v_gdsdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4571:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gdstmpl, (&__pyx_v_gdstmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4608:44: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_deflist, (&__pyx_v_deflistdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_22grib2_addfield': g2clib.c:4994:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_pdstmpl, (&__pyx_v_pdtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5021:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_drstmpl, (&__pyx_v_drtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5050:46: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_coordlist, (&__pyx_v_coordlistdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5109:40: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_field, (&__pyx_v_fielddat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5170:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_bitmap, (&__pyx_v_bitmapdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python2.7/Python.h:133:0, from g2clib.c:4: /usr/include/python2.7/abstract.h:501:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/g2clib.o -L/usr/lib -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lgrib_api -ljasper -lpng -lgrib2c -lpython2.7 -o build/lib.linux-x86_64-2.7/g2clib.so skipping 'redtoreg.c' Cython extension (up-to-date) building 'redtoreg' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c redtoreg.c -o build/temp.linux-x86_64-2.7/redtoreg.o In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from redtoreg.c:274: /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from redtoreg.c:274: /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1: warning: '_import_array' defined but not used [-Wunused-function] _import_array(void) ^~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-2.7/redtoreg.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/redtoreg.so ~/build/BUILD/python3-pygrib-2.0.2-2.fc25 ~/build/BUILD/pygrib-2.0.2 + pushd /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + /usr/bin/python3 setup.py build running build running build_py creating build creating build/lib.linux-x86_64-3.5 copying ncepgrib2.py -> build/lib.linux-x86_64-3.5 running build_ext building 'pygrib' extension creating build/temp.linux-x86_64-3.5 gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/lib64/python3.5/site-packages/numpy/core/include -I/usr/include -I/usr/include/jasper -I/usr/include -I/usr/include -I/usr/include/python3.5m -c pygrib.c -o build/temp.linux-x86_64-3.5/pygrib.o In file included from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4, from pygrib.c:273: /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_16keys': pygrib.c:13234:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] __pyx_v_name = grib_keys_iterator_get_name(__pyx_v_gi); ^ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_18_read_only_keys': pygrib.c:13673:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] __pyx_v_name = grib_keys_iterator_get_name(__pyx_v_gi); ^ pygrib.c: In function '__pyx_pf_6pygrib_11gribmessage_30tostring': pygrib.c:17841:53: warning: passing argument 2 of 'grib_get_message' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_v_err = grib_get_message(__pyx_v_self->_gh, (&__pyx_v_message), (&__pyx_v_size)); ^ In file included from pygrib.c:274:0: /usr/include/grib_api.h:555:5: note: expected 'const void **' but argument is of type 'void **' int grib_get_message(grib_handle* h ,const void** message, size_t *message_length); ^~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-3.5/pygrib.o -L/usr/lib -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lgrib_api -ljasper -lpng -lgrib2c -lpython3.5m -o build/lib.linux-x86_64-3.5/pygrib.cpython-35m-x86_64-linux-gnu.so building 'g2clib' extension gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__64BIT__=1 -I/usr/lib64/python3.5/site-packages/numpy/core/include -I/usr/include -I/usr/include/jasper -I/usr/include -I/usr/include -I/usr/include/python3.5m -c g2clib.c -o build/temp.linux-x86_64-3.5/g2clib.o g2clib.c: In function '__pyx_pf_6g2clib_rtoi_ieee': g2clib.c:1160:53: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_1 = ((PyObject_AsReadBuffer(__pyx_v_rarr, (&__pyx_v_rdat), (&__pyx_v_buflenr)) != 0) != 0); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_2itor_ieee': g2clib.c:1374:53: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_1 = ((PyObject_AsReadBuffer(__pyx_v_rarr, (&__pyx_v_rdat), (&__pyx_v_buflenr)) != 0) != 0); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_4unpack1': g2clib.c:1856:18: warning: implicit declaration of function 'g2_unpack1' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack1(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ids), (&__pyx_v_idslen)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_6unpack3': g2clib.c:2130:18: warning: implicit declaration of function 'g2_unpack3' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack3(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_igds), (&__pyx_v_igdstmpl), (&__pyx_v_mapgridlen), (&__pyx_v_ideflist), (&__pyx_v_idefnum)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_8unpack4': g2clib.c:2469:18: warning: implicit declaration of function 'g2_unpack4' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack4(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ipdsnum), (&__pyx_v_ipdstmpl), (&__pyx_v_mappdslen), (&__pyx_v_icoordlist), (&__pyx_v_numcoord)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_10unpack5': g2clib.c:2792:18: warning: implicit declaration of function 'g2_unpack5' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack5(__pyx_v_cgrib, (&__pyx_v_iofst), (&__pyx_v_ndpts), (&__pyx_v_idrsnum), (&__pyx_v_idrstmpl), (&__pyx_v_mapdrslen)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_12unpack6': g2clib.c:3090:18: warning: implicit declaration of function 'g2_unpack6' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack6(__pyx_v_cgrib, (&__pyx_v_iofst), __pyx_v_ngpts, (&__pyx_v_ibmap), (&__pyx_v_bmap)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_14unpack7': g2clib.c:3515:41: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_drtmpl, (&__pyx_v_drtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:3524:41: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gdtmpl, (&__pyx_v_gdtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:3551:18: warning: implicit declaration of function 'g2_unpack7' [-Wimplicit-function-declaration] __pyx_v_ierr = g2_unpack7(__pyx_v_cgrib, (&__pyx_v_iofst), __pyx_v_igdsnum, __pyx_v_igdstmpl, __pyx_v_idrsnum, __pyx_v_idrstmpl, __pyx_v_ngpts, (&__pyx_v_fld)); ^~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_16grib2_create': g2clib.c:4104:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_listsec0, (&__pyx_v_listsec0dat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4113:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_listsec1, (&__pyx_v_listsec1dat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_20grib2_addgrid': g2clib.c:4553:38: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gds, (&__pyx_v_gdsdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4562:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_gdstmpl, (&__pyx_v_gdstmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:4599:44: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_deflist, (&__pyx_v_deflistdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c: In function '__pyx_pf_6g2clib_22grib2_addfield': g2clib.c:4985:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_pdstmpl, (&__pyx_v_pdtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5012:42: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_drstmpl, (&__pyx_v_drtmpldat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5041:46: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_coordlist, (&__pyx_v_coordlistdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5100:40: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_field, (&__pyx_v_fielddat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ g2clib.c:5161:43: warning: passing argument 2 of 'PyObject_AsReadBuffer' from incompatible pointer type [-Wincompatible-pointer-types] PyObject_AsReadBuffer(__pyx_v_bitmap, (&__pyx_v_bitmapdat), (&__pyx_v_buflen)); ^ In file included from /usr/include/python3.5m/Python.h:122:0, from g2clib.c:4: /usr/include/python3.5m/abstract.h:487:22: note: expected 'const void **' but argument is of type 'void **' PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj, ^~~~~~~~~~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-3.5/g2clib.o -L/usr/lib -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -lgrib_api -ljasper -lpng -lgrib2c -lpython3.5m -o build/lib.linux-x86_64-3.5/g2clib.cpython-35m-x86_64-linux-gnu.so building 'redtoreg' extension gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/lib64/python3.5/site-packages/numpy/core/include -I/usr/include/python3.5m -c redtoreg.c -o build/temp.linux-x86_64-3.5/redtoreg.o In file included from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4, from redtoreg.c:274: /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ In file included from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:27:0, from /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4, from redtoreg.c:274: /usr/lib64/python3.5/site-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1: warning: '_import_array' defined but not used [-Wunused-function] _import_array(void) ^~~~~~~~~~~~~ gcc -pthread -shared -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld build/temp.linux-x86_64-3.5/redtoreg.o -L/usr/lib64 -lpython3.5m -o build/lib.linux-x86_64-3.5/redtoreg.cpython-35m-x86_64-linux-gnu.so running build_scripts creating build/scripts-3.5 copying and adjusting utils/grib_list -> build/scripts-3.5 copying and adjusting utils/grib_repack -> build/scripts-3.5 copying and adjusting utils/cnvgrib1to2 -> build/scripts-3.5 copying and adjusting utils/cnvgrib2to1 -> build/scripts-3.5 changing mode of build/scripts-3.5/grib_list from 644 to 755 changing mode of build/scripts-3.5/grib_repack from 644 to 755 changing mode of build/scripts-3.5/cnvgrib1to2 from 644 to 755 changing mode of build/scripts-3.5/cnvgrib2to1 from 644 to 755 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.laXKQM + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 ++ dirname /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 + cd pygrib-2.0.2 + export MAN_DIR=/usr/share/man/ + MAN_DIR=/usr/share/man/ + /usr/bin/python2 setup.py install --skip-build --root /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64 creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7 creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages copying build/lib.linux-x86_64-2.7/g2clib.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages copying build/lib.linux-x86_64-2.7/pygrib.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages copying build/lib.linux-x86_64-2.7/ncepgrib2.py -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages copying build/lib.linux-x86_64-2.7/redtoreg.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages byte-compiling /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages/ncepgrib2.py to ncepgrib2.pyc running install_egg_info Writing /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages/pygrib-2.0.2-py2.7.egg-info + chmod 755 /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python2.7/site-packages/g2clib.so /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python2.7/site-packages/pygrib.so /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python2.7/site-packages/redtoreg.so ~/build/BUILD/python3-pygrib-2.0.2-2.fc25 ~/build/BUILD/pygrib-2.0.2 + pushd /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + /usr/bin/python3 setup.py install --skip-build --root /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5 creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages copying build/lib.linux-x86_64-3.5/g2clib.cpython-35m-x86_64-linux-gnu.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages copying build/lib.linux-x86_64-3.5/redtoreg.cpython-35m-x86_64-linux-gnu.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages copying build/lib.linux-x86_64-3.5/pygrib.cpython-35m-x86_64-linux-gnu.so -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages copying build/lib.linux-x86_64-3.5/ncepgrib2.py -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages byte-compiling /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages/ncepgrib2.py to ncepgrib2.cpython-35.pyc running install_scripts creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin copying build/scripts-3.5/grib_repack -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin copying build/scripts-3.5/cnvgrib2to1 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin copying build/scripts-3.5/cnvgrib1to2 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin copying build/scripts-3.5/grib_list -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin changing mode of /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin/grib_repack to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin/cnvgrib2to1 to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin/cnvgrib1to2 to 755 changing mode of /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/bin/grib_list to 755 running install_data creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man creating /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man/man1 copying man/grib_list.1 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man/man1 copying man/grib_repack.1 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man/man1 copying man/cnvgrib1to2.1 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man/man1 copying man/cnvgrib2to1.1 -> /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/man/man1 running install_egg_info Writing /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages/pygrib-2.0.2-py3.5.egg-info + chmod 755 /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python3.5/site-packages/g2clib.cpython-35m-x86_64-linux-gnu.so /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python3.5/site-packages/pygrib.cpython-35m-x86_64-linux-gnu.so /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python3.5/site-packages/redtoreg.cpython-35m-x86_64-linux-gnu.so + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /builddir/build/BUILD/pygrib-2.0.2 extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages/g2clib.cpython-35m-x86_64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages/redtoreg.cpython-35m-x86_64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5/site-packages/pygrib.cpython-35m-x86_64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages/g2clib.so extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages/pygrib.so extracting debug info from /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7/site-packages/redtoreg.so /usr/lib/rpm/sepdebugcrcfix: Updated 6 CRC32s, 0 CRC32s did match. 9013 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib/debug/usr/lib64/python3.5 using /usr/bin/python3.5 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib/debug/usr/lib64/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python3.5 using /usr/bin/python3.5 Bytecompiling .py files below /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/lib64/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ySat0t + umask 022 + cd /builddir/build/BUILD + cd pygrib-2.0.2 + export PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python2.7/site-packages + PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python2.7/site-packages + /usr/bin/python2 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: 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 ok 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 ok Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ok 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 ok 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 ok 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 ok Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ok 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 ok Trying: grbindx.close() Expecting nothing ok Trying: grb = selgrbs[0] Expecting nothing ok Trying: grb Expecting: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok 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' 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 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: grb/builddir/build/BUILD/pygrib-2.0.2/ncepgrib2.py:738: MaskedArrayFutureWarning: setting an item on a masked array which has a shared mask will not copy the mask and also change the original mask array in the future. Check the NumPy 1.11 release notes for more information. fld[1::2,:] = fldsave[1::2,::-1] s = 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: str('min/max %5.2f %5.2f' % (data.min(), data.max())) Expecting: 'min/max 295.40 308.10' ok 1 items had no tests: __main__ 1 items passed all tests: 105 tests in __main__.test 105 tests in 2 items. 105 passed and 0 failed. Test passed. using GRIB API version 1.16.0 ~/build/BUILD/python3-pygrib-2.0.2-2.fc25 ~/build/BUILD/pygrib-2.0.2 + pushd /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25 + export PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python3.5/site-packages + PYTHONPATH=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64//usr/lib64/python3.5/site-packages + /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: 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 ok 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 ok Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ok 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 ok 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 ok 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 ok Trying: selgrbs = grbindx(name='Maximum temperature',level=2,typeOfLevel='heightAboveGround') Expecting nothing ok 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 ok Trying: grbindx.close() Expecting nothing ok Trying: grb = selgrbs[0] Expecting nothing ok Trying: grb Expecting: 1:Maximum temperature:K (instant):regular_gg:heightAboveGround:level 2 m:fcst time 108-120 hrs:from 200402291200 ok 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' 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 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: str('min/max %5.2f %5.2f' % (data.min(), data.max())) Expecting: 'min/max 295.40 308.10' ok 1 items had no tests: __main__ 1 items passed all tests: 105 tests in __main__.test 105 tests in 2 items. 105 passed and 0 failed. Test passed. using GRIB API version 1.16.0 /builddir/build/BUILD/python3-pygrib-2.0.2-2.fc25/ncepgrib2.py:738: MaskedArrayFutureWarning: setting an item on a masked array which has a shared mask will not copy the mask and also change the original mask array in the future. Check the NumPy 1.11 release notes for more information. fld[1::2,:] = fldsave[1::2,::-1] + exit 0 Processing files: pygrib-2.0.2-2.fc25.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.F9miBs + umask 022 + cd /builddir/build/BUILD + cd pygrib-2.0.2 + DOCDIR=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + cp -pr COPYING /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + cp -pr PKG-INFO /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + cp -pr README.md /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + cp -pr docs /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + cp -pr ncepgrib2_docs /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/pygrib + exit 0 Finding Provides: /bin/sh -c " /usr/bin/grep -v '/usr/lib64/python2.7/site-packages.*\.so$' | /usr/bin/grep -v '/usr/lib64/python3.5/site-packages.*\.so$' | while read FILE; do echo "${FILE}" | /usr/lib/rpm/rpmdeps -P; done | /bin/sort -u " Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /bin/sh -c " while read FILE; do echo "${FILE}" | /usr/lib/rpm/rpmdeps -R; done | /bin/sort -u " Provides: pygrib = 2.0.2-2.fc25 pygrib(x86-64) = 2.0.2-2.fc25 python2.7dist(pygrib) = 2.0.2 python2dist(pygrib) = 2.0.2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgrib_api.so.1()(64bit) libjasper.so.1()(64bit) libpng16.so.16()(64bit) libpng16.so.16(PNG16_0)(64bit) libpthread.so.0()(64bit) libpython2.7.so.1.0()(64bit) python(abi) = 2.7 rtld(GNU_HASH) Processing files: python3-pygrib-2.0.2-2.fc25.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ypaytv + umask 022 + cd /builddir/build/BUILD + cd pygrib-2.0.2 + DOCDIR=/builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + cp -pr COPYING /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + cp -pr PKG-INFO /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + cp -pr README.md /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + cp -pr docs /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + cp -pr ncepgrib2_docs /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64/usr/share/doc/python3-pygrib + exit 0 Finding Provides: /bin/sh -c " /usr/bin/grep -v '/usr/lib64/python2.7/site-packages.*\.so$' | /usr/bin/grep -v '/usr/lib64/python3.5/site-packages.*\.so$' | while read FILE; do echo "${FILE}" | /usr/lib/rpm/rpmdeps -P; done | /bin/sort -u " Finding Requires(interp): Finding Requires(rpmlib): Finding Requires(verify): Finding Requires(pre): Finding Requires(post): Finding Requires(preun): Finding Requires(postun): Finding Requires(pretrans): Finding Requires(posttrans): Finding Requires: /bin/sh -c " while read FILE; do echo "${FILE}" | /usr/lib/rpm/rpmdeps -R; done | /bin/sort -u " Provides: python3-pygrib = 2.0.2-2.fc25 python3-pygrib(x86-64) = 2.0.2-2.fc25 python3.5dist(pygrib) = 2.0.2 python3dist(pygrib) = 2.0.2 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 libc.so.6()(64bit) libc.so.6(GLIBC_2.11)(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.4)(64bit) libgrib_api.so.1()(64bit) libjasper.so.1()(64bit) libpng16.so.16()(64bit) libpng16.so.16(PNG16_0)(64bit) libpthread.so.0()(64bit) libpython3.5m.so.1.0()(64bit) python(abi) = 3.5 rtld(GNU_HASH) Processing files: pygrib-debuginfo-2.0.2-2.fc25.x86_64 Provides: pygrib-debuginfo = 2.0.2-2.fc25 pygrib-debuginfo(x86-64) = 2.0.2-2.fc25 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 Wrote: /builddir/build/RPMS/pygrib-2.0.2-2.fc25.x86_64.rpm Wrote: /builddir/build/RPMS/python3-pygrib-2.0.2-2.fc25.x86_64.rpm Wrote: /builddir/build/RPMS/pygrib-debuginfo-2.0.2-2.fc25.x86_64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.9Vn0KH + umask 022 + cd /builddir/build/BUILD + cd pygrib-2.0.2 + /usr/bin/rm -rf /builddir/build/BUILDROOT/pygrib-2.0.2-2.fc25.x86_64 + exit 0 Child return code was: 0