<86>Mar 22 06:47:04 userdel[110143]: delete user 'rooter' <86>Mar 22 06:47:04 userdel[110143]: removed group 'rooter' owned by 'rooter' <86>Mar 22 06:47:04 userdel[110143]: removed shadow group 'rooter' owned by 'rooter' <86>Mar 22 06:47:04 groupadd[110170]: group added to /etc/group: name=rooter, GID=675 <86>Mar 22 06:47:04 groupadd[110170]: group added to /etc/gshadow: name=rooter <86>Mar 22 06:47:04 groupadd[110170]: new group: name=rooter, GID=675 <86>Mar 22 06:47:04 useradd[110208]: new user: name=rooter, UID=675, GID=675, home=/root, shell=/bin/bash <86>Mar 22 06:47:04 userdel[110237]: delete user 'builder' <86>Mar 22 06:47:04 userdel[110237]: removed group 'builder' owned by 'builder' <86>Mar 22 06:47:04 userdel[110237]: removed shadow group 'builder' owned by 'builder' <86>Mar 22 06:47:04 groupadd[110259]: group added to /etc/group: name=builder, GID=676 <86>Mar 22 06:47:04 groupadd[110259]: group added to /etc/gshadow: name=builder <86>Mar 22 06:47:04 groupadd[110259]: new group: name=builder, GID=676 <86>Mar 22 06:47:04 useradd[110282]: new user: name=builder, UID=676, GID=676, home=/usr/src, shell=/bin/bash <13>Mar 22 06:47:07 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Mar 22 06:47:07 rpmi: libexpat-2.2.4-alt1 1503305345 installed <13>Mar 22 06:47:07 rpmi: libtasn1-4.13-alt2 1521133850 installed <13>Mar 22 06:47:07 rpmi: libp11-kit-0.23.9-alt5 1525798298 installed <13>Mar 22 06:47:07 rpmi: rpm-macros-alternatives-0.5.0-alt1 sisyphus+221902.300.4.1 1550587121 installed <13>Mar 22 06:47:07 rpmi: alternatives-0.5.0-alt1 sisyphus+221902.300.4.1 1550587121 installed <13>Mar 22 06:47:07 rpmi: ca-certificates-2019.02.01-alt1 sisyphus+220384.200.1.1 1549032756 installed <13>Mar 22 06:47:07 rpmi: ca-trust-0.1.1-alt2 1515595785 installed <13>Mar 22 06:47:07 rpmi: p11-kit-trust-0.23.9-alt5 1525798298 installed <13>Mar 22 06:47:07 rpmi: libcrypto1.1-1.1.1b-alt1 sisyphus+225327.200.2.1 1553099317 installed <13>Mar 22 06:47:07 rpmi: libssl1.1-1.1.1b-alt1 sisyphus+225327.200.2.1 1553099317 installed <13>Mar 22 06:47:07 rpmi: python3-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Mar 22 06:47:08 rpmi: python3-base-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Mar 22 06:47:08 rpmi: libpython3-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Mar 22 06:47:08 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Mar 22 06:47:08 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Mar 22 06:47:11 rpmi: libjpeg-2:1.5.1-alt1 1498218318 installed <13>Mar 22 06:47:11 rpmi: libopenblas-0.2.20-alt1 1527005646 installed <13>Mar 22 06:47:11 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Mar 22 06:47:11 rpmi: python3-module-pkg_resources-1:40.8.0-alt1 sisyphus+221229.100.2.1 1550559950 installed <13>Mar 22 06:47:11 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633314 installed <13>Mar 22 06:47:11 rpmi: libhdf5-8-seq-1.8.13-alt1.qa4 sisyphus+222602.100.1.1 1550929955 installed <13>Mar 22 06:47:11 rpmi: libidn2-2.1.1-alt1 sisyphus+221274.100.1.2 1549951289 installed <13>Mar 22 06:47:11 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus.213223.100 1537286725 installed <13>Mar 22 06:47:11 rpmi: python3-module-more-itertools-5.0.0-alt1 sisyphus.218699.100 1545980609 installed <13>Mar 22 06:47:11 rpmi: libjasper-2.0.14-alt1 1530105217 installed <13>Mar 22 06:47:11 rpmi: libtiff5-4.0.3-alt1 1348347501 installed <13>Mar 22 06:47:11 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+225153.100.1.1 1552826442 installed <13>Mar 22 06:47:11 rpmi: python3-module-pluggy-0.9.0-alt1 sisyphus+225174.100.1.1 1552829122 installed <13>Mar 22 06:47:11 rpmi: python3-module-pycparser-2.19-alt1 sisyphus.216095.100 1541345023 installed <13>Mar 22 06:47:11 rpmi: python3-module-attrs-19.1.0-alt1 sisyphus+224963.100.1.1 1552501935 installed <13>Mar 22 06:47:11 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+221237.100.1.2 1549921064 installed <13>Mar 22 06:47:11 rpmi: python3-module-apipkg-1.5-alt1 1531926938 installed <13>Mar 22 06:47:11 rpmi: python3-module-py-1.8.0-alt2 sisyphus+225173.100.1.1 1552828593 installed <13>Mar 22 06:47:11 rpmi: python3-module-pytest-3.10.1-alt4 sisyphus+220988.200.2.1 1549800021 installed <13>Mar 22 06:47:11 rpmi: python-module-iniconfig-1.0.0-alt1 sisyphus+225153.100.1.1 1552826442 installed <13>Mar 22 06:47:11 rpmi: python-module-apipkg-1.5-alt1 1531926894 installed <13>Mar 22 06:47:11 rpmi: libwebp7-1.0.2-alt1 sisyphus+219651.100.1.2 1548057725 installed <13>Mar 22 06:47:11 rpmi: libopenjpeg2.0-2.3.0-alt2 sisyphus.216213.100 1541598437 installed <13>Mar 22 06:47:11 rpmi: libnumpy-py3-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:11 rpmi: libnumpy-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:11 rpmi: liblcms2-2.9-alt1 1516411892 installed <13>Mar 22 06:47:11 rpmi: libxblas-1.0.248-alt1.1 1496143682 installed <13>Mar 22 06:47:12 rpmi: libimagequant-2.12.2-alt1_2 sisyphus+222070.100.1.1 1550597340 installed <13>Mar 22 06:47:12 rpmi: libgraphite2-1.3.13-alt1 sisyphus.218545.100 1545686511 installed <13>Mar 22 06:47:12 rpmi: libharfbuzz-2.2.0-alt1 sisyphus.218134.500 1545261518 installed <13>Mar 22 06:47:12 rpmi: libfreetype-2.10.0-alt1 sisyphus+225205.100.1.2 1552930259 installed <13>Mar 22 06:47:12 rpmi: libquadmath0-8.3.1-alt2 sisyphus+224979.100.1.1 1552540396 installed <13>Mar 22 06:47:12 rpmi: libgfortran5-8.3.1-alt2 sisyphus+224979.100.1.1 1552540396 installed <13>Mar 22 06:47:12 rpmi: liblapack-1:3.8.0-alt3 sisyphus+221521.100.1.1 1550134903 installed <13>Mar 22 06:47:12 rpmi: python3-module-numpy-testing-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:12 rpmi: python3-module-numpy-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:12 rpmi: libsqlite3-3.26.0-alt2 sisyphus+220766.100.5.1 1549611685 installed <13>Mar 22 06:47:12 rpmi: libltdl7-2.4.2-alt8 sisyphus+220900.100.1.1 1549488295 installed <13>Mar 22 06:47:12 rpmi: libunixODBC2-2.3.4-alt2.1 sisyphus+220885.100.1.1 1549488931 installed <13>Mar 22 06:47:12 rpmi: libmysqlclient21-8.0.15-alt1 sisyphus+223624.140.3.1 1551794946 installed <13>Mar 22 06:47:12 rpmi: libgif-4.1.6-alt3 1299634261 installed <13>Mar 22 06:47:12 rpmi: libgeos-3.7.1-alt1 sisyphus+222721.100.1.1 1551046279 installed <13>Mar 22 06:47:12 rpmi: publicsuffix-list-dafsa-20181106-alt1 sisyphus.216228.100 1541611754 installed <13>Mar 22 06:47:12 rpmi: libpsl-0.20.2-alt2 sisyphus+222635.100.1.1 1550951841 installed <13>Mar 22 06:47:12 rpmi: libnghttp2-1.34.0-alt1 sisyphus+222625.100.1.1 1550947259 installed <13>Mar 22 06:47:12 rpmi: libbrotlicommon-1.0.7-alt1 sisyphus.215491.100 1540428597 installed <13>Mar 22 06:47:12 rpmi: libbrotlidec-1.0.7-alt1 sisyphus.215491.100 1540428597 installed <13>Mar 22 06:47:12 rpmi: libcfitsio4-3.380-alt2 1458566078 installed <13>Mar 22 06:47:12 rpmi: libproj-5.2.0-alt1 sisyphus+221643.100.9.2 1550496681 installed <13>Mar 22 06:47:12 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Mar 22 06:47:13 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Mar 22 06:47:13 rpmi: python-modules-curses-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: libverto-0.3.0-alt1_7 sisyphus+223221.100.1.1 1551348953 installed <13>Mar 22 06:47:13 rpmi: libkeyutils-1.6-alt2 sisyphus.217337.100 1544003161 installed <13>Mar 22 06:47:13 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Mar 22 06:47:13 groupadd[9927]: group added to /etc/group: name=_keytab, GID=499 <86>Mar 22 06:47:13 groupadd[9927]: group added to /etc/gshadow: name=_keytab <86>Mar 22 06:47:13 groupadd[9927]: new group: name=_keytab, GID=499 <13>Mar 22 06:47:13 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746516 installed <13>Mar 22 06:47:13 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Mar 22 06:47:13 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Mar 22 06:47:13 rpmi: python-modules-email-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-unittest-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-nis-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-encodings-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-compiler-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-ctypes-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Mar 22 06:47:13 rpmi: python-modules-multiprocessing-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-logging-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-module-pkg_resources-1:40.8.0-alt1 sisyphus+221229.100.2.1 1550559950 installed <13>Mar 22 06:47:13 rpmi: python-module-olefile-0.45.1-alt1.qa1 sisyphus.214886.100 1539677196 installed <13>Mar 22 06:47:13 rpmi: python-tools-2to3-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-module-more-itertools-5.0.0-alt1 sisyphus.218699.100 1545980609 installed <13>Mar 22 06:47:13 rpmi: python-module-py-1.8.0-alt2 sisyphus+225173.100.1.1 1552828593 installed <13>Mar 22 06:47:13 rpmi: python-module-pluggy-0.9.0-alt1 sisyphus+225174.100.1.1 1552829122 installed <13>Mar 22 06:47:13 rpmi: python-modules-xml-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-hotshot-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-modules-bsddb-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-strict-2.7.15-alt1 sisyphus.217364.100 1544022396 installed <13>Mar 22 06:47:13 rpmi: python-modules-distutils-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-module-pycparser-2.19-alt1 sisyphus.216095.100 1541345023 installed <13>Mar 22 06:47:13 rpmi: python-module-cffi-1.10.0-alt1.1 1525117736 installed <13>Mar 22 06:47:13 rpmi: python-module-attrs-19.1.0-alt1 sisyphus+224963.100.1.1 1552501935 installed <13>Mar 22 06:47:13 rpmi: python-module-atomicwrites-1.3.0-alt1 sisyphus+221237.100.1.2 1549921064 installed <13>Mar 22 06:47:13 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+220258.100.1.1 1548882900 installed <13>Mar 22 06:47:13 rpmi: python-module-scandir-1.10.0-alt1 sisyphus+225192.100.1.2 1552968870 installed <13>Mar 22 06:47:13 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus.218098.100 1545218863 installed <13>Mar 22 06:47:13 rpmi: python-modules-json-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <13>Mar 22 06:47:13 rpmi: python-module-pytest-3.10.1-alt4 sisyphus+220988.200.2.1 1549800021 installed <13>Mar 22 06:47:13 rpmi: python-module-numpy-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:13 rpmi: python-module-numpy-testing-1:1.15.4-alt1 sisyphus+224328.100.1.2 1552246396 installed <13>Mar 22 06:47:13 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Mar 22 06:47:13 rpmi: python-dev-2.7.15-alt1 sisyphus.217364.100 1544022423 installed <86>Mar 22 06:47:14 groupadd[11662]: group added to /etc/group: name=sasl, GID=498 <86>Mar 22 06:47:14 groupadd[11662]: group added to /etc/gshadow: name=sasl <86>Mar 22 06:47:14 groupadd[11662]: new group: name=sasl, GID=498 <13>Mar 22 06:47:14 rpmi: libsasl2-3-2.1.27-alt1 sisyphus+223971.100.1.1 1551928460 installed <13>Mar 22 06:47:14 rpmi: libldap-2.4.46-alt1.1 sisyphus+219907.4400.1.1 1548349979 installed <13>Mar 22 06:47:14 rpmi: libcurl-7.64.0-alt2 sisyphus+224983.100.1.2 1552555781 installed <13>Mar 22 06:47:14 rpmi: libnetcdf11-seq-4.4.1.1-alt3 1504883437 installed <13>Mar 22 06:47:14 rpmi: libpq5.11-11.2-alt1 sisyphus+221512.600.1.1 1550137186 installed <13>Mar 22 06:47:14 rpmi: libgdal-2.2.3-alt3 sisyphus+224013.100.1.2 1551977689 installed <13>Mar 22 06:47:14 rpmi: gdal-2.2.3-alt3 sisyphus+224013.100.1.2 1551977689 installed <13>Mar 22 06:47:14 rpmi: python-module-gdal-2.2.3-alt3 sisyphus+224013.100.1.2 1551977689 installed <13>Mar 22 06:47:14 rpmi: python3-module-gdal-2.2.3-alt3 sisyphus+224013.100.1.2 1551977689 installed <13>Mar 22 06:47:14 rpmi: python-module-setuptools-1:40.8.0-alt1 sisyphus+221229.100.2.1 1550559950 installed <13>Mar 22 06:47:14 rpmi: python-module-Pillow-5.2.0-alt1 1530558037 installed <13>Mar 22 06:47:14 rpmi: python3-module-cffi-1.10.0-alt1.1 1525117736 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>Mar 22 06:47:17 rpmi: python3-dev-3.6.8-alt1 sisyphus+220164.200.3.1 1548842636 installed <13>Mar 22 06:47:17 rpmi: python3-module-setuptools-1:40.8.0-alt1 sisyphus+221229.100.2.1 1550559950 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.46715 + 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.64635 + 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.83021 + 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-36.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/base.py to base.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/geometry.py to geometry.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/io.py to io.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/raster.py to raster.cpython-36.pyc byte-compiling /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/srs.py to srs.cpython-36.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.6.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-36.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-36.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-36.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-36.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-36.pyc unlink /usr/src/tmp/python-module-greenwich-buildroot/usr/lib/python3/site-packages/greenwich/__pycache__/srs.cpython-36.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-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/srs.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/raster.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/io.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/geometry.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/base.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-36.opt-1.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-36.pyc' './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-36.opt-2.pyc' => './usr/lib/python3/site-packages/greenwich/__pycache__/__init__.cpython-36.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.80496 + 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/tmphlHupY.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/9111f9f2-183a-4ebe-9baf-322c0d052101' 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.211s FAILED (failures=1, errors=2) Test failed: error: Test failed: error: Bad exit status from /usr/src/tmp/rpm-tmp.80496 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.80496 (%check) Command exited with non-zero status 1 8.54user 0.44system 0:09.15elapsed 98%CPU (0avgtext+0avgdata 71000maxresident)k 0inputs+0outputs (0major+158761minor)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 23.39user 3.86system 0:29.39elapsed 92%CPU (0avgtext+0avgdata 119744maxresident)k 17240inputs+0outputs (0major+806279minor)pagefaults 0swaps