<86>Dec 15 08:38:28 userdel[4163]: delete user 'rooter' <86>Dec 15 08:38:28 userdel[4163]: removed group 'rooter' owned by 'rooter' <86>Dec 15 08:38:28 userdel[4163]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 15 08:38:28 groupadd[4214]: group added to /etc/group: name=rooter, GID=603 <86>Dec 15 08:38:28 groupadd[4214]: group added to /etc/gshadow: name=rooter <86>Dec 15 08:38:28 groupadd[4214]: new group: name=rooter, GID=603 <86>Dec 15 08:38:28 useradd[4243]: new user: name=rooter, UID=603, GID=603, home=/root, shell=/bin/bash <86>Dec 15 08:38:28 userdel[4288]: delete user 'builder' <86>Dec 15 08:38:28 userdel[4288]: removed group 'builder' owned by 'builder' <86>Dec 15 08:38:28 userdel[4288]: removed shadow group 'builder' owned by 'builder' <86>Dec 15 08:38:28 groupadd[4320]: group added to /etc/group: name=builder, GID=604 <86>Dec 15 08:38:28 groupadd[4320]: group added to /etc/gshadow: name=builder <86>Dec 15 08:38:28 groupadd[4320]: new group: name=builder, GID=604 <86>Dec 15 08:38:28 useradd[4337]: new user: name=builder, UID=604, GID=604, home=/usr/src, shell=/bin/bash <13>Dec 15 08:38:31 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 15 08:38:31 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Dec 15 08:38:31 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Dec 15 08:38:31 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Dec 15 08:38:31 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 15 08:38:31 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 15 08:38:31 rpmi: ca-certificates-2019.10.28-alt1 p9+240634.100.1.1 1573575926 installed <13>Dec 15 08:38:31 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Dec 15 08:38:31 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Dec 15 08:38:31 rpmi: libcrypto1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Dec 15 08:38:31 rpmi: libssl1.1-1.1.1d-alt1.1 p9+237853.200.3.1 1569251834 installed <13>Dec 15 08:38:31 rpmi: python3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Dec 15 08:38:31 rpmi: libpython3-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Dec 15 08:38:32 rpmi: python3-base-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Dec 15 08:38:32 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 15 08:38:32 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 15 08:38:35 rpmi: libjpeg-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902907 installed <13>Dec 15 08:38:35 rpmi: libopenblas-0.2.20-alt2 p9+229427.100.2.1 1558020066 installed <13>Dec 15 08:38:35 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 15 08:38:35 rpmi: libwebp7-1.0.3-alt1 p9+234901.200.1.1 1563552457 installed <13>Dec 15 08:38:35 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633314 installed <13>Dec 15 08:38:36 rpmi: libhdf5-8-seq-1.8.13-alt1.qa4 sisyphus+222602.100.1.1 1550929955 installed <13>Dec 15 08:38:36 rpmi: libidn2-2.2.0-alt1 p9+229971.100.2.1 1558696281 installed <13>Dec 15 08:38:36 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed <13>Dec 15 08:38:36 rpmi: libjasper-2.0.14-alt1 1530105217 installed <13>Dec 15 08:38:36 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Dec 15 08:38:36 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Dec 15 08:38:36 rpmi: python3-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Dec 15 08:38:36 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Dec 15 08:38:36 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Dec 15 08:38:36 rpmi: python3-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Dec 15 08:38:36 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Dec 15 08:38:36 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Dec 15 08:38:36 rpmi: python3-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Dec 15 08:38:36 rpmi: python3-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Dec 15 08:38:36 rpmi: python-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Dec 15 08:38:36 rpmi: python-module-apipkg-1.5-alt1 1531926894 installed <13>Dec 15 08:38:36 rpmi: libopenjpeg2.0-2.3.1-alt1 sisyphus+226454.100.1.1 1554284337 installed <13>Dec 15 08:38:36 rpmi: libnumpy-py3-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:36 rpmi: libnumpy-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:36 rpmi: liblcms2-2.9-alt1 1516411892 installed <13>Dec 15 08:38:36 rpmi: libxblas-1.0.248-alt1.3 sisyphus+229150.100.1.1 1557388786 installed <13>Dec 15 08:38:36 rpmi: libjbig-2.1-alt1 1401380926 installed <13>Dec 15 08:38:36 rpmi: libtiff5-4.0.10.0.57.f9fc01c3-alt1 sisyphus+226958.100.1.1 1554850940 installed <13>Dec 15 08:38:36 rpmi: libimagequant-2.12.2-alt1_2 sisyphus+222070.100.1.1 1550597340 installed <13>Dec 15 08:38:36 rpmi: libgraphite2-1.3.13-alt2 sisyphus+226799.100.1.1 1554648241 installed <13>Dec 15 08:38:36 rpmi: libharfbuzz-2.6.2-alt1 p9+238790.200.1.1 1570435826 installed <13>Dec 15 08:38:36 rpmi: libfreetype-2.10.0-alt2 sisyphus+226881.100.2.1 1555676286 installed <13>Dec 15 08:38:36 rpmi: libquadmath0-8.3.1-alt5 p9+240194.100.1.1 1572928737 installed <13>Dec 15 08:38:36 rpmi: libgfortran5-8.3.1-alt5 p9+240194.100.1.1 1572928737 installed <13>Dec 15 08:38:36 rpmi: liblapack-1:3.8.0-alt3 sisyphus+221521.100.1.1 1550134903 installed <13>Dec 15 08:38:36 rpmi: python3-module-numpy-testing-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:37 rpmi: python3-module-numpy-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:37 rpmi: libsqlite3-3.29.0-alt1 p9+237498.100.1.1 1568303696 installed <13>Dec 15 08:38:37 rpmi: libltdl7-2.4.6-alt1 sisyphus+226971.100.2.1 1554906368 installed <13>Dec 15 08:38:37 rpmi: libunixODBC2-2.3.7-alt1 sisyphus+228027.100.1.1 1556027338 installed <13>Dec 15 08:38:37 rpmi: libmysqlclient21-8.0.16-alt1 p9+234071.100.1.1 1562528446 installed <13>Dec 15 08:38:37 rpmi: libgif-4.1.6-alt3 1299634261 installed <13>Dec 15 08:38:37 rpmi: libgeos-3.7.2-alt1 sisyphus+228903.40.3.1 1557079771 installed <13>Dec 15 08:38:37 rpmi: publicsuffix-list-dafsa-20191108-alt1 p9+240483.100.2.1 1573432584 installed <13>Dec 15 08:38:37 rpmi: libpsl-0.21.0-alt1 sisyphus+227314.100.1.2 1555618423 installed <13>Dec 15 08:38:37 rpmi: libnghttp2-1.34.0-alt1 sisyphus+222625.100.1.1 1550947259 installed <13>Dec 15 08:38:37 rpmi: libbrotlicommon-1.0.7-alt1 sisyphus+226738.100.2.1 1554554568 installed <13>Dec 15 08:38:37 rpmi: libbrotlidec-1.0.7-alt1 sisyphus+226738.100.2.1 1554554568 installed <13>Dec 15 08:38:37 rpmi: libcfitsio4-3.380-alt2 1458566078 installed <13>Dec 15 08:38:37 rpmi: libproj-5.2.0-alt1 sisyphus+221643.100.9.2 1550496681 installed <13>Dec 15 08:38:37 rpmi: python-modules-curses-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 15 08:38:37 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 15 08:38:37 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 15 08:38:37 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Dec 15 08:38:37 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Dec 15 08:38:37 groupadd[39948]: group added to /etc/group: name=_keytab, GID=499 <86>Dec 15 08:38:37 groupadd[39948]: group added to /etc/gshadow: name=_keytab <86>Dec 15 08:38:37 groupadd[39948]: new group: name=_keytab, GID=499 <13>Dec 15 08:38:37 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746516 installed <13>Dec 15 08:38:37 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Dec 15 08:38:37 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 15 08:38:37 rpmi: python-modules-compiler-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-email-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-unittest-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-encodings-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-nis-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-ctypes-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Dec 15 08:38:37 rpmi: python-modules-multiprocessing-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:37 rpmi: python-modules-logging-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 15 08:38:38 rpmi: python-module-olefile-0.45.1-alt1.qa1 sisyphus+227506.1700.1.2 1555852928 installed <13>Dec 15 08:38:38 rpmi: python-tools-2to3-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-module-more-itertools-1:5.0.0-alt2 sisyphus+226536.200.1.1 1554329977 installed <13>Dec 15 08:38:38 rpmi: python-modules-xml-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-modules-hotshot-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-modules-bsddb-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-modules-distutils-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-strict-2.7.16-alt1 sisyphus+226365.200.2.1 1554143277 installed <13>Dec 15 08:38:38 rpmi: python-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Dec 15 08:38:38 rpmi: python-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Dec 15 08:38:38 rpmi: python-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Dec 15 08:38:38 rpmi: python-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Dec 15 08:38:38 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+228355.2600.2.1 1556560236 installed <13>Dec 15 08:38:38 rpmi: python-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Dec 15 08:38:38 rpmi: python-module-scandir-1.10.0-alt1 sisyphus+225192.100.1.2 1552968870 installed <13>Dec 15 08:38:38 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus+228364.300.4.1 1556886257 installed <13>Dec 15 08:38:38 rpmi: python-modules-json-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <13>Dec 15 08:38:38 rpmi: python-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Dec 15 08:38:38 rpmi: python-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Dec 15 08:38:38 rpmi: python-module-numpy-testing-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:38 rpmi: python-module-numpy-1:1.15.4-alt1 sisyphus+225625.25600.91.1 1555302306 installed <13>Dec 15 08:38:38 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Dec 15 08:38:38 rpmi: python-dev-2.7.16-alt1 sisyphus+226365.200.2.1 1554143304 installed <86>Dec 15 08:38:38 groupadd[44904]: group added to /etc/group: name=sasl, GID=498 <86>Dec 15 08:38:38 groupadd[44904]: group added to /etc/gshadow: name=sasl <86>Dec 15 08:38:38 groupadd[44904]: new group: name=sasl, GID=498 <13>Dec 15 08:38:38 rpmi: libsasl2-3-2.1.27-alt2 sisyphus+228101.100.1.1 1556139863 installed <13>Dec 15 08:38:38 rpmi: libldap-2.4.48-alt3 p9+238817.100.1.1 1570449122 installed <13>Dec 15 08:38:38 rpmi: libcurl-7.65.0-alt1 p9+229801.100.1.1 1558513358 installed <13>Dec 15 08:38:38 rpmi: libnetcdf11-seq-4.4.1.1-alt3 1504883437 installed <13>Dec 15 08:38:38 rpmi: libpq5-12.1-alt1 p9+240724.100.2.1 1574192559 installed <13>Dec 15 08:38:39 rpmi: libgdal-2.2.3-alt3.1 sisyphus+227893.1400.10.1 1556208797 installed <13>Dec 15 08:38:39 rpmi: gdal-2.2.3-alt3.1 sisyphus+227893.1400.10.1 1556208797 installed <13>Dec 15 08:38:39 rpmi: python-module-gdal-2.2.3-alt3.1 sisyphus+227893.1400.10.1 1556208797 installed <13>Dec 15 08:38:39 rpmi: python3-module-gdal-2.2.3-alt3.1 sisyphus+227893.1400.10.1 1556208797 installed <13>Dec 15 08:38:39 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 15 08:38:39 rpmi: python-module-Pillow-5.2.0-alt1 sisyphus+225625.35600.91.1 1555323483 installed <13>Dec 15 08:38:39 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-greenwich-0.4.1-alt1.git20150811.1.1.1.nosrc.rpm <13>Dec 15 08:38:43 rpmi: python3-dev-3.7.4-alt2 p9+239459.100.1.1 1571444790 installed <13>Dec 15 08:38:43 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed Installing python-module-greenwich-0.4.1-alt1.git20150811.1.1.1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.59758 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-greenwich-0.4.1 + echo 'Source #0 (python-module-greenwich-0.4.1.tar):' Source #0 (python-module-greenwich-0.4.1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-greenwich-0.4.1.tar + cd python-module-greenwich-0.4.1 + /bin/chmod -c -Rf u+rwX,go-w . + cp -fR . ../python3 + find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ../python3/tests/test_srs.py RefactoringTool: Refactored ../python3/tests/test_raster.py RefactoringTool: Refactored ../python3/tests/test_io.py RefactoringTool: No changes to ../python3/tests/test_geometry.py RefactoringTool: No changes to ../python3/setup.py RefactoringTool: No changes to ../python3/greenwich/srs.py RefactoringTool: Refactored ../python3/greenwich/raster.py --- ../python3/tests/test_srs.py (original) +++ ../python3/tests/test_srs.py (refactored) @@ -9,7 +9,7 @@ sref = SpatialReference(osr.SRS_WKT_WGS84) self.assertEqual(sref.wkt, osr.SRS_WKT_WGS84) self.assertEqual(str(sref), osr.SRS_WKT_WGS84) - wkt = unicode(osr.SRS_WKT_WGS84) + wkt = str(osr.SRS_WKT_WGS84) self.assertEqual(str(SpatialReference(wkt)), wkt) def test_epsg(self): --- ../python3/tests/test_raster.py (original) +++ ../python3/tests/test_raster.py (refactored) @@ -155,7 +155,7 @@ self.assertEqual(r.shape, shape) self.assertEqual(r.ReadRaster(), pixdat) # Create from bytes. - pixdat = bytes(bytearray(range(10))) + pixdat = bytes(bytearray(list(range(10)))) r2 = self.ds.new((2, 5)) r2.frombytes(pixdat) self.assertEqual(r2.ReadRaster(), pixdat) @@ -170,7 +170,7 @@ b2 = bytes(np.random.random((5, 5, 3)).data) rf2 = rfloat.new((5, 5, 3)) rf2.frombytes(b2) - self.assertEqual(*map(self.hexdigest, (rf2.ReadRaster(), b2))) + self.assertEqual(*list(map(self.hexdigest, (rf2.ReadRaster(), b2)))) rfloat.close() rf2.close() @@ -190,7 +190,7 @@ # Clean up associated files like .aux.xml, etc. paths = glob.glob(fp.name.replace(ext, '*')) try: - removed = map(os.unlink, paths) + removed = list(map(os.unlink, paths)) except OSError: pass @@ -306,7 +306,7 @@ self.assertIsInstance(ds_copy, Raster) self.assertEqual(ds_copy.driver.ext, 'png') # Make sure we get the same number of raster bands back. - self.assertEqual(*map(len, (self.ds, ds_copy))) + self.assertEqual(*list(map(len, (self.ds, ds_copy)))) ds_copy.close() # This driver should not support creation or copying. self.assertRaises(IOError, ImageDriver('SDTS').copy, self.ds, imgio) @@ -401,4 +401,4 @@ self.assertEqual(self.imgdriver.ext, 'img') hdriver = gdal.GetDriverByName('HFA') self.assertEqual(ImageDriver(hdriver)._driver, hdriver) - self.assertIsInstance(ImageDriver(u'PNG'), ImageDriver) + self.assertIsInstance(ImageDriver('PNG'), ImageDriver) --- ../python3/tests/test_io.py (original) +++ ../python3/tests/test_io.py (refactored) @@ -63,7 +63,7 @@ memio.write(data) memio.seek(0) self.assertEqual(memio.read(), data) - data = bytearray(range(10)) + data = bytearray(list(range(10))) memio.seek(0) memio.write(data) memio.seek(0) --- ../python3/greenwich/raster.py (original) +++ ../python3/greenwich/raster.py (refactored) @@ -29,14 +29,14 @@ """ ext = (os.path.splitext(path)[1][1:] or path).lower() drivers = drivers or ImageDriver.registry if ext else {} - for name, meta in drivers.items(): + for name, meta in list(drivers.items()): if ext == meta.get('DMD_EXTENSION', '').lower(): return ImageDriver(name) return None def driverdict_tolist(d): """Returns a GDAL formatted options list of strings from a dict.""" - return ['%s=%s' % (k, v) for k, v in d.items()] + return ['%s=%s' % (k, v) for k, v in list(d.items())] def geom_to_array(geom, size, affine): """Converts an OGR polygon to a 2D NumPy array. @@ -66,7 +66,7 @@ Arguments: arr -- numpy ndarray """ - return zip(*np.unique(arr, return_counts=True)) + return list(zip(*np.unique(arr, return_counts=True))) def transform_mask(geom, to_sref): """Returns a transformed mask as a Geometry. @@ -181,7 +181,7 @@ driver -- str gdal.Driver name like 'GTiff' or gdal.Driver instance kwargs -- GDAL raster creation options """ - if isinstance(driver, basestring): + if isinstance(driver, str): driver = gdal.GetDriverByName(str(driver)) or driver if not isinstance(driver, gdal.Driver): raise TypeError('No GDAL driver for %s' % driver) @@ -235,RefactoringTool: Refactored ../python3/greenwich/io.py RefactoringTool: Refactored ../python3/greenwich/geometry.py RefactoringTool: No changes to ../python3/greenwich/base.py RefactoringTool: Files that were modified: RefactoringTool: ../python3/tests/test_srs.py RefactoringTool: ../python3/tests/test_raster.py RefactoringTool: ../python3/tests/test_io.py RefactoringTool: ../python3/tests/test_geometry.py RefactoringTool: ../python3/setup.py RefactoringTool: ../python3/greenwich/srs.py RefactoringTool: ../python3/greenwich/raster.py RefactoringTool: ../python3/greenwich/io.py RefactoringTool: ../python3/greenwich/geometry.py RefactoringTool: ../python3/greenwich/base.py 7 +235,7 @@ @classmethod def _filter_by(cls, key): - return {k: v for k, v in cls.registry.items() if key in v} + return {k: v for k, v in list(cls.registry.items()) if key in v} @classmethod def filter_writable(cls): @@ -345,7 +345,7 @@ self.ds = dataset self.name = self.ds.GetDescription() # Bands are not zero based, available bands are a 1-based list of ints. - self.bandlist = range(1, len(self) + 1) + self.bandlist = list(range(1, len(self) + 1)) # Initialize attrs without calling their setters. self._affine = AffineTransform(*dataset.GetGeoTransform()) self._sref = SpatialReference(dataset.GetProjection()) @@ -593,9 +593,9 @@ driver -- GDAL driver name as string or ImageDriver """ path = getattr(to, 'name', to) - if not driver and isinstance(path, basestring): + if not driver and isinstance(path, str): driver = driver_for_path(path, self.driver.filter_copyable()) - elif isinstance(driver, basestring): + elif isinstance(driver, str): driver = ImageDriver(driver) if driver is None or not driver.copyable: raise ValueError('Copy supporting driver not found for %s' % path) --- ../python3/greenwich/io.py (original) +++ ../python3/greenwich/io.py (refactored) @@ -1,7 +1,7 @@ """GDAL IO handling""" -from __future__ import absolute_import + import os -from urlparse import urlparse +from urllib.parse import urlparse import uuid from osgeo import gdal --- ../python3/greenwich/geometry.py (original) +++ ../python3/greenwich/geometry.py (refactored) @@ -24,7 +24,7 @@ if len(args) == 1: args = args[0] try: - extent = map(float, args) + extent = list(map(float, args)) except (TypeError, ValueError) as exc: exc.args = ('Cannot create Envelope from "%s"' % args,) raise @@ -73,8 +73,8 @@ def clip(self, envp): mid = len(self) / 2 - self.ll = map(max, self.ll, envp[:mid]) - self.ur = map(min, self.ur, envp[mid:]) + self.ll = list(map(max, self.ll, envp[:mid])) + self.ur = list(map(min, self.ur, envp[mid:])) def expand(self, envp): """Expands this envelope by the given Envelope or tuple. @@ -85,14 +85,14 @@ if len(envp) == 2: envp += envp mid = len(self) / 2 - self.ll = map(min, self.ll, envp[:mid]) - self.ur = map(max, self.ur, envp[mid:]) + self.ll = list(map(min, self.ll, envp[:mid])) + self.ur = list(map(max, self.ur, envp[mid:])) @staticmethod def from_geom(geom): """Returns an Envelope from an OGR Geometry.""" extent = geom.GetEnvelope() - return Envelope(map(extent.__getitem__, (0, 2, 1, 3))) + return Envelope(list(map(extent.__getitem__, (0, 2, 1, 3)))) @property def height(self): + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.12005 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-greenwich-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/greenwich copying greenwich/srs.py -> build/lib/greenwich copying greenwich/raster.py -> build/lib/greenwich copying greenwich/io.py -> build/lib/greenwich copying greenwich/geometry.py -> build/lib/greenwich copying greenwich/base.py -> build/lib/greenwich copying greenwich/__init__.py -> build/lib/greenwich + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-greenwich-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib creating build/lib/greenwich copying greenwich/srs.py -> build/lib/greenwich copying greenwich/raster.py -> build/lib/greenwich copying greenwich/io.py -> build/lib/greenwich copying greenwich/geometry.py -> build/lib/greenwich copying greenwich/base.py -> build/lib/greenwich copying greenwich/__init__.py -> build/lib/greenwich + popd ~/RPM/BUILD/python-module-greenwich-0.4.1 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.39706 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-greenwich-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-greenwich-buildroot + cd python-module-greenwich-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-greenwich-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-greenwich-buildroot creating /usr/src/tmp/python-module-greenwich-buildroot/usr creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/__init__.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/base.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/geometry.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/io.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/raster.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich copying build/lib/greenwich/srs.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/base.py to base.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/geometry.py to geometry.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/io.py to io.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/raster.py to raster.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/srs.py to srs.pyc running install_egg_info running egg_info creating greenwich.egg-info writing requirements to greenwich.egg-info/requires.txt writing greenwich.egg-info/PKG-INFO writing top-level names to greenwich.egg-info/top_level.txt writing dependency_links to greenwich.egg-info/dependency_links.txt writing manifest file 'greenwich.egg-info/SOURCES.txt' reading manifest file 'greenwich.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'greenwich.egg-info/SOURCES.txt' Copying greenwich.egg-info to /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich-0.4.1-py2.7.egg-info running install_scripts + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-greenwich-0.4.1 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-greenwich-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/__init__.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/base.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/geometry.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/io.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/raster.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich copying build/lib/greenwich/srs.py -> /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/base.py to base.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/geometry.py to geometry.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/io.py to io.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/raster.py to raster.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/srs.py to srs.cpython-37.pyc running install_egg_info running egg_info creating greenwich.egg-info writing greenwich.egg-info/PKG-INFO writing dependency_links to greenwich.egg-info/dependency_links.txt writing requirements to greenwich.egg-info/requires.txt writing top-level names to greenwich.egg-info/top_level.txt writing manifest file 'greenwich.egg-info/SOURCES.txt' reading manifest file 'greenwich.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'greenwich.egg-info/SOURCES.txt' Copying greenwich.egg-info to /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich-0.4.1-py3.7.egg-info running install_scripts + popd ~/RPM/BUILD/python-module-greenwich-0.4.1 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-greenwich-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python-module-greenwich-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-greenwich-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-greenwich-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-greenwich-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-greenwich-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Bytecompiling python modules in /usr/src/tmp/python-module-greenwich-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/__init__.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/base.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/geometry.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/io.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/raster.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/srs.pyc compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/__init__.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/base.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/geometry.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/io.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/raster.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/srs.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-greenwich-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/__init__.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/base.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/geometry.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/io.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/raster.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python2.7/site-packages/greenwich/srs.py Bytecompiling python3 modules in /usr/src/tmp/python-module-greenwich-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-37.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-37.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-37.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-37.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/srs.cpython-37.pyc compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__init__.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/base.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/geometry.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/io.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/raster.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/srs.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-greenwich-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__init__.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/base.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/geometry.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/io.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/raster.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/srs.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-greenwich-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__init__.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/base.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/geometry.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/io.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/raster.py compile /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/srs.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/greenwich/__pycache__/srs.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/srs.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/greenwich/srs.pyo' => './usr/lib/python2.7/site-packages/greenwich/srs.pyc' './usr/lib/python2.7/site-packages/greenwich/raster.pyo' => './usr/lib/python2.7/site-packages/greenwich/raster.pyc' './usr/lib/python2.7/site-packages/greenwich/io.pyo' => './usr/lib/python2.7/site-packages/greenwich/io.pyc' './usr/lib/python2.7/site-packages/greenwich/geometry.pyo' => './usr/lib/python2.7/site-packages/greenwich/geometry.pyc' './usr/lib/python2.7/site-packages/greenwich/base.pyo' => './usr/lib/python2.7/site-packages/greenwich/base.pyc' './usr/lib/python2.7/site-packages/greenwich/__init__.pyo' => './usr/lib/python2.7/site-packages/greenwich/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.77653 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-greenwich-0.4.1 + python setup.py test -v running test running egg_info deleting greenwich.egg-info/requires.txt writing greenwich.egg-info/PKG-INFO writing top-level names to greenwich.egg-info/top_level.txt writing dependency_links to greenwich.egg-info/dependency_links.txt reading manifest file 'greenwich.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'greenwich.egg-info/SOURCES.txt' running build_ext test_epsg (tests.test_srs.SpatialReferenceTestCase) ... ok test_epsg_strings (tests.test_srs.SpatialReferenceTestCase) ... ok test_equality (tests.test_srs.SpatialReferenceTestCase) ... ok test_named_crs (tests.test_srs.SpatialReferenceTestCase) ... ok test_proj4 (tests.test_srs.SpatialReferenceTestCase) ... ok test_wkt (tests.test_srs.SpatialReferenceTestCase) ... ok test_invalid_tile (tests.test_srs.TransformTileTestCase) ... ok test_transform (tests.test_srs.TransformTileTestCase) ... ok test_transform_to_projected (tests.test_raster.AffineTransformTestCase) ... ok test_copy (tests.test_raster.ImageDriverTestCase) ... ok test_copy_path (tests.test_raster.ImageDriverTestCase) ... ok test_driver_for_path (tests.test_raster.ImageDriverTestCase) ... ok test_filter_writable (tests.test_raster.ImageDriverTestCase) ... ok test_init (tests.test_raster.ImageDriverTestCase) ... ok test_options (tests.test_raster.ImageDriverTestCase) ... ok test_raster (tests.test_raster.ImageDriverTestCase) ... ok test_raster_compression (tests.test_raster.ImageDriverTestCase) ... ok test_raster_fromfile (tests.test_raster.ImageDriverTestCase) ... ok test_raster_netcdf (tests.test_raster.ImageDriverTestCase) ... ok test_raster_size_args (tests.test_raster.ImageDriverTestCase) ... ok test_affine (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_array (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_clip (tests.test_raster.RasterTestCase) Test clipping a raster with a geometry. ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR test_close (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_count_unique (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_crop (tests.test_raster.RasterTestCase) Test image cropping with OGR Geometries. ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_envelope (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_frombytes (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_geom_to_array (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. FAIL test_init (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR 4: zzz: No such file or directory ERROR 5: /usr/src/tmp/tmpmX36Mg.tif: GDALDataset::GetRasterBand(4) - Illegal band # ok test_new (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_nodata (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_open (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_open_bytesio (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR 4: `/vsimem/eae46b8b-542f-4ef2-9926-a0edbaf9eb8f' not recognized as a supported file format. ok test_resample (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_save (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_save_memio (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_slice (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ok test_warp (tests.test_raster.RasterTestCase) ... ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR 6: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. ERROR test_close (tests.test_io.MemFileIOTestCase) ... ok test_read (tests.test_io.MemFileIOTestCase) ... ok test_readinto (tests.test_io.MemFileIOTestCase) ... ok test_seek (tests.test_io.MemFileIOTestCase) ... ok test_truncate (tests.test_io.MemFileIOTestCase) ... ok test_write (tests.test_io.MemFileIOTestCase) ... ok test_close (tests.test_io.VSIFileTestCase) ... ok test_read_missing (tests.test_io.VSIFileTestCase) ... ok test_vsiprefix (tests.test_io.VSIFileTestCase) ... ok test_write_error (tests.test_io.VSIFileTestCase) ... ok test_add (tests.test_geometry.EnvelopeTestCase) ... ok test_contains (tests.test_geometry.EnvelopeTestCase) ... ok test_eq (tests.test_geometry.EnvelopeTestCase) ... ok test_expand (tests.test_geometry.EnvelopeTestCase) ... ok test_init (tests.test_geometry.EnvelopeTestCase) ... ok test_intersects (tests.test_geometry.EnvelopeTestCase) ... ok test_invalid (tests.test_geometry.EnvelopeTestCase) ... ok test_subtract (tests.test_geometry.EnvelopeTestCase) ... ok test_geo_interface (tests.test_geometry.GeometryTestCase) ... ok test_init (tests.test_geometry.GeometryTestCase) ... ok test_init_spatialref (tests.test_geometry.GeometryTestCase) ... ok ====================================================================== ERROR: test_clip (tests.test_raster.RasterTestCase) Test clipping a raster with a geometry. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/tests/test_raster.py", line 131, in test_clip rast = multiband.clip(self.geom) File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/greenwich/raster.py", line 446, in clip return self._mask(geom) File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/greenwich/raster.py", line 523, in _mask readargs = self.get_offset(env) File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/greenwich/raster.py", line 485, in get_offset raise ValueError('Envelope does not intersect with this extent') ValueError: Envelope does not intersect with this extent ====================================================================== ERROR: test_warp (tests.test_raster.RasterTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/tests/test_raster.py", line 240, in test_warp r = self.ds.warp(epsg_id) File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/greenwich/raster.py", line 652, in warp warpsize = (vrt.RasterXSize, vrt.RasterYSize, len(self)) AttributeError: 'NoneType' object has no attribute 'RasterXSize' ====================================================================== FAIL: test_geom_to_array (tests.test_raster.RasterTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-greenwich-0.4.1/tests/test_raster.py", line 231, in test_geom_to_array self.assertEqual(arr.min(), 0) AssertionError: 1 != 0 ---------------------------------------------------------------------- Ran 60 tests in 0.245s FAILED (failures=1, errors=2) Test failed: error: Test failed: error: Bad exit status from /usr/src/tmp/rpm-tmp.77653 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.77653 (%check) Command exited with non-zero status 1 6.04user 0.41system 0:08.69elapsed 74%CPU (0avgtext+0avgdata 70492maxresident)k 0inputs+0outputs (0major+145983minor)pagefaults 0swaps hsh-rebuild: rebuild of `python-module-greenwich-0.4.1-alt1.git20150811.1.1.1.src.rpm' failed. Command exited with non-zero status 1 16.52user 3.43system 0:27.16elapsed 73%CPU (0avgtext+0avgdata 114772maxresident)k 22040inputs+0outputs (0major+667496minor)pagefaults 0swaps