<86>Dec 20 10:21:31 userdel[4041564]: delete user 'rooter' <86>Dec 20 10:21:31 userdel[4041564]: removed group 'rooter' owned by 'rooter' <86>Dec 20 10:21:31 userdel[4041564]: removed shadow group 'rooter' owned by 'rooter' <86>Dec 20 10:21:31 groupadd[4041581]: group added to /etc/group: name=rooter, GID=618 <86>Dec 20 10:21:31 groupadd[4041581]: group added to /etc/gshadow: name=rooter <86>Dec 20 10:21:31 groupadd[4041581]: new group: name=rooter, GID=618 <86>Dec 20 10:21:31 useradd[4041593]: new user: name=rooter, UID=618, GID=618, home=/root, shell=/bin/bash <86>Dec 20 10:21:31 userdel[4041605]: delete user 'builder' <86>Dec 20 10:21:31 userdel[4041605]: removed group 'builder' owned by 'builder' <86>Dec 20 10:21:31 userdel[4041605]: removed shadow group 'builder' owned by 'builder' <86>Dec 20 10:21:31 groupadd[4041614]: group added to /etc/group: name=builder, GID=619 <86>Dec 20 10:21:31 groupadd[4041614]: group added to /etc/gshadow: name=builder <86>Dec 20 10:21:31 groupadd[4041614]: new group: name=builder, GID=619 <86>Dec 20 10:21:31 useradd[4041619]: new user: name=builder, UID=619, GID=619, home=/usr/src, shell=/bin/bash <13>Dec 20 10:21:35 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Dec 20 10:21:35 rpmi: libexpat-2.2.10-alt1 p9+261554.100.1.1 1605103337 installed <13>Dec 20 10:21:35 rpmi: libp11-kit-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Dec 20 10:21:35 rpmi: libtasn1-4.14-alt1 p9+235792.100.2.1 1565425233 installed <13>Dec 20 10:21:35 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 20 10:21:35 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Dec 20 10:21:35 rpmi: ca-certificates-2020.06.29-alt1 p9+258899.100.3.1 1601998604 installed <13>Dec 20 10:21:35 rpmi: ca-trust-0.1.2-alt1 p9+233349.100.1.1 1561655062 installed <13>Dec 20 10:21:35 rpmi: p11-kit-trust-0.23.15-alt2 p9+254920.2400.19.1 1601385903 installed <13>Dec 20 10:21:35 rpmi: libcrypto1.1-1.1.1i-alt1 p9+263105.100.1.1 1607446292 installed <13>Dec 20 10:21:35 rpmi: libssl1.1-1.1.1i-alt1 p9+263105.100.1.1 1607446292 installed <13>Dec 20 10:21:35 rpmi: python3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:21:36 rpmi: libpython3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:21:37 rpmi: python3-base-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:21:37 rpmi: tests-for-installed-python3-pkgs-0.1.13.1-alt2 1535450458 installed <13>Dec 20 10:21:37 rpmi: rpm-build-python3-0.1.13.1-alt2 1535450458 installed <13>Dec 20 10:21:37 rpmi: rpm-macros-sphinx-1:1.6.5-alt8 p9+250806.100.2.1 1588178467 installed <13>Dec 20 10:21:46 rpmi: python3-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 20 10:21:46 rpmi: python3-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Dec 20 10:21:46 rpmi: python3-module-ipython_genutils-0.1.0-alt1.1.2 sisyphus+227495.700.1.3 1555842873 installed <13>Dec 20 10:21:46 rpmi: libpng16-1.6.36-alt1 sisyphus+219478.100.1.1 1547633314 installed <13>Dec 20 10:21:46 rpmi: python3-module-click-6.7-alt1.1.1 sisyphus+228018.100.1.1 1556023031 installed <13>Dec 20 10:21:46 rpmi: libsqlite3-3.33.0-alt1 p9+258834.40.2.1 1601365057 installed <13>Dec 20 10:21:46 rpmi: python3-module-zope.interface-4.6.0-alt1 sisyphus+227562.100.3.1 1556009950 installed <13>Dec 20 10:21:46 rpmi: libwayland-client-1.18.0-alt1 p9+260591.100.12.1 1606212861 installed <13>Dec 20 10:21:46 rpmi: perl-HTTP-Date-6.02-alt1 1348645274 installed <13>Dec 20 10:21:46 rpmi: libjpeg-2:2.0.2-alt1 sisyphus+226996.100.1.1 1554902907 installed <13>Dec 20 10:21:46 rpmi: libidn2-2.2.0-alt1 p9+229971.100.2.1 1558696281 installed <13>Dec 20 10:21:46 rpmi: libtcl-8.6.9-alt1 sisyphus+227145.100.1.2 1555606538 installed <13>Dec 20 10:21:46 rpmi: python3-module-coverage-4.5.3-alt1 sisyphus+228287.200.4.1 1556524564 installed <13>Dec 20 10:21:46 rpmi: python3-module-pyparsing-2.2.0-alt1 1534411950 installed <13>Dec 20 10:21:46 rpmi: python3-module-pygobject-2.28.6-alt10.1.1.1 sisyphus+225625.41000.91.1 1555331367 installed <13>Dec 20 10:21:46 rpmi: python3-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Dec 20 10:21:46 rpmi: python3-module-decorator-4.3.0-alt1 sisyphus+227480.1300.1.2 1555757994 installed <13>Dec 20 10:21:46 rpmi: python3-module-traitlets-4.3.2-alt2 sisyphus+227534.400.1.3 1555957137 installed <13>Dec 20 10:21:46 rpmi: python3-module-jupyter_core-4.4.0-alt2 sisyphus+228359.1000.4.3 1556674457 installed <13>Dec 20 10:21:47 rpmi: libopenblas-0.2.20-alt2 p9+229427.100.2.1 1558020066 installed <13>Dec 20 10:21:47 rpmi: libev4-4.24-alt1 1490615355 installed <13>Dec 20 10:21:47 rpmi: perl-XML-NamespaceSupport-1.12-alt1 1491296348 installed <13>Dec 20 10:21:47 rpmi: libICE-1.0.9-alt1 1409902721 installed <13>Dec 20 10:21:47 rpmi: libXau-1.0.9-alt1 sisyphus+223149.200.2.1 1551268152 installed <13>Dec 20 10:21:47 rpmi: libSM-1.2.3-alt1 sisyphus+226734.100.2.1 1554586158 installed <13>Dec 20 10:21:47 rpmi: libev-devel-4.24-alt1 1490615355 installed <13>Dec 20 10:21:47 rpmi: libjasper-2.0.22-alt1 p9+259398.100.5.1 1602695044 installed <13>Dec 20 10:21:47 rpmi: python3-modules-sqlite3-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:21:47 rpmi: python3-module-jsonschema-2.6.0-alt1.1 sisyphus+227498.1400.1.3 1555852796 installed <13>Dec 20 10:21:47 rpmi: python3-module-nbformat-4.4.0-alt1.1 sisyphus+227504.1000.1.3 1555865024 installed <13>Dec 20 10:21:47 rpmi: python3-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Dec 20 10:21:47 rpmi: python3-module-jmespath-0.9.3-alt1.1 sisyphus+228357.1700.3.1 1556633327 installed <13>Dec 20 10:21:47 rpmi: msulogin-1.0-alt1 1366288515 installed <13>Dec 20 10:21:47 rpmi: libyaml2-0.2.2-alt1 sisyphus+229134.100.1.1 1557342721 installed <13>Dec 20 10:21:47 rpmi: libproj-5.2.0-alt1 sisyphus+221643.100.9.2 1550496681 installed <13>Dec 20 10:21:47 rpmi: libhdf5-8-seq-1.8.13-alt1.qa4 sisyphus+222602.100.1.1 1550929955 installed <13>Dec 20 10:21:47 rpmi: libfontenc-1.1.4-alt1 sisyphus+223149.100.1.1 1551261109 installed <13>Dec 20 10:21:47 rpmi: python3-module-wcwidth-0.1.7-alt2.1 sisyphus+227536.2000.1.2 1555963469 installed <13>Dec 20 10:21:47 rpmi: python3-module-testpath-0.3.1-alt1 sisyphus+227532.1200.1.3 1555940533 installed <13>Dec 20 10:21:47 rpmi: python3-module-pyasn1-0.4.5-alt1 sisyphus+219541.100.1.1 1547718467 installed <13>Dec 20 10:21:47 rpmi: python3-module-ptyprocess-0.6.0-alt1 sisyphus+228365.1600.4.1 1556646134 installed <13>Dec 20 10:21:47 rpmi: python-module-wcwidth-0.1.7-alt2.1 sisyphus+227536.2000.1.2 1555963469 installed <13>Dec 20 10:21:47 rpmi: python-sphinx-objects.inv-1:2.3.8.20190514-alt1 p9+229421.100.1.1 1557927689 installed <13>Dec 20 10:21:47 rpmi: python-module-sphinxcontrib-2.1.1-alt2.1.2 sisyphus+227529.1100.1.2 1555924423 installed <13>Dec 20 10:21:47 rpmi: liblcms2-2.9-alt1 1516411892 installed <13>Dec 20 10:21:47 rpmi: libfribidi-1.0.7-alt1 p9+238309.200.1.1 1569787058 installed <13>Dec 20 10:21:47 rpmi: libpixman-3:0.38.4-alt1 sisyphus+228006.100.1.1 1556013870 installed <13>Dec 20 10:21:47 rpmi: libglvnd-7:1.3.1-alt0.p9 p9+251991.160.19.1 1590834872 installed <13>Dec 20 10:21:47 rpmi: libwayland-server-1.18.0-alt1 p9+260591.100.12.1 1606212861 installed <13>Dec 20 10:21:47 rpmi: pytz-zoneinfo-1:2016.10-alt1 1484291011 installed <13>Dec 20 10:21:47 rpmi: python3-module-dateutil-2.7.3-alt1 1534408281 installed <13>Dec 20 10:21:47 rpmi: libcares-1.16.1-alt2 p9+261934.100.3.1 1605804390 installed <13>Dec 20 10:21:47 rpmi: libzeromq-4.2.3-alt1 1513846894 installed <13>Dec 20 10:21:47 rpmi: python-module-enum34-1.1.6-alt3 1527251693 installed <13>Dec 20 10:21:47 rpmi: perl-LWP-MediaTypes-6.04-alt1 sisyphus+225468.100.1.1 1553186684 installed <13>Dec 20 10:21:47 rpmi: perl-Compress-Raw-Zlib-2.086-alt1 sisyphus+226395.100.1.2 1554269783 installed <13>Dec 20 10:21:47 rpmi: perl-libnet-1:3.11-alt1 1511423541 installed <13>Dec 20 10:21:47 rpmi: perl-XML-SAX-Base-1.09-alt1 1494364363 installed <13>Dec 20 10:21:47 rpmi: libnettle6-3.4.1-alt1 sisyphus+226533.100.2.1 1554512222 installed <13>Dec 20 10:21:47 rpmi: liblz4-1:1.9.2-alt1 p9+238696.500.1.1 1570228299 installed <13>Dec 20 10:21:47 rpmi: libXdmcp-1.1.3-alt1 sisyphus+225206.600.1.2 1552949353 installed <13>Dec 20 10:21:47 rpmi: libxcb-1.13.1-alt1 sisyphus+226527.100.2.2 1554593801 installed <13>Dec 20 10:21:47 rpmi: libhogweed4-3.4.1-alt1 sisyphus+226533.100.2.1 1554512222 installed <13>Dec 20 10:21:47 rpmi: libgnutls30-3.6.15-alt1 p9+257743.200.2.1 1599684980 installed <13>Dec 20 10:21:47 rpmi: python3-module-pexpect-4.6-alt3 sisyphus+222813.100.1.1 1551090209 installed <13>Dec 20 10:21:47 rpmi: python3-module-yaml-5.1.2-alt1 p9+235990.100.1.1 1565701485 installed <13>Dec 20 10:21:47 rpmi: sysvinit-2.88-alt5 1424350686 installed <13>Dec 20 10:21:48 rpmi: python3-module-packaging-16.8-alt1.qa1 sisyphus+228363.1100.2.2 1556671459 installed <13>Dec 20 10:21:48 rpmi: tcl-8.6.9-alt1 sisyphus+227145.100.1.2 1555606538 installed <13>Dec 20 10:21:48 rpmi: perl-File-Listing-6.04-alt1 1329758996 installed <13>Dec 20 10:21:48 rpmi: libwayland-cursor-1.18.0-alt1 p9+260591.100.12.1 1606212861 installed <13>Dec 20 10:21:48 rpmi: libwayland-egl-4:18.1.0-alt1 p9+260591.100.12.1 1606212861 installed <13>Dec 20 10:21:48 rpmi: python3-module-incremental-17.5.0-alt3 sisyphus+225625.45700.91.1 1555360824 installed <13>Dec 20 10:21:48 rpmi: python3-module-hamcrest-2.0.0-alt2.a1.git20150729.1.1.1.1 sisyphus+228127.100.1.1 1556184471 installed <13>Dec 20 10:21:48 rpmi: python3-module-cycler-0.10.0-alt1.1 sisyphus+227479.1400.1.3 1555777401 installed <13>Dec 20 10:21:48 rpmi: python3-module-xstatic-socialshareprivacy-1.4.1-alt3.1 sisyphus+227541.1400.1.2 1555972826 installed <13>Dec 20 10:21:48 rpmi: python3-module-xstatic-term.js-0.0.7.0-alt1.1 sisyphus+227541.2100.1.2 1555973125 installed <13>Dec 20 10:21:48 rpmi: python3-module-nose-1:1.3.7-alt4.git20160316 sisyphus+229068.100.1.1 1557255939 installed <13>Dec 20 10:21:48 rpmi: python3-module-pymongo-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Dec 20 10:21:48 rpmi: python3-module-bson-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Dec 20 10:21:48 rpmi: mount-2.33.2-alt2 p9+254003.100.1.1 1593108043 installed <13>Dec 20 10:21:48 rpmi: rgb-1.0.6-alt3 p9+229442.100.1.1 1557941137 installed <13>Dec 20 10:21:48 rpmi: python3-module-sh-1.12.14-alt4 sisyphus+219813.1200.10.1 1548182705 installed <13>Dec 20 10:21:48 rpmi: python3-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Dec 20 10:21:48 rpmi: python3-module-more-itertools-7.0.0-alt3 sisyphus+226536.100.1.1 1554329928 installed <13>Dec 20 10:21:48 rpmi: python3-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Dec 20 10:21:48 rpmi: python3-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Dec 20 10:21:48 rpmi: python3-module-apipkg-1.5-alt1 sisyphus+227465.1100.1.2 1555756555 installed <13>Dec 20 10:21:48 rpmi: python3-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Dec 20 10:21:48 rpmi: python3-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Dec 20 10:21:48 rpmi: python-module-sphinx-pickles-1:1.6.5-alt8 p9+250806.100.2.1 1588178467 installed <13>Dec 20 10:21:48 rpmi: python-module-iniconfig-1.0.0-alt1 sisyphus+227494.1100.1.3 1555839106 installed <13>Dec 20 10:21:48 rpmi: python-module-apipkg-1.5-alt1 1531926894 installed <13>Dec 20 10:21:48 rpmi: libsensors3-3.5.0-alt1 sisyphus+226785.100.6.2 1555147291 installed <13>Dec 20 10:21:48 rpmi: libseccomp-2.4.2-alt2 p9+249995.100.2.1 1587141058 installed <13>Dec 20 10:21:48 rpmi: libpcre2-10.33-alt1.1 sisyphus+227856.100.1.2 1555786378 installed <13>Dec 20 10:21:48 rpmi: libkmod-26-alt1 sisyphus+226359.100.1.1 1554129990 installed <13>Dec 20 10:21:48 rpmi: libiptables-1.8.3-alt2 p9+238412.300.6.1 1570110173 installed <13>Dec 20 10:21:48 rpmi: zlib-devel-1.2.11-alt1 sisyphus+221902.6000.4.1 1550601058 installed <13>Dec 20 10:21:48 rpmi: libltdl7-2.4.6-alt1 sisyphus+226971.100.2.1 1554906368 installed <13>Dec 20 10:21:48 rpmi: libunixODBC2-2.3.7-alt1 sisyphus+228027.100.1.1 1556027338 installed <13>Dec 20 10:21:48 rpmi: libunixODBC-devel-compat-2.3.7-alt1 sisyphus+228027.100.1.1 1556027338 installed <13>Dec 20 10:21:48 rpmi: libunixODBC-devel-2.3.7-alt1 sisyphus+228027.100.1.1 1556027338 installed <13>Dec 20 10:21:49 rpmi: libmysqlclient21-8.0.20-alt2 p9+252360.100.1.1 1590698673 installed <13>Dec 20 10:21:49 rpmi: libgif-4.1.6-alt3 1299634261 installed <13>Dec 20 10:21:49 rpmi: libgeos-3.7.2-alt1 sisyphus+228903.40.3.1 1557079771 installed <13>Dec 20 10:21:49 rpmi: libjson-c4-0.13.1-alt2 p9+254507.100.1.1 1593876142 installed <13>Dec 20 10:21:49 rpmi: libdevmapper-1.02.173-alt1 p9+259866.100.1.1 1602632335 installed <13>Dec 20 10:21:49 rpmi: libcfitsio4-3.380-alt2 1458566078 installed <13>Dec 20 10:21:49 rpmi: libargon2-20190702-alt1 p9+235535.100.1.1 1565051987 installed <13>Dec 20 10:21:49 rpmi: python3-module-zipp-0.5.0-alt1 sisyphus+229321.100.1.1 1557825329 installed <13>Dec 20 10:21:49 rpmi: python3-module-importlib_metadata-0.11-alt1 sisyphus+229324.100.1.1 1557826965 installed <13>Dec 20 10:21:49 rpmi: python3-module-path.py-12.0.1-alt1 sisyphus+227926.200.1.1 1555927034 installed <13>Dec 20 10:21:49 rpmi: python3-module-pickleshare-0.7.4-alt1 sisyphus+228364.2000.4.1 1556887192 installed <13>Dec 20 10:21:49 rpmi: python3-module-OpenGL_accelerate-3.1.3b1-alt1 sisyphus+225625.51400.91.1 1555362110 installed <13>Dec 20 10:21:50 rpmi: python3-module-OpenGL-3.1.1a1-alt2 sisyphus+227882.100.1.1 1555775819 installed <13>Dec 20 10:21:50 rpmi: python3-module-pandocfilters-1.4.2-alt1 sisyphus+228363.1600.2.1 1556638946 installed <13>Dec 20 10:21:50 rpmi: python3-module-entrypoints-0.3-alt1 sisyphus+227486.1700.1.3 1555815843 installed <13>Dec 20 10:21:50 rpmi: python3-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Dec 20 10:21:50 rpmi: python3-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Dec 20 10:21:50 rpmi: python3-module-pytz-1:2016.10-alt1 1484291011 installed <13>Dec 20 10:21:51 rpmi: python3-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Dec 20 10:21:51 rpmi: python3-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Dec 20 10:21:51 rpmi: python3-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Dec 20 10:21:51 rpmi: python3-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Dec 20 10:21:51 rpmi: python3-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Dec 20 10:21:51 rpmi: python3-module-genshi-0.7-alt2 sisyphus+229363.100.1.1 1557847335 installed <13>Dec 20 10:21:51 rpmi: python3-module-mistune-0.8.3-alt1 sisyphus+225625.25300.91.1 1555301257 installed <13>Dec 20 10:21:51 rpmi: python3-module-markupsafe-1.1.1-alt1 p9+254838.60.14.1 1602882139 installed <13>Dec 20 10:21:51 rpmi: python3-module-jinja2-2.11.2-alt1 p9+254838.40.14.1 1602882082 installed <13>Dec 20 10:21:51 rpmi: libnumpy-py3-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:21:51 rpmi: python3-module-kiwisolver-1.1.0-alt1 sisyphus+228183.200.2.1 1556253153 installed <13>Dec 20 10:21:51 rpmi: python3-module-pycrypto-2.7-alt3.a1.git20140620.1.1.1.1 sisyphus+225625.13600.91.1 1555290635 installed <13>Dec 20 10:21:51 rpmi: python3-module-constantly-15.1.0-alt5.qa1 sisyphus+228353.1600.3.1 1556554115 installed <13>Dec 20 10:21:51 rpmi: python3-module-priority-1.3.0-alt1.qa1 sisyphus+228365.500.1.1 1556564499 installed <13>Dec 20 10:21:51 rpmi: python3-module-hyperframe-5.1.0-alt1.qa1 sisyphus+227493.1700.1.3 1555836018 installed <13>Dec 20 10:21:51 rpmi: python3-module-hpack-3.0.0-alt1.qa1 sisyphus+227493.500.1.3 1555835217 installed <13>Dec 20 10:21:51 rpmi: python3-module-h2-3.0.1-alt2 1502880428 installed <13>Dec 20 10:21:51 rpmi: python3-module-z3c-3.0.0-alt3 sisyphus+220440.100.1.1 1549119447 installed <13>Dec 20 10:21:51 rpmi: python3-module-zc-1.0.0-alt6.2 1458024175 installed <13>Dec 20 10:21:51 rpmi: python3-module-zope-3.3.0-alt8.5 sisyphus+225625.33400.91.1 1555314837 installed <13>Dec 20 10:21:51 rpmi: python3-module-serial-3.4-alt1 1508504506 installed <13>Dec 20 10:21:51 rpmi: python3-module-hyperlink-17.3.0-alt1.qa1 sisyphus+227493.2000.1.3 1555836084 installed <13>Dec 20 10:21:51 rpmi: python3-module-appdirs-1.4.3-alt1.1 sisyphus+227473.200.1.2 1555755564 installed <13>Dec 20 10:21:51 rpmi: python3-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Dec 20 10:21:51 rpmi: python3-module-pycares-2.3.0-alt1.1 sisyphus+225625.36700.91.1 1555325221 installed <13>Dec 20 10:21:51 rpmi: python3-module-certifi-2016.9.26-alt1 sisyphus+227476.1200.1.2 1555756242 installed <13>Dec 20 10:21:51 rpmi: python3-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Dec 20 10:21:51 rpmi: python3-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Dec 20 10:21:51 rpmi: python3-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Dec 20 10:21:51 rpmi: python3-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Dec 20 10:21:51 rpmi: python3-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Dec 20 10:21:51 rpmi: python3-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Dec 20 10:21:51 rpmi: python3-module-requests-2.23.0-alt1 p9+250567.500.5.1 1590420921 installed <13>Dec 20 10:21:51 rpmi: python3-module-simplegeneric-0.8.1-alt1.1.1.1 sisyphus+228372.300.1.1 1556567603 installed <13>Dec 20 10:21:51 rpmi: python-module-OpenGL_accelerate-3.1.3b1-alt1 sisyphus+225625.51400.91.1 1555362110 installed <13>Dec 20 10:21:51 rpmi: python-module-xstatic-socialshareprivacy-1.4.1-alt3.1 sisyphus+227541.1400.1.2 1555972826 installed <13>Dec 20 10:21:51 rpmi: python-module-xstatic-term.js-0.0.7.0-alt1.1 sisyphus+227541.2100.1.2 1555973125 installed <13>Dec 20 10:21:51 rpmi: python-module-imagesize-1.1.0-alt1 sisyphus+229015.100.2.1 1557233756 installed <13>Dec 20 10:21:52 rpmi: libxapian-1.4.15-alt1 p9+258827.100.1.1 1601305423 installed <13>Dec 20 10:21:52 rpmi: python-module-google-0.4.2-alt2.1 sisyphus+228356.1500.3.1 1556633057 installed <13>Dec 20 10:21:52 rpmi: python-module-mistune-0.8.3-alt1 sisyphus+225625.25300.91.1 1555301257 installed <13>Dec 20 10:21:52 rpmi: python-module-markupsafe-1.1.1-alt1 p9+254838.60.14.1 1602882139 installed <13>Dec 20 10:21:52 rpmi: python-module-kiwisolver-0.1.3-alt1.git20140712.1 1517774364 installed <13>Dec 20 10:21:52 rpmi: python-module-subprocess32-3.2.7-alt1.1 1517926307 installed <13>Dec 20 10:21:52 rpmi: libgtk+2-locales-2.24.32-alt3 sisyphus+227306.100.1.3 1555646039 installed <13>Dec 20 10:21:52 rpmi: libnumpy-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:21:52 rpmi: libxblas-1.0.248-alt1.3 sisyphus+229150.100.1.1 1557388786 installed <13>Dec 20 10:21:52 rpmi: libquadmath0-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed <13>Dec 20 10:21:52 rpmi: libgfortran5-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed <13>Dec 20 10:21:53 rpmi: liblapack-1:3.8.0-alt3 sisyphus+221521.100.1.1 1550134903 installed <13>Dec 20 10:21:53 rpmi: python3-module-numpy-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:21:53 rpmi: libxkbcommon-0.8.4-alt1 sisyphus+222759.100.1.1 1551009799 installed <13>Dec 20 10:21:53 rpmi: libepoxy-1.5.3-alt1 sisyphus+226740.100.2.3 1554619018 installed <13>Dec 20 10:21:53 rpmi: libusb-1.0.22-alt1 1525452055 installed <13>Dec 20 10:21:53 rpmi: libgudev-1:233-alt1 p9+235498.500.2.1 1565021367 installed <13>Dec 20 10:21:53 rpmi: udev-rules-1:243.9-alt1 p9+258476.300.4.1 1601997124 installed <13>Dec 20 10:21:53 rpmi: libdatrie-0.2.9-alt1_6 1511686676 installed <13>Dec 20 10:21:53 rpmi: libthai-0.1.28-alt1_1 sisyphus+226107.100.1.1 1554123079 installed <13>Dec 20 10:21:53 rpmi: libxshmfence-1.3-alt1 sisyphus+223149.1000.2.1 1551268571 installed <13>Dec 20 10:21:53 rpmi: libpciaccess-1:0.14-alt1 1528969252 installed <13>Dec 20 10:21:53 rpmi: libdrm-1:2.4.102-alt1 p9+252863.100.1.1 1591372623 installed <13>Dec 20 10:21:53 rpmi: libgbm-4:20.1.8-alt1 p9+260591.240.12.1 1606213250 installed <13>Dec 20 10:21:53 rpmi: python-module-z3c-3.0.0-alt3 sisyphus+220440.100.1.1 1549119447 installed <13>Dec 20 10:21:53 rpmi: publicsuffix-list-dafsa-20201117-alt1 p9+262027.100.2.1 1605874289 installed <13>Dec 20 10:21:53 rpmi: libpsl-0.21.1-alt1 p9+255207.100.1.1 1595355048 installed <13>Dec 20 10:21:53 rpmi: libnghttp2-1.41.0-alt1 p9+256449.100.1.1 1597829547 installed <13>Dec 20 10:21:53 rpmi: libbrotlicommon-1.0.7-alt1 sisyphus+226738.100.2.1 1554554568 installed <13>Dec 20 10:21:53 rpmi: libbrotlidec-1.0.7-alt1 sisyphus+226738.100.2.1 1554554568 installed <13>Dec 20 10:21:53 rpmi: python-module-backports_abc-0.5-alt2 sisyphus+227474.700.1.1 1555687667 installed <13>Dec 20 10:21:53 rpmi: python-module-ordereddict-1.1-alt1.1 1321445242 installed <13>Dec 20 10:21:53 rpmi: python-module-certifi-2016.9.26-alt1 sisyphus+227476.1200.1.2 1555756242 installed <13>Dec 20 10:21:53 rpmi: python-module-simplegeneric-0.8.1-alt1.1.1.1 sisyphus+228372.300.1.1 1556567603 installed <13>Dec 20 10:21:53 rpmi: icon-theme-hicolor-0.17-alt2 p9+248347.100.1.1 1584981172 installed <13>Dec 20 10:21:53 rpmi: perl-Try-Tiny-0.30-alt1 1514318058 installed <13>Dec 20 10:21:53 rpmi: perl-IO-Socket-IP-0.39-alt1 1494508514 installed <13>Dec 20 10:21:53 rpmi: perl-Compress-Raw-Bzip2-2.086-alt1 sisyphus+226394.100.1.2 1554269409 installed <13>Dec 20 10:21:53 rpmi: perl-HTML-Tagset-3.20-alt2 1317725093 installed <13>Dec 20 10:21:53 rpmi: perl-Term-ANSIColor-4.06-alt1 1479407083 installed <13>Dec 20 10:21:53 rpmi: perl-Data-Dump-1.23-alt1 1444601978 installed <13>Dec 20 10:21:53 rpmi: perl-Filter-1.59-alt1.1 sisyphus+219907.400.1.1 1548343389 installed <13>Dec 20 10:21:53 rpmi: perl-Encode-3.01-alt1 sisyphus+224923.100.1.1 1552474122 installed <13>Dec 20 10:21:53 rpmi: perl-URI-1.76-alt1 sisyphus+220243.100.1.1 1548863244 installed <13>Dec 20 10:21:53 rpmi: perl-IO-Compress-2.086-alt1 sisyphus+226399.100.2.1 1554270186 installed <13>Dec 20 10:21:53 rpmi: perl-Net-HTTP-6.18-alt1 1526560501 installed <13>Dec 20 10:21:53 rpmi: perl-HTML-Parser-3.72-alt1.2 sisyphus+219907.600.1.1 1548343581 installed <13>Dec 20 10:21:53 rpmi: perl-WWW-RobotRules-6.02-alt1 1329756211 installed <13>Dec 20 10:21:53 rpmi: perl-Encode-Locale-1.05-alt1 1444608613 installed <13>Dec 20 10:21:53 rpmi: perl-IO-HTML-1.001-alt1 1404821752 installed <13>Dec 20 10:21:53 rpmi: perl-HTTP-Message-6.18-alt1 1528288416 installed <13>Dec 20 10:21:53 rpmi: perl-HTTP-Cookies-6.04-alt1 1504116575 installed <13>Dec 20 10:21:53 rpmi: perl-HTTP-Negotiate-6.01-alt1 1329760563 installed <13>Dec 20 10:21:53 rpmi: perl-libwww-6.39-alt1 sisyphus+229237.100.1.1 1557650051 installed <13>Dec 20 10:21:53 rpmi: perl-XML-LibXML-2.0134-alt1 p9+240664.100.1.1 1573636517 installed <13>Dec 20 10:21:53 rpmi: perl-XML-SAX-1.00-alt1 1519094959 installed <13>Dec 20 10:21:53 rpmi: perl-XML-Simple-2.25-alt1 1521437714 installed <13>Dec 20 10:21:53 rpmi: icon-naming-utils-0.8.90-alt1 1236573102 installed <13>Dec 20 10:21:55 rpmi: icon-theme-adwaita-3.32.0-alt1 sisyphus+225063.1600.1.1 1552933594 installed <13>Dec 20 10:21:55 rpmi: hwclock-1:2.33.2-alt2 p9+254003.100.1.1 1593108043 installed <13>Dec 20 10:21:55 rpmi: libwebp7-1.0.3-alt1 p9+234901.200.1.1 1563552457 installed <13>Dec 20 10:21:55 rpmi: libjbig-2.1-alt1 1401380926 installed <13>Dec 20 10:21:55 rpmi: libtiff5-4.0.10.0.57.f9fc01c3-alt1 sisyphus+226958.100.1.1 1554850940 installed <13>Dec 20 10:21:55 rpmi: libgdk-pixbuf-locales-2.38.2-alt1 p9+237353.1000.2.2 1568374008 installed <13>Dec 20 10:21:55 rpmi: gtk+3-themes-incompatible-3.20-alt3 1461944560 installed <13>Dec 20 10:21:55 rpmi: libproxy-0.4.15-alt5 p9+261541.200.3.1 1605276967 installed <13>Dec 20 10:21:55 rpmi: gcc-c++-common-1.4.23-alt1 sisyphus+221902.2500.4.1 1550596716 installed <13>Dec 20 10:21:55 rpmi: libstdc++8-devel-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed <13>Dec 20 10:21:57 rpmi: gcc8-c++-8.4.1-alt0.p9.1 p9+247559.100.2.1 1585587912 installed <13>Dec 20 10:21:57 rpmi: libatk-locales-2.32.0-alt1 sisyphus+225059.600.3.2 1552845198 installed <13>Dec 20 10:21:57 rpmi: libatk-2.32.0-alt1 sisyphus+225059.600.3.2 1552845362 installed <13>Dec 20 10:21:57 rpmi: shared-mime-info-1.13.1-alt1 p9+238204.100.1.1 1569496447 installed <13>Dec 20 10:21:57 rpmi: gsettings-desktop-schemas-data-3.32.0-alt1 sisyphus+225059.300.3.2 1552843929 installed <13>Dec 20 10:21:57 rpmi: libgio-2.60.7-alt1 p9+237353.100.2.2 1568373081 installed <13>Dec 20 10:21:57 rpmi: gsettings-desktop-schemas-3.32.0-alt1 sisyphus+225059.300.3.2 1552843980 installed <13>Dec 20 10:21:57 rpmi: gobject-introspection-1.60.2-alt1 p9+232288.200.1.1 1560708080 installed <13>Dec 20 10:21:57 rpmi: libgdk-pixbuf-2.38.2-alt1 p9+237353.1000.2.2 1568374336 installed <13>Dec 20 10:21:57 rpmi: gtk-update-icon-cache-3.24.11-alt1 p9+260591.300.12.1 1606214139 installed <13>Dec 20 10:21:57 rpmi: gobject-introspection-x11-1.60.2-alt1 p9+232288.200.1.1 1560708080 installed <13>Dec 20 10:21:57 rpmi: libgusb-0.3.4-alt1 p9+252428.140.2.1 1590759505 installed <13>Dec 20 10:21:57 rpmi: libcolord-1.4.4-alt1 sisyphus+224111.100.1.1 1552060572 installed <13>Dec 20 10:21:57 rpmi: libgdk-pixbuf-gir-2.38.2-alt1 p9+237353.1000.2.2 1568374336 installed <13>Dec 20 10:21:57 rpmi: libatk-gir-2.32.0-alt1 sisyphus+225059.600.3.2 1552845362 installed <13>Dec 20 10:21:57 rpmi: glib-networking-2.60.3-alt1.p9.2 p9+262755.100.1.1 1606834386 installed <13>Dec 20 10:21:57 rpmi: libdconf-0.32.0-alt1 sisyphus+225059.1100.3.2 1552846106 installed <13>Dec 20 10:21:57 rpmi: libjson-glib-1.4.4-alt1 sisyphus.213175.100 1537249589 installed <13>Dec 20 10:21:57 rpmi: libgpg-error-1.36-alt1 p9+261942.140.4.1 1606237675 installed <13>Dec 20 10:21:57 rpmi: libgcrypt20-1.8.5-alt3 p9+261942.200.4.1 1606237923 installed <13>Dec 20 10:21:57 rpmi: libsystemd-1:243.9-alt1 p9+258476.300.4.1 1601997172 installed <13>Dec 20 10:21:57 rpmi: libdbus-1.12.16-alt2 p9+240607.100.1.1 1573553687 installed <13>Dec 20 10:21:57 rpmi: libxslt-1.1.34-alt1.p9.1 p9+261811.300.3.1 1605513919 installed <13>Dec 20 10:21:57 rpmi: python3-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Dec 20 10:21:57 rpmi: python3-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Dec 20 10:21:57 rpmi: python3-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758819 installed <13>Dec 20 10:21:58 rpmi: python3-module-docutils-0.14-alt2 1535729778 installed <13>Dec 20 10:21:58 rpmi: python3-module-botocore-1.6.0-alt1.1 sisyphus+227475.1000.1.2 1555717401 installed <13>Dec 20 10:21:58 rpmi: python3-module-s3transfer-0.1.10-alt1.1 sisyphus+227526.200.1.2 1555923713 installed <13>Dec 20 10:21:58 rpmi: python3-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-applehelp-1.0.1-alt1 sisyphus+228217.100.1.1 1556282506 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-devhelp-1.0.1-alt1 sisyphus+228218.100.1.1 1556283262 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-htmlhelp-1.0.2-alt1 sisyphus+228401.100.1.1 1556572721 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-jsmath-1.0.1-alt1 p9+247680.64.15.1 1585326575 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-qthelp-1.0.2-alt1 sisyphus+228215.100.1.1 1556282300 installed <13>Dec 20 10:21:58 rpmi: python3-module-sphinxcontrib-serializinghtml-1.1.3-alt1 sisyphus+228216.100.1.1 1556282403 installed <13>Dec 20 10:21:59 rpmi: python3-module-sphinx-1:2.2.0-alt2.1.p9 p9+247680.14.15.1 1585326533 installed <13>Dec 20 10:21:59 rpmi: python3-module-Pygments-2.6.1-alt2 p9+263160.600.6.1 1607946197 installed <13>Dec 20 10:21:59 rpmi: python3-module-prompt_toolkit-1.0.14-alt1.1 sisyphus+228365.1300.4.2 1556671018 installed <13>Dec 20 10:21:59 rpmi: python3-module-bleach-2.1.3-alt1.qa1 sisyphus+227475.300.1.1 1555687267 installed <13>Dec 20 10:21:59 rpmi: dbus-tools-1.12.16-alt2 p9+240607.100.1.1 1573553687 installed <86>Dec 20 10:21:59 groupadd[4062994]: group added to /etc/group: name=messagebus, GID=499 <86>Dec 20 10:21:59 groupadd[4062994]: group added to /etc/gshadow: name=messagebus <86>Dec 20 10:21:59 groupadd[4062994]: new group: name=messagebus, GID=499 <86>Dec 20 10:21:59 useradd[4062998]: new user: name=messagebus, UID=499, GID=499, home=/run/dbus, shell=/dev/null <13>Dec 20 10:21:59 rpmi: dbus-1.12.16-alt2 p9+240607.100.1.1 1573553687 installed <13>Dec 20 10:21:59 rpmi: dconf-0.32.0-alt1 sisyphus+225059.1100.3.2 1552846106 installed <13>Dec 20 10:21:59 rpmi: libgtk+3-schemas-3.24.11-alt1 p9+260591.300.12.1 1606214030 installed <13>Dec 20 10:21:59 rpmi: libavahi-0.8-alt1 p9+258828.100.4.1 1601912063 installed <13>Dec 20 10:21:59 rpmi: libcups-2.3.1-alt1 p9+247593.200.5.1 1585155229 installed <13>Dec 20 10:21:59 rpmi: libpolkit-0.116-alt1 sisyphus+228976.400.4.1 1557128967 installed <86>Dec 20 10:21:59 groupadd[4063059]: group added to /etc/group: name=colord, GID=498 <86>Dec 20 10:21:59 groupadd[4063059]: group added to /etc/gshadow: name=colord <86>Dec 20 10:21:59 groupadd[4063059]: new group: name=colord, GID=498 <86>Dec 20 10:21:59 useradd[4063068]: new user: name=colord, UID=498, GID=498, home=/var/colord, shell=/dev/null <13>Dec 20 10:21:59 rpmi: colord-1.4.4-alt1 sisyphus+224111.100.1.1 1552060572 installed <13>Dec 20 10:21:59 rpmi: libcryptsetup-2.3.3-alt1 p9+252585.100.1.1 1590914370 installed <13>Dec 20 10:21:59 rpmi: startup-0.9.9.6-alt1 sisyphus.215964.200 1542884274 installed <13>Dec 20 10:21:59 rpmi: systemd-utils-1:243.9-alt1 p9+258476.300.4.1 1601997172 installed <13>Dec 20 10:21:59 rpmi: libgraphite2-1.3.13-alt2 sisyphus+226799.100.1.1 1554648241 installed <13>Dec 20 10:21:59 rpmi: libharfbuzz-2.6.2-alt1 p9+238790.200.1.1 1570435826 installed <13>Dec 20 10:22:00 rpmi: libfreetype-2.10.1-alt1.1.p9.1 p9+260179.200.3.1 1603971407 installed <13>Dec 20 10:22:00 rpmi: fontconfig-2.13.1-alt1 p9+247340.200.3.1 1583400517 installed Updating fonts cache: <29>Dec 20 10:22:01 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Dec 20 10:22:01 rpmi: mkfontscale-1.2.0-alt1 sisyphus+225397.100.1.2 1553108224 installed <13>Dec 20 10:22:01 rpmi: mkfontdir-1.0.7-alt1 1332532636 installed <13>Dec 20 10:22:01 rpmi: fonts-bitmap-misc-7.0.0-alt6 1238575088 installed <13>Dec 20 10:22:02 rpmi: libXfont2-2.0.3-alt2 sisyphus+226377.300.1.2 1554260428 installed <13>Dec 20 10:22:02 rpmi: libX11-locales-3:1.6.7-alt2 p9+258208.100.1.1 1600333167 installed <13>Dec 20 10:22:02 rpmi: libX11-3:1.6.7-alt2 p9+258208.100.1.1 1600333162 installed <13>Dec 20 10:22:02 rpmi: libXext-1.3.4-alt1 sisyphus+225206.700.1.2 1552949429 installed <13>Dec 20 10:22:02 rpmi: libXrender-0.9.10-alt1 p9+261891.200.2.1 1606149111 installed <13>Dec 20 10:22:02 rpmi: libXfixes-5.0.3-alt1 sisyphus+226736.100.2.2 1554614841 installed <13>Dec 20 10:22:02 rpmi: libXdamage-1.1.5-alt1 sisyphus+225206.500.1.2 1552949286 installed <13>Dec 20 10:22:02 rpmi: libXcursor-1.2.0-alt1 sisyphus+225206.400.1.2 1552949218 installed <13>Dec 20 10:22:02 rpmi: libXft-2.3.3-alt1 sisyphus+225206.1000.3.2 1552987708 installed <13>Dec 20 10:22:02 rpmi: libtk-8.6.9-alt1 sisyphus+227145.200.1.2 1555606681 installed <13>Dec 20 10:22:02 rpmi: tk-8.6.9-alt1 sisyphus+227145.200.1.2 1555606681 installed <13>Dec 20 10:22:02 rpmi: python3-modules-tkinter-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:22:02 rpmi: libXrandr-1.5.2-alt1 sisyphus+225206.1300.1.2 1552949710 installed <13>Dec 20 10:22:02 rpmi: libXi-1.7.9-alt2 sisyphus+226377.100.1.2 1554260260 installed <13>Dec 20 10:22:02 rpmi: libXinerama-1.1.4-alt1 sisyphus+223149.300.2.1 1551268216 installed <13>Dec 20 10:22:02 rpmi: libat-spi2-core-2.32.1-alt1.1 sisyphus+227877.100.1.2 1555818555 installed <13>Dec 20 10:22:02 rpmi: libXcomposite-0.4.5-alt1 sisyphus+225206.300.1.2 1552949137 installed <13>Dec 20 10:22:02 rpmi: libXtst-1.2.3-alt1 p9+261891.100.2.1 1606149069 installed <13>Dec 20 10:22:02 rpmi: libXxf86vm-1.1.4-alt2 1527672187 installed <13>Dec 20 10:22:02 rpmi: libGLX-mesa-4:20.1.8-alt1 p9+260591.240.12.1 1606213250 installed <13>Dec 20 10:22:02 rpmi: libEGL-mesa-4:20.1.8-alt1 p9+260591.240.12.1 1606213250 installed <13>Dec 20 10:22:02 rpmi: libEGL-7:1.3.1-alt0.p9 p9+251991.160.19.1 1590834872 installed <13>Dec 20 10:22:02 rpmi: libGLX-7:1.3.1-alt0.p9 p9+251991.160.19.1 1590834872 installed <13>Dec 20 10:22:02 rpmi: libGL-7:1.3.1-alt0.p9 p9+251991.160.19.1 1590834872 installed <13>Dec 20 10:22:03 rpmi: libcairo-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515535 installed <13>Dec 20 10:22:03 rpmi: libpango-1.44.6-alt1 p9+237353.700.2.2 1568374131 installed <13>Dec 20 10:22:03 rpmi: libcairo-gobject-1:1.16.0-alt1 sisyphus+226534.100.2.3 1554515535 installed <13>Dec 20 10:22:03 rpmi: libpango-gir-1.44.6-alt1 p9+237353.700.2.2 1568374131 installed <13>Dec 20 10:22:03 rpmi: libgtk+2-2.24.32-alt3 sisyphus+227306.100.1.3 1555646092 installed <13>Dec 20 10:22:03 rpmi: python3-module-pycairo-1.18.1-alt1 sisyphus+227874.100.1.3 1555790160 installed <13>Dec 20 10:22:03 rpmi: libXv-1.0.11-alt1 1527685499 installed <13>Dec 20 10:22:03 rpmi: libXvMC-1.0.11-alt1 sisyphus+225206.1400.1.2 1552949778 installed <13>Dec 20 10:22:03 rpmi: dbus-tools-gui-1.12.16-alt2 p9+240607.100.1.1 1573553687 installed <13>Dec 20 10:22:03 rpmi: at-spi2-core-2.32.1-alt1.1 sisyphus+227877.100.1.2 1555818555 installed <13>Dec 20 10:22:03 rpmi: at-spi2-atk-2.32.0-alt1 sisyphus+225059.700.3.2 1552845433 installed <13>Dec 20 10:22:03 rpmi: libXt-1.1.4-alt1 1369984722 installed <13>Dec 20 10:22:03 rpmi: libXmu-1.1.3-alt1 sisyphus+225206.1200.1.2 1552949641 installed <13>Dec 20 10:22:03 rpmi: xauth-1:1.0.10-alt1 1501868099 installed <13>Dec 20 10:22:03 rpmi: libxkbfile-1.1.0-alt1 sisyphus+225206.1100.1.2 1552949569 installed <13>Dec 20 10:22:03 rpmi: xkbcomp-1.4.2-alt1 sisyphus.213286.100 1537398723 installed <13>Dec 20 10:22:03 rpmi: xkeyboard-config-1:2.25-alt1 sisyphus+226724.100.2.2 1554610603 installed <13>Dec 20 10:22:03 rpmi: xorg-server-common-2:1.20.8-alt5 p9+262758.100.1.1 1606836879 installed <13>Dec 20 10:22:03 rpmi: python-modules-curses-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:03 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 20 10:22:03 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Dec 20 10:22:03 rpmi: python3-dev-3.7.4-alt3 p9+249932.100.2.1 1587127349 installed <13>Dec 20 10:22:03 rpmi: python3-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 20 10:22:03 rpmi: python3-module-automat-0.6.0-alt1.qa1 sisyphus+227474.200.1.1 1555687248 installed <13>Dec 20 10:22:03 rpmi: python3-module-twisted-runner-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:03 rpmi: python3-module-twisted-logger-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:03 rpmi: python3-module-twisted-web-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:03 rpmi: python3-module-twisted-conch-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-names-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-pair-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-positioning-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-core-test-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-words-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-twisted-core-18.9.0-alt1 sisyphus+225625.46000.91.1 1555354932 installed <13>Dec 20 10:22:04 rpmi: python3-module-tornado-5.1.1-alt2 sisyphus+225625.16600.91.1 1555292790 installed <13>Dec 20 10:22:04 rpmi: python3-module-tornado_xstatic-0.1-alt1.git20140929.2 sisyphus+227533.2000.1.2 1555929523 installed <13>Dec 20 10:22:04 rpmi: python3-module-terminado-0.5-alt2.git20150717 sisyphus+227532.1000.1.3 1555940287 installed <13>Dec 20 10:22:04 rpmi: python3-module-greenlet-0.4.15-alt1 sisyphus+225625.7600.91.1 1555287275 installed <13>Dec 20 10:22:05 rpmi: python3-module-gevent-1.4.0-alt2 sisyphus+229109.100.2.1 1557341689 installed <13>Dec 20 10:22:05 rpmi: python3-module-zmq-17.0.0-alt1 sisyphus+225625.32500.91.1 1555313584 installed <13>Dec 20 10:22:05 rpmi: python3-module-jupyter_client-5.1.0-alt2 sisyphus+228359.600.4.3 1556674086 installed <13>Dec 20 10:22:05 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Dec 20 10:22:05 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Dec 20 10:22:05 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <86>Dec 20 10:22:05 groupadd[4066417]: group added to /etc/group: name=_keytab, GID=497 <86>Dec 20 10:22:05 groupadd[4066417]: group added to /etc/gshadow: name=_keytab <86>Dec 20 10:22:05 groupadd[4066417]: new group: name=_keytab, GID=497 <13>Dec 20 10:22:05 rpmi: libkrb5-1.17.2-alt1 p9+262110.100.3.1 1606242416 installed <13>Dec 20 10:22:05 rpmi: libsoup-2.66.2-alt1 p9+230015.200.2.1 1559209103 installed <13>Dec 20 10:22:05 rpmi: libsoup-gnome-2.66.2-alt1 p9+230015.200.2.1 1559209103 installed <13>Dec 20 10:22:05 rpmi: librest-0.8.1-alt1 1508266400 installed <13>Dec 20 10:22:06 rpmi: libgtk+3-3.24.11-alt1 p9+260591.300.12.1 1606214139 installed <13>Dec 20 10:22:06 rpmi: libgtk+3-gir-3.24.11-alt1 p9+260591.300.12.1 1606214139 installed <13>Dec 20 10:22:06 rpmi: python3-module-pygobject3-3.32.2-alt1 p9+233122.400.1.1 1561390709 installed <13>Dec 20 10:22:06 rpmi: python3-module-mpl_toolkits-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:06 rpmi: python3-module-matplotlib-cairo-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:06 rpmi: python3-module-matplotlib-tk-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:07 rpmi: python3-module-matplotlib-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:07 rpmi: python3-module-matplotlib-gtk3-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:08 rpmi: python3-module-notebook-5.2.2-alt4 sisyphus+227506.100.1.3 1555869801 installed <13>Dec 20 10:22:08 rpmi: python3-module-nbconvert-5.3.1-alt5 sisyphus+228961.100.1.1 1557079124 installed <13>Dec 20 10:22:08 rpmi: python3-module-ipyparallel-4.1.0-alt3 sisyphus+227495.500.1.3 1555842732 installed <13>Dec 20 10:22:08 rpmi: ipython3-5.5.0-alt3 sisyphus+228348.2000.3.3 1556656641 installed <13>Dec 20 10:22:08 rpmi: python3-module-ipykernel-4.6.1-alt4 sisyphus+227495.400.1.3 1555842586 installed <13>Dec 20 10:22:08 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Dec 20 10:22:08 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Dec 20 10:22:08 rpmi: python-modules-compiler-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-email-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-unittest-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-encodings-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-nis-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-json-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-module-six-1.12.0-alt1 sisyphus+219665.100.2.1 1548148570 installed <13>Dec 20 10:22:08 rpmi: python-module-pkg_resources-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 20 10:22:08 rpmi: python-modules-ctypes-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-xml-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-multiprocessing-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:08 rpmi: python-modules-logging-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:09 rpmi: python-module-ipython_genutils-0.1.0-alt1.1.2 sisyphus+227495.700.1.3 1555842873 installed <13>Dec 20 10:22:09 rpmi: python-module-jinja2-2.11.2-alt1 p9+254838.40.14.1 1602882082 installed <13>Dec 20 10:22:09 rpmi: python-module-backports-3.5.0.1-alt1.1.1 1517645428 installed <13>Dec 20 10:22:09 rpmi: python-module-click-6.7-alt1.1.1 sisyphus+228018.100.1.1 1556023031 installed <13>Dec 20 10:22:09 rpmi: python-module-futures-3.0.5-alt1 1484260741 installed <13>Dec 20 10:22:09 rpmi: python-module-dateutil-2.7.3-alt1 1534408281 installed <13>Dec 20 10:22:09 rpmi: python-module-coverage-4.5.3-alt1 sisyphus+228287.200.4.1 1556524564 installed <13>Dec 20 10:22:09 rpmi: python-module-decorator-4.3.0-alt1 sisyphus+227480.1300.1.2 1555757994 installed <13>Dec 20 10:22:09 rpmi: python-module-traitlets-4.3.2-alt2 sisyphus+227534.400.1.3 1555957137 installed <13>Dec 20 10:22:09 rpmi: python-module-jupyter_core-4.4.0-alt2 sisyphus+228359.1000.4.3 1556674457 installed <13>Dec 20 10:22:09 rpmi: python-module-pyparsing-2.2.0-alt1 1534411950 installed <13>Dec 20 10:22:09 rpmi: python-modules-sqlite3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:09 rpmi: python-module-backports.ssl_match_hostname-3.5.0.1-alt1.1.1 1517645428 installed <13>Dec 20 10:22:09 rpmi: python-module-configparser-3.7.4-alt2 sisyphus+225584.100.1.1 1553412635 installed <13>Dec 20 10:22:09 rpmi: python-tools-2to3-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:09 rpmi: python-module-testpath-0.3.1-alt1 sisyphus+227532.1200.1.3 1555940533 installed <13>Dec 20 10:22:09 rpmi: python-module-jmespath-0.9.3-alt1.1 sisyphus+228357.1700.3.1 1556633327 installed <13>Dec 20 10:22:09 rpmi: python-modules-hotshot-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:09 rpmi: python-module-functools32-3.2.3.2-alt1.git20150711.1 1517710999 installed <13>Dec 20 10:22:09 rpmi: python-module-jsonschema-2.6.0-alt1.1 sisyphus+227498.1400.1.3 1555852796 installed <13>Dec 20 10:22:09 rpmi: python-module-nbformat-4.4.0-alt1.1 sisyphus+227504.1000.1.3 1555865024 installed <13>Dec 20 10:22:09 rpmi: python-module-ptyprocess-0.6.0-alt1 sisyphus+228365.1600.4.1 1556646134 installed <13>Dec 20 10:22:09 rpmi: python-module-simplejson-3.15.0-alt1.qa1 sisyphus+225625.16100.91.1 1555292381 installed <13>Dec 20 10:22:09 rpmi: python-module-pexpect-4.6-alt3 sisyphus+222813.100.1.1 1551090209 installed <13>Dec 20 10:22:09 rpmi: python-module-future-0.16.0-alt2 sisyphus+228356.200.3.3 1556645013 installed <13>Dec 20 10:22:09 rpmi: python-module-backports.os-0.1.1-alt2 sisyphus.212839.500 1536594727 installed <13>Dec 20 10:22:09 rpmi: python-module-entrypoints-0.3-alt1 sisyphus+227486.1700.1.3 1555815843 installed <13>Dec 20 10:22:09 rpmi: python-module-SQLAlchemy-1.2.15-alt1 sisyphus+225625.4500.91.1 1555284142 installed <13>Dec 20 10:22:09 rpmi: python-module-backports.functools_lru_cache-1.4-alt1.qa1 sisyphus.214841.100 1539767890 installed <13>Dec 20 10:22:09 rpmi: python-module-chardet-3.0.4-alt1 sisyphus+227476.1700.1.2 1555756717 installed <13>Dec 20 10:22:09 rpmi: python-module-pyasn1-0.4.5-alt1 sisyphus+219541.100.1.1 1547718467 installed <13>Dec 20 10:22:09 rpmi: python-module-sh-1.12.14-alt4 sisyphus+219813.1200.10.1 1548182705 installed <13>Dec 20 10:22:10 rpmi: python-module-whoosh-2.7.4-alt1 1527697941 installed <13>Dec 20 10:22:10 rpmi: python-module-singledispatch-3.4.0.3-alt1.1.2 sisyphus+228372.400.1.1 1556567659 installed <13>Dec 20 10:22:10 rpmi: python-module-cycler-0.10.0-alt1.1 sisyphus+227479.1400.1.3 1555777401 installed <13>Dec 20 10:22:10 rpmi: python-module-more-itertools-1:5.0.0-alt2 sisyphus+226536.200.1.1 1554329977 installed <13>Dec 20 10:22:10 rpmi: python-module-webencodings-0.5.1-alt1.1 1517943573 installed <13>Dec 20 10:22:10 rpmi: python-modules-bsddb-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:10 rpmi: python-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:10 rpmi: python-strict-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003646 installed <13>Dec 20 10:22:10 rpmi: python-modules-distutils-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:10 rpmi: python-module-numpy-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:22:10 rpmi: python-module-pygobject3-3.32.2-alt1 p9+233122.400.1.1 1561390709 installed <13>Dec 20 10:22:10 rpmi: python-module-pygobject-2.28.7-alt1 1513944037 installed <13>Dec 20 10:22:10 rpmi: python-module-pycairo-1.18.1-alt1 sisyphus+227874.100.1.3 1555790160 installed <13>Dec 20 10:22:10 rpmi: python-module-pytz-1:2016.10-alt1 1484291011 installed <13>Dec 20 10:22:10 rpmi: python-module-ntlm-1.1.0-alt1.2 sisyphus+228512.100.1.1 1556654575 installed <13>Dec 20 10:22:10 rpmi: python-module-bson-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Dec 20 10:22:10 rpmi: python-module-pymongo-3.6.0-alt1.1 sisyphus+225625.14500.91.1 1555291351 installed <13>Dec 20 10:22:11 rpmi: python-module-babel-1:2.6.0-alt1 sisyphus+228351.2400.6.2 1556652168 installed <13>Dec 20 10:22:11 rpmi: python-module-pygtk-2.24.0-alt7 p9+237353.3000.2.2 1568378016 installed <13>Dec 20 10:22:11 rpmi: python-module-pycparser-2.19-alt1 sisyphus+228366.1000.2.3 1556706938 installed <13>Dec 20 10:22:11 rpmi: python-module-cffi-1.12.3-alt1 sisyphus+229040.200.3.1 1557316452 installed <13>Dec 20 10:22:11 rpmi: python-module-zc-1.0.0-alt6.2 1458024175 installed <13>Dec 20 10:22:11 rpmi: python-module-zope.interface-4.6.0-alt1 sisyphus+227562.100.3.1 1556009950 installed <13>Dec 20 10:22:11 rpmi: python-module-zope-3.3.0-alt8.5 sisyphus+225625.33400.91.1 1555314837 installed <13>Dec 20 10:22:11 rpmi: python-module-cssselect-0.9.1-alt1.2 sisyphus+227479.1100.1.2 1555757152 installed <13>Dec 20 10:22:11 rpmi: python-module-html5lib-1:0.999999999-alt4.qa1 sisyphus+227493.600.1.3 1555835341 installed <13>Dec 20 10:22:11 rpmi: python-module-lxml-4.4.2-alt1 p9+244111.100.1.1 1578758819 installed <13>Dec 20 10:22:12 rpmi: python-module-docutils-0.14-alt2 1535729778 installed <13>Dec 20 10:22:12 rpmi: python-module-bleach-2.1.3-alt1.qa1 sisyphus+227475.300.1.1 1555687267 installed <13>Dec 20 10:22:12 rpmi: python-module-idna-2.8-alt1 sisyphus+227494.400.1.3 1555838720 installed <13>Dec 20 10:22:12 rpmi: python-module-asn1crypto-0.24.0-alt1 sisyphus+227473.1300.1.2 1555756512 installed <13>Dec 20 10:22:12 rpmi: python-module-PyStemmer-1.0.1-alt1.2.1 1321388303 installed <13>Dec 20 10:22:12 rpmi: python-module-snowballstemmer-1.2.0-alt2.1 1457859319 installed <13>Dec 20 10:22:12 rpmi: python-module-OpenGL-3.1.1a1-alt2 sisyphus+227882.100.1.1 1555775819 installed <13>Dec 20 10:22:12 rpmi: python-module-attrs-19.1.0-alt1 sisyphus+227473.2100.1.2 1555756986 installed <13>Dec 20 10:22:12 rpmi: python-modules-tkinter-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:13 rpmi: python-module-pycares-2.3.0-alt1.1 sisyphus+225625.36700.91.1 1555325221 installed <13>Dec 20 10:22:13 rpmi: python-modules-wsgiref-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:13 rpmi: python-module-ipaddress-1.0.18-alt1.1 sisyphus+227494.1700.1.3 1555839523 installed <13>Dec 20 10:22:13 rpmi: python-module-cryptography-2.6.1-alt1 sisyphus+225625.24400.91.1 1555298600 installed <13>Dec 20 10:22:13 rpmi: python-module-OpenSSL-18.0.0-alt1 1532996168 installed <13>Dec 20 10:22:13 rpmi: python-module-botocore-1.6.0-alt1.1 sisyphus+227475.1000.1.2 1555717401 installed <13>Dec 20 10:22:13 rpmi: python-module-s3transfer-0.1.10-alt1.1 sisyphus+227526.200.1.2 1555923713 installed <13>Dec 20 10:22:13 rpmi: python-module-ndg-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Dec 20 10:22:13 rpmi: python-module-ndg-httpsclient-0.4.2-alt1.qa1 sisyphus+227504.1300.1.2 1555853234 installed <13>Dec 20 10:22:13 rpmi: python-module-urllib3-2:1.25.6-alt1 p9+250567.200.5.1 1590420860 installed <13>Dec 20 10:22:13 rpmi: python-module-requests-2.23.0-alt1 p9+250567.400.5.1 1590420890 installed <13>Dec 20 10:22:13 rpmi: python-module-typing-3.6.6-alt2 sisyphus+220108.100.1.1 1548749697 installed <13>Dec 20 10:22:13 rpmi: python-module-scandir-1.10.0-alt1 sisyphus+225192.100.1.2 1552968870 installed <13>Dec 20 10:22:13 rpmi: python-module-pathlib2-2.3.3-alt1 sisyphus+228364.300.4.1 1556886257 installed <13>Dec 20 10:22:13 rpmi: python-module-contextlib2-0.5.5-alt2 sisyphus+228269.100.1.1 1556366540 installed <13>Dec 20 10:22:13 rpmi: python-module-zipp-0.5.0-alt1 sisyphus+229321.100.1.1 1557825329 installed <13>Dec 20 10:22:13 rpmi: python-module-importlib_metadata-0.11-alt1 sisyphus+229324.100.1.1 1557826965 installed <13>Dec 20 10:22:13 rpmi: python-module-path.py-11.5.0-alt2 sisyphus+227926.100.1.1 1555926944 installed <13>Dec 20 10:22:13 rpmi: python-module-pickleshare-0.7.4-alt1 sisyphus+228364.2000.4.1 1556887192 installed <13>Dec 20 10:22:13 rpmi: python-module-atomicwrites-1.3.0-alt1 sisyphus+227473.2000.1.3 1555763467 installed <13>Dec 20 10:22:13 rpmi: python-module-funcsigs-1.0.2-alt2 sisyphus+228355.2600.2.1 1556560236 installed <13>Dec 20 10:22:13 rpmi: python-module-py-1.8.0-alt2 sisyphus+228349.1400.4.1 1556631070 installed <13>Dec 20 10:22:13 rpmi: python-module-yaml-5.1.2-alt1 p9+235990.100.1.1 1565701485 installed <13>Dec 20 10:22:13 rpmi: python-module-xapian-1.4.15-alt1 p9+258827.200.2.1 1601308077 installed <13>Dec 20 10:22:13 rpmi: python-module-sphinxcontrib-websupport-1.0.1-alt5 p9+247680.340.15.1 1585331199 installed <13>Dec 20 10:22:13 rpmi: python-module-alabaster-0.7.6-alt3 sisyphus+228351.700.4.1 1556637370 installed <13>Dec 20 10:22:13 rpmi: python-module-Pygments-2.4.2-alt3 p9+263160.400.4.1 1607939146 installed <13>Dec 20 10:22:14 rpmi: python-module-sphinx-1:1.6.5-alt8 p9+250806.100.2.1 1588178467 installed <13>Dec 20 10:22:14 rpmi: python-module-numpydoc-1:0.7.0-alt1 sisyphus+227506.500.1.2 1555852058 installed <13>Dec 20 10:22:14 rpmi: python-module-prompt_toolkit-1.0.14-alt1.1 sisyphus+228365.1300.4.2 1556671018 installed <13>Dec 20 10:22:14 rpmi: python-module-pluggy-0.11.0-alt1 sisyphus+229116.100.1.1 1557316655 installed <13>Dec 20 10:22:14 rpmi: python-module-pytest-3.10.1-alt5 sisyphus+228366.2000.2.3 1556707871 installed <13>Dec 20 10:22:14 rpmi: libnsl2-devel-1.1.0-alt1_1 1511548749 installed <13>Dec 20 10:22:14 rpmi: python-dev-2.7.16-alt1.M90P.2 p9+260393.40.3.1 1604003681 installed <13>Dec 20 10:22:14 rpmi: python-module-greenlet-0.4.15-alt1 sisyphus+225625.7600.91.1 1555287275 installed <13>Dec 20 10:22:14 rpmi: python-module-gevent-1.4.0-alt2 sisyphus+229109.100.2.1 1557341689 installed <86>Dec 20 10:22:14 groupadd[4069466]: group added to /etc/group: name=sasl, GID=496 <86>Dec 20 10:22:14 groupadd[4069466]: group added to /etc/gshadow: name=sasl <86>Dec 20 10:22:14 groupadd[4069466]: new group: name=sasl, GID=496 <13>Dec 20 10:22:14 rpmi: libsasl2-3-2.1.27-alt2.1 p9+256192.100.1.1 1597226720 installed <13>Dec 20 10:22:14 rpmi: libldap-2.4.54-alt0.M90P.1 p9+260357.200.2.1 1603585215 installed <13>Dec 20 10:22:14 rpmi: libcurl-7.71.0-alt1 p9+253931.100.3.1 1595484167 installed <13>Dec 20 10:22:14 rpmi: python-module-pycurl-7.43.0.6-alt2 p9+258411.60.4.1 1602526698 installed <13>Dec 20 10:22:14 rpmi: python-module-tornado-5.1.1-alt2 sisyphus+225625.16600.91.1 1555292790 installed <13>Dec 20 10:22:15 rpmi: python-module-zmq-17.0.0-alt1 sisyphus+225625.32500.91.1 1555313584 installed <13>Dec 20 10:22:15 rpmi: python-module-jupyter_client-5.1.0-alt2 sisyphus+228359.600.4.3 1556674086 installed <13>Dec 20 10:22:15 rpmi: python-module-matplotlib-cairo-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:15 rpmi: python-module-matplotlib-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:15 rpmi: python-module-matplotlib-gtk3-2.2.3-alt6 p9+255957.1400.47.1 1599840095 installed <13>Dec 20 10:22:15 rpmi: python-module-tornado_xstatic-0.1-alt1.git20140929.2 sisyphus+227533.2000.1.2 1555929523 installed <13>Dec 20 10:22:15 rpmi: python-module-terminado-0.5-alt2.git20150717 sisyphus+227532.1000.1.3 1555940287 installed <13>Dec 20 10:22:16 rpmi: python-module-notebook-5.2.2-alt4 sisyphus+227506.100.1.3 1555869801 installed <13>Dec 20 10:22:16 rpmi: python-module-nbconvert-5.3.1-alt5 sisyphus+228961.100.1.1 1557079124 installed <13>Dec 20 10:22:16 rpmi: python-module-ipyparallel-4.1.0-alt3 sisyphus+227495.500.1.3 1555842732 installed <13>Dec 20 10:22:16 rpmi: ipython-5.5.0-alt3 sisyphus+228348.2000.3.3 1556656641 installed <13>Dec 20 10:22:16 rpmi: python-module-ipykernel-4.6.1-alt4 sisyphus+227495.400.1.3 1555842586 installed <13>Dec 20 10:22:16 rpmi: libnetcdf11-seq-4.4.1.1-alt3 1504883437 installed <13>Dec 20 10:22:16 rpmi: libpq5-12.5-alt0.M90P.1 p9+262868.100.1.1 1607004626 installed <13>Dec 20 10:22:17 rpmi: libgdal-2.2.3-alt3.1.M90P.4 p9+259398.240.6.1 1602696847 installed <13>Dec 20 10:22:19 rpmi: llvm10.0-libs-10.0.0-alt0.1.p9 p9+251708.500.4.1 1589911110 installed <13>Dec 20 10:22:21 rpmi: xorg-dri-swrast-4:20.1.8-alt1 p9+260591.240.12.1 1606213250 installed <13>Dec 20 10:22:21 rpmi: xorg-xvfb-2:1.20.8-alt5 p9+262758.100.1.1 1606836879 installed <13>Dec 20 10:22:21 rpmi: xvfb-run-1.20.3-alt1 sisyphus.219055.100 1547009175 installed <13>Dec 20 10:22:21 rpmi: libgdal-devel-2.2.3-alt3.1.M90P.4 p9+259398.240.6.1 1602696847 installed <13>Dec 20 10:22:21 rpmi: libnumpy-devel-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:22:21 rpmi: python-module-setuptools-1:40.8.0-alt2 sisyphus+229158.200.2.1 1557735221 installed <13>Dec 20 10:22:21 rpmi: python-module-pytest-cov-2.7.1-alt1 sisyphus+228997.200.2.1 1557154037 installed <13>Dec 20 10:22:21 rpmi: python-module-sphinx-devel-1:1.6.5-alt8 p9+250806.100.2.1 1588178467 installed <13>Dec 20 10:22:21 rpmi: python-module-z4r-coveralls-2.9.1-alt3.1 sisyphus+227549.200.1.2 1555986408 installed <13>Dec 20 10:22:21 rpmi: python-module-boto3-1.7.29-alt1 sisyphus+227475.700.1.2 1555714162 installed <13>Dec 20 10:22:21 rpmi: python-module-snuggs-1.4.1-alt3.1 sisyphus+228372.2000.3.2 1556713050 installed <13>Dec 20 10:22:22 rpmi: python-module-Cython-0.29.13-alt1 p9+235498.1200.4.1 1565036655 installed <13>Dec 20 10:22:22 rpmi: python-module-wheel-0.29.0-alt1.1 1517922392 installed <13>Dec 20 10:22:22 rpmi: python-module-packaging-16.8-alt1.qa1 sisyphus+228363.1100.2.2 1556671459 installed <13>Dec 20 10:22:22 rpmi: python-module-click-plugins-1.0.2-alt1.1 sisyphus+228352.1200.3.1 1556556013 installed <13>Dec 20 10:22:22 rpmi: python-module-click-tests-6.7-alt1.1.1 sisyphus+228018.100.1.1 1556023031 installed <13>Dec 20 10:22:22 rpmi: python-module-cligj-0.4.0-alt2.1 1517661667 installed <13>Dec 20 10:22:22 rpmi: python-module-affine-2.0.0.post1-alt2.1 sisyphus+228350.2000.5.1 1556556860 installed <13>Dec 20 10:22:22 rpmi: libnumpy-py3-devel-1:1.15.4-alt5 p9+255957.40.47.1 1599835883 installed <13>Dec 20 10:22:22 rpmi: python3-module-boto3-1.7.29-alt1 sisyphus+227475.700.1.2 1555714162 installed <13>Dec 20 10:22:22 rpmi: gcc-c++-8-alt2 p9+246536.100.3.1 1582643803 installed <13>Dec 20 10:22:22 rpmi: python3-module-snuggs-1.4.1-alt3.1 sisyphus+228372.2000.3.2 1556713050 installed <13>Dec 20 10:22:22 rpmi: python3-module-z4r-coveralls-2.9.1-alt3.1 sisyphus+227549.200.1.2 1555986408 installed <13>Dec 20 10:22:22 rpmi: python3-module-pytest-cov-2.7.1-alt1 sisyphus+228997.200.2.1 1557154037 installed <13>Dec 20 10:22:22 rpmi: libproj-devel-5.2.0-alt1 sisyphus+221643.100.9.2 1550496681 installed <13>Dec 20 10:22:22 rpmi: libproj-nad-5.2.0-alt1 sisyphus+221643.100.9.2 1550496674 installed <13>Dec 20 10:22:22 rpmi: python3-module-Cython-0.29.13-alt1 p9+235498.1200.4.1 1565036655 installed <13>Dec 20 10:22:22 rpmi: python3-module-click-plugins-1.0.2-alt1.1 sisyphus+228352.1200.3.1 1556556013 installed <13>Dec 20 10:22:22 rpmi: python3-module-click-tests-6.7-alt1.1.1 sisyphus+228018.100.1.1 1556023031 installed <13>Dec 20 10:22:22 rpmi: python3-module-cligj-0.4.0-alt2.1 1517661667 installed <13>Dec 20 10:22:22 rpmi: python3-module-wheel-0.29.0-alt1.1 1517922392 installed <13>Dec 20 10:22:22 rpmi: python3-module-affine-2.0.0.post1-alt2.1 sisyphus+228350.2000.5.1 1556556860 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python-module-rasterio-0.36.0-alt2.qa1.nosrc.rpm Installing python-module-rasterio-0.36.0-alt2.qa1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.4663 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python-module-rasterio-0.36.0 + echo 'Source #0 (python-module-rasterio-0.36.0.tar):' Source #0 (python-module-rasterio-0.36.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python-module-rasterio-0.36.0.tar + cd python-module-rasterio-0.36.0 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #1 (rasterio-0.36.0-alt-setup.patch):' Patch #1 (rasterio-0.36.0-alt-setup.patch): + /usr/bin/patch -p1 patching file setup.py + cp -fR . ../python3 + install -pm644 /usr/share/python-sphinx/objects.inv ./ + '[' -e ./conf.py ']' + cp -u /usr/lib/python2.7/site-packages/sphinx/conf.py.template ./conf.py + ln -s ../objects.inv docs/ + install -m644 /usr/src/RPM/SOURCES/conf.py /usr/src/RPM/SOURCES/index.rst docs/ + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.4663 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-rasterio-0.36.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export FFLAGS + /usr/bin/python setup.py build --debug /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_base.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_copy.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_crs.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_drivers.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_err.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_example.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_features.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_fill.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_io.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python2.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/_warp.pyx tree = Parsing.p_module(s, pxd, full_module_name) running build running build_py creating build creating build/lib.linux-i686-2.7 creating build/lib.linux-i686-2.7/rasterio copying ./rasterio/windows.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/warp.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/vfs.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/transform.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/tool.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/sample.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/profiles.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/plot.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/merge.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/mask.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/fill.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/features.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/errors.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/env.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/enums.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/dtypes.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/crs.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/coords.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/compat.py -> build/lib.linux-i686-2.7/rasterio copying ./rasterio/__init__.py -> build/lib.linux-i686-2.7/rasterio creating build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/warp.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/transform.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/stack.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/shapes.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/sample.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/rasterize.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/overview.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/options.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/merge.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/mask.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/main.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/insp.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/info.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/helpers.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/env.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/edit_info.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/convert.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/clip.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/calc.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/bounds.py -> build/lib.linux-i686-2.7/rasterio/rio copying ./rasterio/rio/__init__.py -> build/lib.linux-i686-2.7/rasterio/rio creating build/lib.linux-i686-2.7/rasterio/tools copying ./rasterio/tools/merge.py -> build/lib.linux-i686-2.7/rasterio/tools copying ./rasterio/tools/mask.py -> build/lib.linux-i686-2.7/rasterio/tools copying ./rasterio/tools/__init__.py -> build/lib.linux-i686-2.7/rasterio/tools running egg_info creating rasterio.egg-info writing requirements to rasterio.egg-info/requires.txt writing rasterio.egg-info/PKG-INFO writing top-level names to rasterio.egg-info/top_level.txt writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt writing manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching '*.txt' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' running build_ext building 'rasterio._base' extension creating build/temp.linux-i686-2.7 creating build/temp.linux-i686-2.7/rasterio i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_base.c -o build/temp.linux-i686-2.7/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_base.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_base.so building 'rasterio._io' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_io.c -o build/temp.linux-i686-2.7/rasterio/_io.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_io.c:626: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ rasterio/_io.c: In function '__pyx_pf_8rasterio_3_io_14InMemoryRaster___cinit__': rasterio/_io.c:29886:41: warning: passing argument 2 of 'OSRExportToWkt' from incompatible pointer type [-Wincompatible-pointer-types] (void)(OSRExportToWkt(__pyx_v_osr, (&__pyx_v_srcwkt))); ~^~~~~~~~~~~~~~~~ In file included from rasterio/_io.c:633: /usr/include/gdal/ogr_srs_api.h:523:66: note: expected 'char **' but argument is of type 'const char **' OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** ); ^~~~~~~ rasterio/_io.c:29967:13: warning: passing argument 1 of 'VSIFree' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] CPLFree(__pyx_v_srcwkt); ^~~~~~~~~~~~~~ In file included from /usr/include/gdal/cpl_virtualmem.h:37, from /usr/include/gdal/gdal.h:45, from rasterio/_io.c:628: /usr/include/gdal/cpl_vsi.h:221:26: note: expected 'void *' but argument is of type 'const char *' void CPL_DLL VSIFree( void * ); ^~~~~~ i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_io.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_io.so building 'rasterio._copy' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_copy.c -o build/temp.linux-i686-2.7/rasterio/_copy.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_copy.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_copy.so building 'rasterio._features' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_features.c -o build/temp.linux-i686-2.7/rasterio/_features.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_features.c:626: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_features.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_features.so building 'rasterio._drivers' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_drivers.c -o build/temp.linux-i686-2.7/rasterio/_drivers.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_drivers.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_drivers.so building 'rasterio._warp' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_warp.cpp -o build/temp.linux-i686-2.7/rasterio/_warp.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_warp.cpp:644: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-g++ -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_warp.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_warp.so building 'rasterio._fill' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_fill.cpp -o build/temp.linux-i686-2.7/rasterio/_fill.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_fill.cpp:641: /usr/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-g++ -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_fill.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_fill.so building 'rasterio._err' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_err.c -o build/temp.linux-i686-2.7/rasterio/_err.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_err.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_err.so building 'rasterio._example' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_example.c -o build/temp.linux-i686-2.7/rasterio/_example.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_example.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_example.so building 'rasterio._crs' extension i586-alt-linux-gcc -pthread -DNDEBUG -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -fwrapv -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python2.7/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python2.7 -c rasterio/_crs.c -o build/temp.linux-i686-2.7/rasterio/_crs.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -L/usr/lib/nsl -lnsl -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-2.7/rasterio/_crs.o -lgdal -lpython2.7 -o build/lib.linux-i686-2.7/rasterio/_crs.so + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-rasterio-0.36.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export FFLAGS + /usr/bin/python3 setup.py build --debug running build running build_py creating build creating build/lib.linux-i686-3.7 creating build/lib.linux-i686-3.7/rasterio copying ./rasterio/windows.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/warp.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/vfs.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/transform.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/tool.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/sample.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/profiles.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/plot.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/merge.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/mask.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/fill.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/features.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/errors.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/env.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/enums.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/dtypes.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/crs.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/coords.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/compat.py -> build/lib.linux-i686-3.7/rasterio copying ./rasterio/__init__.py -> build/lib.linux-i686-3.7/rasterio creating build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/warp.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/transform.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/stack.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/shapes.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/sample.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/rasterize.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/overview.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/options.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/merge.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/mask.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/main.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/insp.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/info.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/helpers.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/env.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/edit_info.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/convert.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/clip.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/calc.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/bounds.py -> build/lib.linux-i686-3.7/rasterio/rio copying ./rasterio/rio/__init__.py -> build/lib.linux-i686-3.7/rasterio/rio creating build/lib.linux-i686-3.7/rasterio/tools copying ./rasterio/tools/merge.py -> build/lib.linux-i686-3.7/rasterio/tools copying ./rasterio/tools/mask.py -> build/lib.linux-i686-3.7/rasterio/tools copying ./rasterio/tools/__init__.py -> build/lib.linux-i686-3.7/rasterio/tools running egg_info creating rasterio.egg-info writing rasterio.egg-info/PKG-INFO writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt writing requirements to rasterio.egg-info/requires.txt writing top-level names to rasterio.egg-info/top_level.txt writing manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_base.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_copy.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_crs.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_drivers.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_err.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_example.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_features.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_fill.pyx tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_io.pxd tree = Parsing.p_module(s, pxd, full_module_name) /usr/lib/python3/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/src/RPM/BUILD/python3/rasterio/_warp.pyx tree = Parsing.p_module(s, pxd, full_module_name) warning: no previously-included files found matching '*.txt' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' running build_ext building 'rasterio._base' extension creating build/temp.linux-i686-3.7 creating build/temp.linux-i686-3.7/rasterio i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_base.c -o build/temp.linux-i686-3.7/rasterio/_base.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_base.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_base.cpython-37m.so building 'rasterio._io' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_io.c -o build/temp.linux-i686-3.7/rasterio/_io.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_io.c:626: /usr/lib/python3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ rasterio/_io.c: In function ‘__pyx_pf_8rasterio_3_io_14InMemoryRaster___cinit__’: rasterio/_io.c:29886:41: warning: passing argument 2 of ‘OSRExportToWkt’ from incompatible pointer type [-Wincompatible-pointer-types] (void)(OSRExportToWkt(__pyx_v_osr, (&__pyx_v_srcwkt))); ~^~~~~~~~~~~~~~~~ In file included from rasterio/_io.c:633: /usr/include/gdal/ogr_srs_api.h:523:66: note: expected ‘char **’ but argument is of type ‘const char **’ OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** ); ^~~~~~~ rasterio/_io.c:29967:13: warning: passing argument 1 of ‘VSIFree’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] CPLFree(__pyx_v_srcwkt); ^~~~~~~~~~~~~~ In file included from /usr/include/gdal/cpl_virtualmem.h:37, from /usr/include/gdal/gdal.h:45, from rasterio/_io.c:628: /usr/include/gdal/cpl_vsi.h:221:26: note: expected ‘void *’ but argument is of type ‘const char *’ void CPL_DLL VSIFree( void * ); ^~~~~~ i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_io.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_io.cpython-37m.so building 'rasterio._copy' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_copy.c -o build/temp.linux-i686-3.7/rasterio/_copy.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_copy.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_copy.cpython-37m.so building 'rasterio._features' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_features.c -o build/temp.linux-i686-3.7/rasterio/_features.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_features.c:626: /usr/lib/python3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_features.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_features.cpython-37m.so building 'rasterio._drivers' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_drivers.c -o build/temp.linux-i686-3.7/rasterio/_drivers.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_drivers.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_drivers.cpython-37m.so building 'rasterio._warp' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_warp.cpp -o build/temp.linux-i686-3.7/rasterio/_warp.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_warp.cpp:644: /usr/lib/python3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-g++ -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_warp.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_warp.cpython-37m.so building 'rasterio._fill' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_fill.cpp -o build/temp.linux-i686-3.7/rasterio/_fill.o -Wno-unused-parameter -Wno-unused-function In file included from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarraytypes.h:1821, from /usr/lib/python3/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python3/site-packages/numpy/core/include/numpy/arrayobject.h:4, from rasterio/_fill.cpp:641: /usr/lib/python3/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^~~~~~~ i586-alt-linux-g++ -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_fill.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_fill.cpython-37m.so building 'rasterio._err' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_err.c -o build/temp.linux-i686-3.7/rasterio/_err.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_err.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_err.cpython-37m.so building 'rasterio._example' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_example.c -o build/temp.linux-i686-3.7/rasterio/_example.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_example.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_example.cpython-37m.so building 'rasterio._crs' extension i586-alt-linux-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -pipe -frecord-gcc-switches -Wall -g -O3 -march=i586 -mtune=generic -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -fPIC -g -I/usr/lib/python3/site-packages/numpy/core/include -I/usr/include/gdal -I/usr/include/python3.7m -c rasterio/_crs.c -o build/temp.linux-i686-3.7/rasterio/_crs.o -Wno-unused-parameter -Wno-unused-function i586-alt-linux-gcc -pthread -shared -pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing -g build/temp.linux-i686-3.7/rasterio/_crs.o -L/usr/lib -lgdal -lpython3.7m -o build/lib.linux-i686-3.7/rasterio/_crs.cpython-37m.so + popd ~/RPM/BUILD/python-module-rasterio-0.36.0 + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.15547 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python-module-rasterio-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python-module-rasterio-buildroot + cd python-module-rasterio-0.36.0 + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-rasterio-0.36.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export FFLAGS + /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python-module-rasterio-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-rasterio-buildroot creating /usr/src/tmp/python-module-rasterio-buildroot/usr creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3 creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_crs.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_example.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_err.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_fill.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_warp.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_drivers.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_features.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_copy.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_io.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/_base.cpython-37m.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools copying build/lib.linux-i686-3.7/rasterio/tools/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools copying build/lib.linux-i686-3.7/rasterio/tools/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools copying build/lib.linux-i686-3.7/rasterio/tools/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/bounds.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/calc.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/clip.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/convert.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/edit_info.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/env.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/helpers.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/info.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/insp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/main.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/options.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/overview.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/rasterize.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/sample.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/shapes.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/stack.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/transform.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/rio/warp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio copying build/lib.linux-i686-3.7/rasterio/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/compat.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/coords.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/crs.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/dtypes.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/enums.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/env.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/errors.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/features.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/fill.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/plot.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/profiles.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/sample.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/tool.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/transform.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/vfs.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/warp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio copying build/lib.linux-i686-3.7/rasterio/windows.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/mask.py to mask.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/merge.py to merge.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py to bounds.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py to calc.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py to clip.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py to convert.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py to edit_info.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/env.py to env.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/helpers.py to helpers.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/info.py to info.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py to insp.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py to main.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py to mask.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py to merge.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/options.py to options.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/overview.py to overview.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py to rasterize.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/sample.py to sample.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py to shapes.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py to stack.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/transform.py to transform.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py to warp.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py to __init__.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py to compat.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/coords.py to coords.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/crs.py to crs.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py to dtypes.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/enums.py to enums.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/env.py to env.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/errors.py to errors.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/features.py to features.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/fill.py to fill.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/mask.py to mask.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/merge.py to merge.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/plot.py to plot.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/profiles.py to profiles.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/sample.py to sample.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py to tool.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/transform.py to transform.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/vfs.py to vfs.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/warp.py to warp.cpython-37.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py to windows.cpython-37.pyc running install_egg_info running egg_info writing rasterio.egg-info/PKG-INFO writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt writing requirements to rasterio.egg-info/requires.txt writing top-level names to rasterio.egg-info/top_level.txt reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' Copying rasterio.egg-info to /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio-0.36.0-py3.7.egg-info running install_scripts Installing rio script to /usr/src/tmp/python-module-rasterio-buildroot/usr/bin + popd ~/RPM/BUILD/python-module-rasterio-0.36.0 + pushd /usr/src/tmp/python-module-rasterio-buildroot/usr/bin ~/tmp/python-module-rasterio-buildroot/usr/bin ~/RPM/BUILD/python-module-rasterio-0.36.0 ++ ls + for i in $(ls) + mv rio rio.py3 + popd ~/RPM/BUILD/python-module-rasterio-0.36.0 + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CFLAGS + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export CXXFLAGS + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic -fno-strict-aliasing' + export FFLAGS + /usr/bin/python setup.py install --skip-build --root=/usr/src/tmp/python-module-rasterio-buildroot --force running install running install_lib creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7 creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_crs.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_example.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_err.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_fill.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_warp.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_drivers.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_features.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_copy.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_io.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/_base.so -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools copying build/lib.linux-i686-2.7/rasterio/tools/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools copying build/lib.linux-i686-2.7/rasterio/tools/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools copying build/lib.linux-i686-2.7/rasterio/tools/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools creating /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/bounds.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/calc.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/clip.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/convert.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/edit_info.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/env.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/helpers.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/info.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/insp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/main.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/options.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/overview.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/rasterize.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/sample.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/shapes.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/stack.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/transform.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/rio/warp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio copying build/lib.linux-i686-2.7/rasterio/__init__.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/compat.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/coords.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/crs.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/dtypes.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/enums.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/env.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/errors.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/features.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/fill.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/mask.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/merge.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/plot.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/profiles.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/sample.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/tool.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/transform.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/vfs.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/warp.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio copying build/lib.linux-i686-2.7/rasterio/windows.py -> /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.py to mask.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.py to merge.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py to bounds.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py to calc.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py to clip.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py to convert.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py to edit_info.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/env.py to env.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/helpers.py to helpers.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.py to info.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py to insp.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py to main.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py to mask.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py to merge.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.py to options.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py to overview.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py to rasterize.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/sample.py to sample.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py to shapes.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py to stack.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.py to transform.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py to warp.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py to __init__.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py to compat.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/coords.py to coords.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py to crs.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py to dtypes.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/enums.py to enums.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py to env.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/errors.py to errors.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py to features.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py to fill.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.py to mask.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.py to merge.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py to plot.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/profiles.py to profiles.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/sample.py to sample.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py to tool.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/transform.py to transform.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/vfs.py to vfs.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py to warp.pyc byte-compiling /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py to windows.pyc running install_egg_info running egg_info writing requirements to rasterio.egg-info/requires.txt writing rasterio.egg-info/PKG-INFO writing top-level names to rasterio.egg-info/top_level.txt writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' Copying rasterio.egg-info to /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio-0.36.0-py2.7.egg-info running install_scripts Installing rio script to /usr/src/tmp/python-module-rasterio-buildroot/usr/bin + export PYTHONPATH=/usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages + PYTHONPATH=/usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages + pushd docs ~/RPM/BUILD/python-module-rasterio-0.36.0/docs ~/RPM/BUILD/python-module-rasterio-0.36.0 + sphinx-build -b pickle -d build/doctrees . build/pickle Running Sphinx v1.6.5 making output directory... loading pickled environment... not yet created building [mo]: targets for 0 po files that are out of date building [pickle]: targets for 58 source files that are out of date updating environment: 58 added, 0 changed, 0 removed reading sources... [ 1%] api_docs /usr/lib/python2.7/site-packages/sphinx/environment/__init__.py:686: RemovedInSphinx17Warning: html_use_smartypants option is deprecated. Smart quotes are on by default; if you want to disable or customize them, use the smart_quotes option in docutils.conf. RemovedInSphinx17Warning) reading sources... [ 3%] calc reading sources... [ 5%] cli reading sources... [ 6%] color reading sources... [ 8%] community reading sources... [ 10%] concurrency reading sources... [ 12%] configuration reading sources... [ 13%] cookbook reading sources... [ 15%] data_model reading sources... [ 17%] developers reading sources... [ 18%] errors reading sources... [ 20%] features reading sources... [ 22%] fillnodata reading sources... [ 24%] georeferencing reading sources... [ 25%] image_options reading sources... [ 27%] image_processing reading sources... [ 29%] index reading sources... [ 31%] installation reading sources... [ 32%] masking-by-shapefile reading sources... [ 34%] masks reading sources... [ 36%] modules reading sources... [ 37%] nodata reading sources... [ 39%] osgeo_gdal_migration reading sources... [ 41%] overviews reading sources... [ 43%] plotting reading sources... [ 44%] python_manual reading sources... [ 46%] rasterio reading sources... [ 48%] rasterio.aws reading sources... [ 50%] rasterio.coords reading sources... [ 51%] rasterio.crs reading sources... [ 53%] rasterio.dtypes reading sources... [ 55%] rasterio.enums reading sources... [ 56%] rasterio.errors reading sources... [ 58%] rasterio.features reading sources... [ 60%] rasterio.fill reading sources... [ 62%] rasterio.mask reading sources... [ 63%] rasterio.merge reading sources... [ 65%] rasterio.plot reading sources... [ 67%] rasterio.profiles reading sources... [ 68%] rasterio.sample reading sources... [ 70%] rasterio.tool reading sources... [ 72%] rasterio.tools reading sources... [ 74%] rasterio.tools.mask reading sources... [ 75%] rasterio.tools.merge reading sources... [ 77%] rasterio.transform reading sources... [ 79%] rasterio.vfs reading sources... [ 81%] rasterio.warnings reading sources... [ 82%] rasterio.warp reading sources... [ 84%] rasterio.windows reading sources... [ 86%] reading reading sources... [ 87%] reproject reading sources... [ 89%] resampling reading sources... [ 91%] tags reading sources... [ 93%] topics reading sources... [ 94%] vsi reading sources... [ 96%] windowed-rw reading sources... [ 98%] working_with_datasets reading sources... [100%] writing /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/api_docs.rst: WARNING: default role autolink not found rasterio.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio :members: :undoc-members: :show-inheritance: rasterio.rst:40: WARNING: Unknown directive type "autoclass". .. autoclass:: rasterio._io.RasterReader :inherited-members: rasterio.rst:43: WARNING: Unknown directive type "autoclass". .. autoclass:: rasterio._io.RasterUpdater :inherited-members: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/calc.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/cli.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/cli.rst:5: WARNING: Unknown directive type "todo". .. todo:: Introduce the command line interface main concepts, when you should and should not use the command line, Overview of the general design pholosophy, /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/color.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/community.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/community.rst:5: WARNING: Unknown directive type "todo". .. todo:: This is just a placeholder page to explain the use and development of rasterio. If you have a project that uses rasterio, please contact us at https://github.com/mapbox/rasterio/issues /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/concurrency.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/configuration.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/configuration.rst:4: WARNING: Unknown directive type "todo". .. todo:: Why to use Env() instead of drivers(). When to use with rasterio.Env() instead of a bare rasterio.open() /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/cookbook.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/cookbook.rst:5: WARNING: Unknown directive type "todo". .. todo:: Fill out examples of using rasterio to handle tasks from typical GIS and remote sensing workflows. /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/data_model.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/data_model.rst:4: WARNING: Unknown directive type "todo". .. todo:: Datasets, Bands, Ndarrays Design Decisions Relationship to GDAL /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/developers.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/developers.rst:4: WARNING: Unknown directive type "todo". .. todo:: Everything developers need to know to get a dev environment running, run tests, modify code and submit a successful PR. Currently most of this information lives on the wiki. * https://github.com/mapbox/rasterio/wiki/Development-Guide * https://github.com/mapbox/rasterio/wiki/Exposing-GDAL-Functionality * https://github.com/mapbox/rasterio/wiki/Cython-and-GDAL The long term goal is to consolidate into this document. /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/errors.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/errors.rst:4: WARNING: Unknown directive type "todo". .. todo:: error enums, context managers, converting GDAL errors to python exceptions /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/features.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/fillnodata.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/fillnodata.rst:4: WARNING: Unknown directive type "todo". .. todo:: fillnodata() /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/georeferencing.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/image_options.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/image_processing.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'colormaps' /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'datasets' /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'options' /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/installation.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/masking-by-shapefile.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/masks.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/modules.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/nodata.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/nodata.rst:4: WARNING: Unknown directive type "todo". .. todo:: * nodata value * alpha band /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/osgeo_gdal_migration.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/osgeo_gdal_migration.rst:44: WARNING: Unknown directive type "todo". .. todo:: * global state makes osgeo.gdal unsafe with other python modules * hidden behavior with env vars vs explicit GDALEnv * vsi vs URIs * limited scope of rasterio, what does osgeo.gdal do that rasterio can't * installation issues * crs handling * examples of unsafe memory situations * rio and the relationship to gdal CLI tools /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/osgeo_gdal_migration.rst:58: WARNING: Unknown directive type "todo". .. todo:: Practical tips and examples of porting common use cases in both python and cli. Some overlap with the cookbook here, so probably best to reference it when appropriate. /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/overviews.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/overviews.rst:4: WARNING: Unknown directive type "todo". .. todo:: * "sidecar" files vs. internal * supported formats /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/plotting.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/plotting.rst:4: WARNING: Unknown directive type "todo". .. todo:: * alt color ramps * labeling axes with coordinates * multiplots * RGB /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/python_manual.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/python_manual.rst:7: WARNING: Unknown directive type "todo". .. todo:: What does it do, narrative examples What it does NOT do For command line tools look to CLI users manual /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.rst:40: WARNING: Unknown directive type "autoclass". .. autoclass:: rasterio._io.RasterReader :inherited-members: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.rst:43: WARNING: Unknown directive type "autoclass". .. autoclass:: rasterio._io.RasterUpdater :inherited-members: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.aws.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.aws.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.aws :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.coords.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.coords.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.coords :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.crs.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.crs.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.crs :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.dtypes.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.dtypes.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.dtypes :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.enums.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.enums.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.enums :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.errors.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.errors.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.errors :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.features.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.features.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.features :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.fill.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.fill.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.fill :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.mask.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.mask.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.mask :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.merge.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.merge.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.merge :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.plot.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.plot.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.plot :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.profiles.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.profiles.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.profiles :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.sample.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.sample.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.sample :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tool.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tool.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.tool :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.tools :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.mask.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.mask.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.tools.mask :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.merge.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.merge.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.tools.merge :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.transform.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.transform.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.transform :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.vfs.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.vfs.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.vfs :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.warnings.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.warnings.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.warnings :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.warp.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.warp.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.warp :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.windows.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.windows.rst:4: WARNING: Unknown directive type "automodule". .. automodule:: rasterio.windows :members: :undoc-members: :show-inheritance: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/reading.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/reading.rst:4: WARNING: Unknown directive type "todo". .. todo:: * use of context manager * ndarray shape is (band, cols, rows) * Discuss and/or link to topics - supported formats, drivers - vsi - tags - profile - crs - transforms - dtypes - block windows /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/reproject.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/resampling.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/tags.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/topics.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/vsi.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/vsi.rst:4: WARNING: Unknown directive type "todo". .. todo:: Support for URIs describing zip, s3, etc resources. Relationship to GDAL vsicurl et al. /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/windowed-rw.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/working_with_datasets.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/working_with_datasets.rst:4: WARNING: Unknown directive type "todo". .. todo:: * working with ndarrays /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/writing.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/writing.rst:4: WARNING: Unknown directive type "todo". .. todo:: * appending to existing data * context manager * write 3d vs write 2d * document issues with writing compressed files (per #77) * discuss and refer to topics * creation options * transforms * dtypes * block windows looking for now-outdated files... none found pickling environment... done checking consistency... /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/api_docs.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/community.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/configuration.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/masking-by-shapefile.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/modules.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/python_manual.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tool.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.rst: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 1%] api_docs writing output... [ 3%] calc writing output... [ 5%] cli writing output... [ 6%] color writing output... [ 8%] community writing output... [ 10%] concurrency writing output... [ 12%] configuration writing output... [ 13%] cookbook writing output... [ 15%] data_model writing output... [ 17%] developers writing output... [ 18%] errors writing output... [ 20%] features writing output... [ 22%] fillnodata writing output... [ 24%] georeferencing writing output... [ 25%] image_options writing output... [ 27%] image_processing writing output... [ 29%] index writing output... [ 31%] installation writing output... [ 32%] masking-by-shapefile writing output... [ 34%] masks writing output... [ 36%] modules writing output... [ 37%] nodata writing output... [ 39%] osgeo_gdal_migration writing output... [ 41%] overviews writing output... [ 43%] plotting writing output... [ 44%] python_manual writing output... [ 46%] rasterio writing output... [ 48%] rasterio.aws writing output... [ 50%] rasterio.coords writing output... [ 51%] rasterio.crs writing output... [ 53%] rasterio.dtypes writing output... [ 55%] rasterio.enums writing output... [ 56%] rasterio.errors writing output... [ 58%] rasterio.features writing output... [ 60%] rasterio.fill writing output... [ 62%] rasterio.mask writing output... [ 63%] rasterio.merge writing output... [ 65%] rasterio.plot writing output... [ 67%] rasterio.profiles writing output... [ 68%] rasterio.sample writing output... [ 70%] rasterio.tool writing output... [ 72%] rasterio.tools writing output... [ 74%] rasterio.tools.mask writing output... [ 75%] rasterio.tools.merge writing output... [ 77%] rasterio.transform writing output... [ 79%] rasterio.vfs writing output... [ 81%] rasterio.warnings writing output... [ 82%] rasterio.warp writing output... [ 84%] rasterio.windows writing output... [ 86%] reading writing output... [ 87%] reproject writing output... [ 89%] resampling writing output... [ 91%] tags writing output... [ 93%] topics writing output... [ 94%] vsi writing output... [ 96%] windowed-rw writing output... [ 98%] working_with_datasets writing output... [100%] writing generating indices... genindex writing additional pages... search opensearch copying images... [ 8%] img/mask_bands_rgb.png copying images... [ 16%] img/mask_sieved.png copying images... [ 25%] img/filtered.jpg copying images... [ 33%] img/RGB.byte.jpg copying images... [ 41%] img/green_box_kmz.png copying images... [ 50%] img/mask_conj.png copying images... [ 58%] img/saturation.jpg copying images... [ 66%] img/box_rgb.png copying images... [ 75%] img/mask_band.png copying images... [ 83%] img/reproject.jpg copying images... [ 91%] img/box_masked_rgb.png copying images... [100%] img/world.jpg copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 116 warnings. + sphinx-build -b html -d build/doctrees . build/html Running Sphinx v1.6.5 making output directory... loading pickled environment... done building [mo]: targets for 0 po files that are out of date building [html]: targets for 58 source files that are out of date updating environment: 0 added, 1 changed, 0 removed reading sources... [100%] index /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst: WARNING: default role autolink not found /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'colormaps' /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'datasets' /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/index.rst:2: WARNING: toctree contains reference to nonexisting document u'options' looking for now-outdated files... none found pickling environment... done checking consistency... /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/api_docs.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/community.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/configuration.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/masking-by-shapefile.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/modules.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/python_manual.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tool.rst: WARNING: document isn't included in any toctree /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/rasterio.tools.rst: WARNING: document isn't included in any toctree done preparing documents... done writing output... [ 1%] api_docs writing output... [ 3%] calc writing output... [ 5%] cli writing output... [ 6%] color writing output... [ 8%] community writing output... [ 10%] concurrency writing output... [ 12%] configuration writing output... [ 13%] cookbook writing output... [ 15%] data_model writing output... [ 17%] developers writing output... [ 18%] errors writing output... [ 20%] features writing output... [ 22%] fillnodata writing output... [ 24%] georeferencing writing output... [ 25%] image_options writing output... [ 27%] image_processing writing output... [ 29%] index writing output... [ 31%] installation writing output... [ 32%] masking-by-shapefile writing output... [ 34%] masks writing output... [ 36%] modules writing output... [ 37%] nodata writing output... [ 39%] osgeo_gdal_migration writing output... [ 41%] overviews writing output... [ 43%] plotting writing output... [ 44%] python_manual writing output... [ 46%] rasterio writing output... [ 48%] rasterio.aws writing output... [ 50%] rasterio.coords writing output... [ 51%] rasterio.crs writing output... [ 53%] rasterio.dtypes writing output... [ 55%] rasterio.enums writing output... [ 56%] rasterio.errors writing output... [ 58%] rasterio.features writing output... [ 60%] rasterio.fill writing output... [ 62%] rasterio.mask writing output... [ 63%] rasterio.merge writing output... [ 65%] rasterio.plot writing output... [ 67%] rasterio.profiles writing output... [ 68%] rasterio.sample writing output... [ 70%] rasterio.tool writing output... [ 72%] rasterio.tools writing output... [ 74%] rasterio.tools.mask writing output... [ 75%] rasterio.tools.merge writing output... [ 77%] rasterio.transform writing output... [ 79%] rasterio.vfs writing output... [ 81%] rasterio.warnings writing output... [ 82%] rasterio.warp writing output... [ 84%] rasterio.windows writing output... [ 86%] reading writing output... [ 87%] reproject writing output... [ 89%] resampling writing output... [ 91%] tags writing output... [ 93%] topics writing output... [ 94%] vsi writing output... [ 96%] windowed-rw writing output... [ 98%] working_with_datasets writing output... [100%] writing generating indices... genindex writing additional pages... search opensearch copying images... [ 8%] img/mask_bands_rgb.png copying images... [ 16%] img/mask_sieved.png copying images... [ 25%] img/filtered.jpg copying images... [ 33%] img/RGB.byte.jpg copying images... [ 41%] img/green_box_kmz.png copying images... [ 50%] img/mask_conj.png copying images... [ 58%] img/saturation.jpg copying images... [ 66%] img/box_rgb.png copying images... [ 75%] img/mask_band.png copying images... [ 83%] img/reproject.jpg copying images... [ 91%] img/box_masked_rgb.png copying images... [100%] img/world.jpg copying static files... WARNING: html_static_path entry u'/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/docs/_static' does not exist done copying extra files... done dumping search index in English (code: en) ... done dumping object inventory... done build succeeded, 13 warnings. + popd ~/RPM/BUILD/python-module-rasterio-0.36.0 + cp -fR docs/build/pickle /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/ + rm -f requirements-dev.txt requirements.txt + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python-module-rasterio-buildroot (auto) mode of './usr/lib/python2.7/site-packages/rasterio/_base.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_io.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_copy.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_features.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_drivers.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_warp.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_fill.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_err.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_example.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python2.7/site-packages/rasterio/_crs.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_base.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_io.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_copy.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_features.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_drivers.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_warp.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_fill.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_err.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_example.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) mode of './usr/lib/python3/site-packages/rasterio/_crs.cpython-37m.so' changed from 0755 (rwxr-xr-x) to 0644 (rw-r--r--) Verifying and fixing files in /usr/src/tmp/python-module-rasterio-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/python-module-rasterio-buildroot/ (default) Compressing files in /usr/src/tmp/python-module-rasterio-buildroot (auto) Adjusting library links in /usr/src/tmp/python-module-rasterio-buildroot ./usr/lib: Verifying ELF objects in /usr/src/tmp/python-module-rasterio-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-rasterio-buildroot using /usr/bin/python unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/__init__.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/env.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/helpers.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/sample.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.pyc compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/helpers.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/__init__.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.pyc compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.py unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/coords.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/enums.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/errors.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/profiles.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/sample.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/transform.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/vfs.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.pyc compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/coords.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/enums.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/errors.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/profiles.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/vfs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py Bytecompiling python modules with optimization in /usr/src/tmp/python-module-rasterio-buildroot using /usr/bin/python -O compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/helpers.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/coords.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/enums.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/errors.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/profiles.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/vfs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py Bytecompiling python3 modules in /usr/src/tmp/python-module-rasterio-buildroot using /usr/bin/python3 unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/compat.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/coords.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/crs.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/dtypes.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/enums.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/env.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/errors.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/features.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/fill.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/mask.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/merge.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/plot.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/profiles.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/sample.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/tool.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/transform.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/vfs.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/warp.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__pycache__/windows.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/bounds.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/calc.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/clip.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/convert.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/edit_info.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/env.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/helpers.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/info.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/insp.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/main.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/mask.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/merge.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/options.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/overview.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/rasterize.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/sample.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/shapes.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/stack.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/transform.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__pycache__/warp.cpython-37.pyc compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/helpers.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/options.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/overview.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__pycache__/__init__.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__pycache__/mask.cpython-37.pyc unlink /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__pycache__/merge.cpython-37.pyc compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/coords.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/crs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/enums.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/errors.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/features.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/fill.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/plot.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/profiles.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/vfs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python-module-rasterio-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/helpers.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/options.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/overview.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/coords.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/crs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/enums.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/errors.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/features.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/fill.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/plot.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/profiles.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/vfs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python-module-rasterio-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/helpers.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/info.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/options.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/overview.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/coords.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/crs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/enums.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/env.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/errors.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/features.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/fill.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/mask.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/merge.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/plot.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/profiles.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/sample.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/transform.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/vfs.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/warp.py compile /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/rasterio/__pycache__/windows.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/windows.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/warp.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/warp.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/vfs.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/vfs.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/transform.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/transform.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/tool.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/tool.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/sample.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/sample.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/sample.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/sample.cpython-37.opt-1.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/profiles.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/profiles.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/plot.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/plot.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/merge.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/merge.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/mask.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/mask.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/fill.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/fill.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/features.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/features.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/errors.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/errors.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/env.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/env.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/enums.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/enums.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/dtypes.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/dtypes.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/crs.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/crs.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/coords.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/coords.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/compat.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/compat.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/warp.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/warp.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/transform.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/transform.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/stack.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/stack.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/shapes.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/shapes.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/sample.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/sample.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/rasterize.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/rasterize.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/overview.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/overview.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/options.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/options.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/merge.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/merge.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/mask.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/mask.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/main.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/main.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/insp.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/insp.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/info.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/info.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/helpers.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/helpers.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/env.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/env.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/edit_info.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/edit_info.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/convert.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/convert.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/clip.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/clip.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/calc.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/calc.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/bounds.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/bounds.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/rio/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/rio/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/tools/__pycache__/merge.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/tools/__pycache__/merge.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/tools/__pycache__/mask.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/tools/__pycache__/mask.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/tools/__pycache__/__init__.cpython-37.opt-1.pyc' => './usr/lib/python3/site-packages/rasterio/tools/__pycache__/__init__.cpython-37.pyc' './usr/lib/python3/site-packages/rasterio/tools/__pycache__/__init__.cpython-37.opt-2.pyc' => './usr/lib/python3/site-packages/rasterio/tools/__pycache__/__init__.cpython-37.opt-1.pyc' Hardlinking identical .pyc and .pyo files './usr/lib/python2.7/site-packages/rasterio/windows.pyo' => './usr/lib/python2.7/site-packages/rasterio/windows.pyc' './usr/lib/python2.7/site-packages/rasterio/warp.pyo' => './usr/lib/python2.7/site-packages/rasterio/warp.pyc' './usr/lib/python2.7/site-packages/rasterio/vfs.pyo' => './usr/lib/python2.7/site-packages/rasterio/vfs.pyc' './usr/lib/python2.7/site-packages/rasterio/transform.pyo' => './usr/lib/python2.7/site-packages/rasterio/transform.pyc' './usr/lib/python2.7/site-packages/rasterio/tool.pyo' => './usr/lib/python2.7/site-packages/rasterio/tool.pyc' './usr/lib/python2.7/site-packages/rasterio/sample.pyo' => './usr/lib/python2.7/site-packages/rasterio/sample.pyc' './usr/lib/python2.7/site-packages/rasterio/profiles.pyo' => './usr/lib/python2.7/site-packages/rasterio/profiles.pyc' './usr/lib/python2.7/site-packages/rasterio/plot.pyo' => './usr/lib/python2.7/site-packages/rasterio/plot.pyc' './usr/lib/python2.7/site-packages/rasterio/merge.pyo' => './usr/lib/python2.7/site-packages/rasterio/merge.pyc' './usr/lib/python2.7/site-packages/rasterio/mask.pyo' => './usr/lib/python2.7/site-packages/rasterio/mask.pyc' './usr/lib/python2.7/site-packages/rasterio/fill.pyo' => './usr/lib/python2.7/site-packages/rasterio/fill.pyc' './usr/lib/python2.7/site-packages/rasterio/features.pyo' => './usr/lib/python2.7/site-packages/rasterio/features.pyc' './usr/lib/python2.7/site-packages/rasterio/errors.pyo' => './usr/lib/python2.7/site-packages/rasterio/errors.pyc' './usr/lib/python2.7/site-packages/rasterio/env.pyo' => './usr/lib/python2.7/site-packages/rasterio/env.pyc' './usr/lib/python2.7/site-packages/rasterio/enums.pyo' => './usr/lib/python2.7/site-packages/rasterio/enums.pyc' './usr/lib/python2.7/site-packages/rasterio/dtypes.pyo' => './usr/lib/python2.7/site-packages/rasterio/dtypes.pyc' './usr/lib/python2.7/site-packages/rasterio/crs.pyo' => './usr/lib/python2.7/site-packages/rasterio/crs.pyc' './usr/lib/python2.7/site-packages/rasterio/coords.pyo' => './usr/lib/python2.7/site-packages/rasterio/coords.pyc' './usr/lib/python2.7/site-packages/rasterio/compat.pyo' => './usr/lib/python2.7/site-packages/rasterio/compat.pyc' './usr/lib/python2.7/site-packages/rasterio/__init__.pyo' => './usr/lib/python2.7/site-packages/rasterio/__init__.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/warp.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/warp.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/transform.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/transform.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/stack.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/stack.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/shapes.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/shapes.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/sample.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/sample.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/rasterize.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/rasterize.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/overview.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/overview.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/options.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/options.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/merge.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/merge.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/mask.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/mask.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/main.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/main.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/insp.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/insp.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/info.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/info.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/helpers.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/helpers.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/env.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/env.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/edit_info.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/edit_info.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/convert.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/convert.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/clip.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/clip.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/calc.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/calc.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/bounds.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/bounds.pyc' './usr/lib/python2.7/site-packages/rasterio/rio/__init__.pyo' => './usr/lib/python2.7/site-packages/rasterio/rio/__init__.pyc' './usr/lib/python2.7/site-packages/rasterio/tools/merge.pyo' => './usr/lib/python2.7/site-packages/rasterio/tools/merge.pyc' './usr/lib/python2.7/site-packages/rasterio/tools/mask.pyo' => './usr/lib/python2.7/site-packages/rasterio/tools/mask.pyc' './usr/lib/python2.7/site-packages/rasterio/tools/__init__.pyo' => './usr/lib/python2.7/site-packages/rasterio/tools/__init__.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.31826 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-rasterio-0.36.0 + xvfb-run python setup.py test _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Unsupported high keycode 372 for name ignored > X11 cannot support keycodes above 255. > This warning only shows for the first high keycode. Errors from xkbcomp are not fatal to the X server running test running egg_info deleting rasterio.egg-info/requires.txt writing rasterio.egg-info/PKG-INFO writing top-level names to rasterio.egg-info/top_level.txt writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-i686-2.7/rasterio/_base.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_io.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_copy.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_features.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_drivers.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_warp.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_fill.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_err.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_example.so -> ./rasterio copying build/lib.linux-i686-2.7/rasterio/_crs.so -> ./rasterio /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() test_write_colormap_revolving_door (tests.test_revolvingdoor.RevolvingDoorTest) ... WARNING:rasterio._gdal:CPLE_AppDefined in Cannot find pcs.csv WARNING:rasterio._gdal:CPLE_AppDefined in Cannot find datum.csv or gdal_datum.csv WARNING:rasterio._gdal:CPLE_AppDefined in Cannot find ellipsoid.csv WARNING:rasterio._gdal:CPLE_AppDefined in Cannot find prime_meridian.csv /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ok test_context (tests.test_read.ReaderContextTest) ... ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ERROR test_derived_spatial (tests.test_read.ReaderContextTest) ... ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ERROR test_read_basic (tests.test_read.ReaderContextTest) ... ok test_read_indexes (tests.test_read.ReaderContextTest) ... ok test_read_nan_nodata (tests.test_read.ReaderContextTest) ... /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:250: RuntimeWarning: invalid value encountered in greater a = s.read(masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:250: RuntimeWarning: invalid value encountered in less a = s.read(masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:258: RuntimeWarning: invalid value encountered in greater a = s.read(masked=False) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:258: RuntimeWarning: invalid value encountered in less a = s.read(masked=False) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:262: RuntimeWarning: invalid value encountered in greater a = s.read(window=((0, 2), (0, 2)), masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:262: RuntimeWarning: invalid value encountered in less a = s.read(window=((0, 2), (0, 2)), masked=True) ok test_read_no_band (tests.test_read.ReaderContextTest) ... ok test_read_out (tests.test_read.ReaderContextTest) ... ok test_read_out_dtype_fail (tests.test_read.ReaderContextTest) ... ok test_read_ubyte (tests.test_read.ReaderContextTest) ... ok test_read_ubyte_bad_index (tests.test_read.ReaderContextTest) ... ok test_read_ubyte_out (tests.test_read.ReaderContextTest) ... ok test_read_window (tests.test_read.ReaderContextTest) ... ok test_read_window_beyond (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows beyond ... ok test_read_window_overflow (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows that overflow ... ok test_read_window_overlap (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows beyond ... ok test_copy (tests.test_copy.CopyTest) ... ERROR test_block_coverage (tests.test_blocks.RasterBlocksTest) ... ok test_blocks (tests.test_blocks.RasterBlocksTest) ... ok test_read_window (tests.test_blocks.WindowReadTest) ... ok test_eval (tests.test_blocks.WindowTest) ... ok test_window_shape_None_start (tests.test_blocks.WindowTest) ... ok test_window_shape_None_stop (tests.test_blocks.WindowTest) ... ok test_window_shape_errors (tests.test_blocks.WindowTest) ... ok test_window_shape_negative (tests.test_blocks.WindowTest) ... ok test_window_shape_positive (tests.test_blocks.WindowTest) ... ok test_write_window (tests.test_blocks.WindowWriteTest) ... ERROR ====================================================================== ERROR: test_context (tests.test_read.ReaderContextTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py", line 39, in test_context self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) File "rasterio/_crs.pyx", line 58, in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) File "rasterio/_base.pyx", line 937, in rasterio._base._osr_from_crs raise CRSError('Invalid CRS') CRSError: Invalid CRS ====================================================================== ERROR: test_derived_spatial (tests.test_read.ReaderContextTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py", line 72, in test_derived_spatial self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) File "rasterio/_crs.pyx", line 58, in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) File "rasterio/_base.pyx", line 937, in rasterio._base._osr_from_crs raise CRSError('Invalid CRS') CRSError: Invalid CRS ====================================================================== ERROR: test_copy (tests.test_copy.CopyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_copy.py", line 27, in test_copy info = subprocess.check_output(["gdalinfo", name]) File "/usr/lib/python2.7/subprocess.py", line 216, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 394, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory ====================================================================== ERROR: test_write_window (tests.test_blocks.WindowWriteTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_blocks.py", line 116, in test_write_window dtype=a.dtype) as s: File "/usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py", line 158, in open raise TypeError("invalid dtype: {0!r}".format(dtype)) TypeError: invalid dtype: dtype('uint8') ---------------------------------------------------------------------- Ran 27 tests in 0.191s FAILED (errors=4) Test failed: error: Test failed: + : + xvfb-run py.test _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Unsupported high keycode 372 for name ignored > X11 cannot support keycodes above 255. > This warning only shows for the first high keycode. Errors from xkbcomp are not fatal to the X server Test data present. ============================= test session starts ============================== platform linux2 -- Python 2.7.16, pytest-3.10.1, py-1.8.0, pluggy-0.11.0 rootdir: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0, inifile: setup.cfg plugins: cov-2.7.1 collected 640 items tests/test_band.py . [ 0%] tests/test_band_masks.py .......... [ 1%] tests/test_blocks.py ..........F [ 3%] tests/test_checksum.py ...... [ 4%] tests/test_cli_main.py .. [ 4%] tests/test_colorinterp.py .s [ 5%] tests/test_colormap.py .. [ 5%] tests/test_coords.py ... [ 5%] tests/test_copy.py F [ 5%] tests/test_crs.py .FF.....FFF..F.FF.F.. [ 9%] tests/test_dataset_mask.py ........ [ 10%] tests/test_deprecations.py .....xX... [ 12%] tests/test_driver_management.py .... [ 12%] tests/test_dtypes.py ........x [ 14%] tests/test_env.py ...........ssFss [ 16%] tests/test_err.py .... [ 17%] tests/test_features.py ................................................. [ 24%] ....... [ 25%] tests/test_fillnodata.py ... [ 26%] tests/test_image_structure.py ............... [ 28%] tests/test_indexing.py ..................... [ 32%] tests/test_mask_creation.py ...x [ 32%] tests/test_meta.py .. [ 32%] tests/test_no_georef.py .. [ 33%] tests/test_nodata.py FF [ 33%] tests/test_open.py .... [ 34%] tests/test_options.py . [ 34%] tests/test_overviews.py ...... [ 35%] tests/test_pad.py . [ 35%] tests/test_plot.py .............. [ 37%] tests/test_png.py F [ 37%] tests/test_profile.py .................... [ 40%] tests/test_read.py FF................. [ 43%] tests/test_read_boundless.py ........... [ 45%] tests/test_read_resample.py ... [ 46%] tests/test_reshape_image.py ... [ 46%] tests/test_revolvingdoor.py . [ 46%] tests/test_rio_calc.py ........... [ 48%] tests/test_rio_convert.py FFFFF......... [ 50%] tests/test_rio_features.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF..FFFFF [ 57%] tests/test_rio_helpers.py ........ [ 58%] tests/test_rio_info.py ...FFF...............FFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 65%] FFFFFFFFFF. [ 67%] tests/test_rio_main.py .. [ 67%] tests/test_rio_merge.py ..F.............. [ 70%] tests/test_rio_options.py ......F.... [ 72%] tests/test_rio_overview.py FFFFF [ 73%] tests/test_rio_sample.py FFFFFFF [ 74%] tests/test_rio_stack.py ...... [ 75%] tests/test_rio_warp.py FFFFFFFFFFFFFFFFFF....FFFF...F [ 79%] tests/test_sampling.py .... [ 80%] tests/test_tags.py .... [ 81%] tests/test_tool.py ..... [ 81%] tests/test_tools_mask.py ..... [ 82%] tests/test_transform.py ........ [ 83%] tests/test_update.py F.FF.... [ 85%] tests/test_vfs.py ............. [ 87%] tests/test_warnings.py . [ 87%] tests/test_warp.py FFFF.FFFFFFFFFFFFFFFFFFFF..FFFFFFFsFFFFFxxxxxxxsxxxxx [ 95%] .F [ 95%] tests/test_warp_transform.py F.FFF. [ 96%] tests/test_write.py ....FFFFFFFFFFFFFF.. [100%] =================================== FAILURES =================================== ______________________ WindowWriteTest.test_write_window _______________________ self = def test_write_window(self): name = os.path.join(self.tempdir, "test_write_window.tif") a = np.ones((50, 50), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_blocks.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/tmpIY068V/test_write_window.tif', mode = 'w' driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ CopyTest.test_copy ______________________________ self = def test_copy(self): name = os.path.join(self.tempdir, 'test_copy.tif') rasterio.copy( 'tests/data/RGB.byte.tif', name) > info = subprocess.check_output(["gdalinfo", name]) tests/test_copy.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/tmpOlrp63/test_copy.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([8]), p2cread = None, p2cwrite = None, c2pread = 8 c2pwrite = 10, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ______________________________ test_read_epsg3857 ______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_read_epsg38570') def test_read_epsg3857(tmpdir): tiffname = str(tmpdir.join('lol.tif')) subprocess.call([ 'gdalwarp', '-t_srs', 'EPSG:3857', > 'tests/data/RGB.byte.tif', tiffname]) tests/test_crs.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:172: in call return Popen(*popenargs, **kwargs).wait() /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalwarp', '-t_srs', 'EPSG:3857', 'tests/data/RGB.byte.tif', '/usr/src/tmp/pytest-of-builder/pytest-0/test_read_epsg38570/lol.tif'] executable = 'gdalwarp', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([]), p2cread = None, p2cwrite = None c2pread = None, c2pwrite = None, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError _______________________________ test_write_3857 ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_38570') def test_write_3857(tmpdir): src_path = str(tmpdir.join('lol.tif')) subprocess.call([ 'gdalwarp', '-t_srs', 'EPSG:3857', > 'tests/data/RGB.byte.tif', src_path]) tests/test_crs.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:172: in call return Popen(*popenargs, **kwargs).wait() /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalwarp', '-t_srs', 'EPSG:3857', 'tests/data/RGB.byte.tif', '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_38570/lol.tif'] executable = 'gdalwarp', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([]), p2cread = None, p2cwrite = None c2pread = None, c2pwrite = None, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ______________________________ test_is_geographic ______________________________ def test_is_geographic(): > assert CRS({'init': 'EPSG:4326'}).is_geographic is True tests/test_crs.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:20: in rasterio._crs._CRS.is_geographic osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- test_crs.py 96 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ______________________________ test_is_projected _______________________________ def test_is_projected(): > assert CRS({'init': 'EPSG:3857'}).is_projected is True tests/test_crs.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:31: in rasterio._crs._CRS.is_projected osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- test_crs.py 110 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. _______________________________ test_is_same_crs _______________________________ def test_is_same_crs(): crs1 = CRS({'init': 'EPSG:4326'}) crs2 = CRS({'init': 'EPSG:3857'}) > assert crs1 == crs1 tests/test_crs.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:42: in rasterio._crs._CRS.__eq__ osr_crs1 = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- test_crs.py 124 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ________________________________ test_is_valid _________________________________ def test_is_valid(): > assert CRS(init='EPSG:4326').is_valid tests/test_crs.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/crs.py:31: in is_valid return self.is_geographic or self.is_projected rasterio/_crs.pyx:20: in rasterio._crs._CRS.is_geographic osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- crs.py 31 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. _____________________________ test_can_create_osr ______________________________ def test_can_create_osr(): > assert _can_create_osr({'init': 'EPSG:4326'}) E AssertionError: assert False E + where False = _can_create_osr({'init': 'EPSG:4326'}) tests/test_crs.py:159: AssertionError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- test_crs.py 159 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __________________________ test_can_create_osr_empty ___________________________ def test_can_create_osr_empty(): > assert _can_create_osr({}) E assert False E + where False = _can_create_osr({}) tests/test_crs.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ------------------------------ Captured log call ------------------------------- test_crs.py 164 DEBUG PROJ.4 to be imported: '+wktext' ____________________________ test_has_wkt_property _____________________________ def test_has_wkt_property(): > assert CRS({'init': 'EPSG:4326'}).wkt.startswith('GEOGCS["WGS 84",DATUM') tests/test_crs.py:176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- test_crs.py 176 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ___________________________ test_open_https_vsicurl ____________________________ gdalenv = None @mingdalversion def test_open_https_vsicurl(gdalenv): """Read from HTTPS URL.""" with rasterio.Env(): > with rasterio.open(httpstif) as dataset: tests/test_env.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/__init__.py:193: in open s.start() rasterio/_base.pyx:72: in rasterio._base.DatasetReader.start with CPLErrors() as cple: rasterio/_base.pyx:74: in rasterio._base.DatasetReader.start cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E CPLE_HttpResponse: CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com rasterio/_err.pyx:196: CPLE_HttpResponse ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._drivers:Env has been started DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:New GDAL environment created DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_HttpResponse in CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 160 DEBUG Env has been started env.py 161 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 163 DEBUG New GDAL environment created env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 ERROR CPLE_HttpResponse in CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context --------------------------- Captured stderr teardown --------------------------- DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options ---------------------------- Captured log teardown ----------------------------- env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options _________________________________ test_nodata __________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_nodata0') def test_nodata(tmpdir): dst_path = str(tmpdir.join('lol.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: with rasterio.open(dst_path, 'w', **src.meta) as dst: assert dst.nodata == 0.0 assert dst.meta['nodata'] == 0.0 assert dst.nodatavals == (0.0, 0.0, 0.0) info = subprocess.check_output([ > 'gdalinfo', dst_path]) tests/test_nodata.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_nodata0/lol.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:32618'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_nodata.py 13 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:32618'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:32618'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_nodata.py 14 DEBUG Entering Dataset context. test_nodata.py 17 DEBUG Dataset has been stopped. test_nodata.py 17 DEBUG Dataset has been closed. test_nodata.py 17 DEBUG Exited Dataset context. test_nodata.py 17 DEBUG Dataset has been stopped. test_nodata.py 17 DEBUG Dataset has been closed. test_nodata.py 17 DEBUG Exited Dataset context. _______________________________ test_set_nodata ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_set_nodata0') def test_set_nodata(tmpdir): dst_path = str(tmpdir.join('lol.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: meta = src.meta meta['nodata'] = 42 with rasterio.open(dst_path, 'w', **meta) as dst: assert dst.nodata == 42 assert dst.meta['nodata'] == 42 assert dst.nodatavals == (42, 42, 42) info = subprocess.check_output([ > 'gdalinfo', dst_path]) tests/test_nodata.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_set_nodata0/lol.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:32618'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_nodata.py 29 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:32618'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:32618'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 test_nodata.py 32 DEBUG Entering Dataset context. test_nodata.py 35 DEBUG Dataset has been stopped. test_nodata.py 35 DEBUG Dataset has been closed. test_nodata.py 35 DEBUG Exited Dataset context. test_nodata.py 35 DEBUG Dataset has been stopped. test_nodata.py 35 DEBUG Dataset has been closed. test_nodata.py 35 DEBUG Exited Dataset context. _______________________________ test_write_ubyte _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte0') def test_write_ubyte(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte.png")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='PNG', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_png.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte0/sub/test_write_ubyte.png' mode = 'w', driver = 'PNG', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ________________________ ReaderContextTest.test_context ________________________ self = def test_context(self): with rasterio.open('tests/data/RGB.byte.tif') as s: self.assertEqual(s.name, 'tests/data/RGB.byte.tif') self.assertEqual(s.driver, 'GTiff') self.assertEqual(s.closed, False) self.assertEqual(s.count, 3) self.assertEqual(s.width, 791) self.assertEqual(s.height, 718) self.assertEqual(s.shape, (718, 791)) self.assertEqual(s.dtypes, tuple([rasterio.ubyte] * 3)) self.assertEqual(s.nodatavals, (0, 0, 0)) self.assertEqual(s.indexes, (1, 2, 3)) self.assertEqual(s.crs['init'], 'epsg:32618') > self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) tests/test_read.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_read.py 27 DEBUG Entering Dataset context. test_read.py 39 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_read.py 50 DEBUG Dataset has been stopped. test_read.py 50 DEBUG Dataset has been closed. test_read.py 50 DEBUG Exited Dataset context. ____________________ ReaderContextTest.test_derived_spatial ____________________ self = def test_derived_spatial(self): with rasterio.open('tests/data/RGB.byte.tif') as s: > self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) tests/test_read.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_read.py 71 DEBUG Entering Dataset context. test_read.py 72 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_read.py 76 DEBUG Dataset has been stopped. test_read.py 76 DEBUG Dataset has been closed. test_read.py 76 DEBUG Exited Dataset context. _______________________________ test_clip_bounds _______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_clip_bounds0') def test_clip_bounds(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output, '--bounds'] + TEST_BBOX) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_convert.py:22: AssertionError ________________________________ test_clip_like ________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_clip_like0') def test_clip_like(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'clip', 'tests/data/shade.tif', output, '--like', 'tests/data/shade.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_convert.py:35: AssertionError ___________________________ test_clip_missing_params ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_clip_missing_params0') def test_clip_missing_params(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output]) assert result.exit_code == 2 > assert '--bounds or --like required' in result.output E assert '--bounds or --like required' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:49: AssertionError __________________________ test_clip_bounds_disjunct ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_clip_bounds_disjunct0') def test_clip_bounds_disjunct(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output, '--bounds'] + [0, 0, 10, 10]) assert result.exit_code == 2 > assert '--bounds' in result.output E assert '--bounds' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:58: AssertionError ___________________________ test_clip_like_disjunct ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_clip_like_disjunct0') def test_clip_like_disjunct(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'clip', 'tests/data/shade.tif', output, '--like', 'tests/data/RGB.byte.tif']) assert result.exit_code == 2 > assert '--like' in result.output E assert '--like' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:68: AssertionError __________________________________ test_mask ___________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask1') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask1/pixelated_image.tif' def test_mask(runner, tmpdir, basic_feature, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:32: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ____________________________ test_mask_all_touched _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_all_touched0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_all_touched0/pixelated_image.tif' def test_mask_all_touched(runner, tmpdir, basic_feature, basic_image, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--all', '--geojson-mask', '-'], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:53: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _______________________________ test_mask_invert _______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_invert0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_invert0/pixelated_image.tif' def test_mask_invert(runner, tmpdir, basic_feature, pixelated_image, pixelated_image_file): truth = pixelated_image truth[2:4, 2:4] = 0 output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--invert', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:76: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_mask_featurecollection __________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_featurecollection0') basic_featurecollection = {'features': [{'geometry': {'coordinates': [[(...), (...), (...), (...), (...)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'}], 'type': 'FeatureCollection'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_featurecollection0/pixelated_image.tif' def test_mask_featurecollection(runner, tmpdir, basic_featurecollection, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_featurecollection)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:94: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_mask_out_of_bounds ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_out_of_bounds0') basic_feature = {'geometry': {'coordinates': [[[-8.0, -8.0], [-8.0, -5.75], [-5.75, -5.75], [-5.75, -8.0], [-8.0, -8.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_out_of_bounds0/pixelated_image.tif' def test_mask_out_of_bounds(runner, tmpdir, basic_feature, pixelated_image_file): """ A GeoJSON mask that is outside bounds of raster should result in a blank image. """ coords = np.array(basic_feature['geometry']['coordinates']) - 10 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:119: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_mask_no_geojson _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_no_geojson0') pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_no_geojson0/pixelated_image.tif' def test_mask_no_geojson(runner, tmpdir, pixelated_image, pixelated_image_file): """ Mask without geojson input should simply return same raster as input """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:135: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. __________________________ test_mask_invalid_geojson ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_invalid_geojson0') pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_invalid_geojson0/pixelated_image.tif' def test_mask_invalid_geojson(runner, tmpdir, pixelated_image_file): """ Invalid GeoJSON should fail """ output = str(tmpdir.join('test.tif')) # Using invalid JSON result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input='{bogus: value}') assert result.exit_code == 2 > assert 'GeoJSON could not be read' in result.output E assert 'GeoJSON could not be read' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' = .output tests/test_rio_features.py:155: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ________________________________ test_mask_crop ________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) def test_mask_crop(runner, tmpdir, basic_feature, pixelated_image): """ In order to test --crop option, we need to use a transform more similar to a normal raster, with a negative y pixel size. """ image = pixelated_image outfilename = str(tmpdir.join('pixelated_image.tif')) kwargs = { "crs": CRS({'init': 'epsg:4326'}), "transform": Affine(1, 0, 0, 0, -1, 0), "count": 1, "dtype": rasterio.uint8, "driver": "GTiff", "width": image.shape[1], "height": image.shape[0], "nodata": 255} with rasterio.open(outfilename, 'w', **kwargs) as out: out.write(image, indexes=1) output = str(tmpdir.join('test.tif')) truth = np.zeros((4, 3)) truth[1:3, 0:2] = 1 result = runner.invoke( main_group, ['mask', outfilename, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:195: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 183 DEBUG Entering Dataset context. test_rio_features.py 184 DEBUG Dataset has been stopped. test_rio_features.py 184 DEBUG Dataset has been closed. test_rio_features.py 184 DEBUG Exited Dataset context. __________________________ test_mask_crop_inverted_y ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_inverted_y0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_inverted_y0/pixelated_image.tif' def test_mask_crop_inverted_y(runner, tmpdir, basic_feature, pixelated_image_file): """ --crop option should also work if raster has a positive y pixel size (e.g., Affine.identity() ). """ output = str(tmpdir.join('test.tif')) truth = np.zeros((4, 3)) truth[1:3, 0:2] = 1 result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:220: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_mask_crop_out_of_bounds _________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_out_of_bounds0') basic_feature = {'geometry': {'coordinates': [[[-8.0, -8.0], [-8.0, -5.75], [-5.75, -5.75], [-5.75, -8.0], [-8.0, -8.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_out_of_bounds0/pixelated_image.tif' def test_mask_crop_out_of_bounds(runner, tmpdir, basic_feature, pixelated_image_file): """ A GeoJSON mask that is outside bounds of raster should fail with --crop option. """ coords = np.array(basic_feature['geometry']['coordinates']) - 10 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'not allowed' in result.output E assert 'not allowed' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' = .output tests/test_rio_features.py:246: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. __________________________ test_mask_crop_and_invert ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_and_invert0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_mask_crop_and_invert0/pixelated_image.tif' def test_mask_crop_and_invert(runner, tmpdir, basic_feature, pixelated_image, pixelated_image_file): """ Adding crop and invert options should ignore invert option """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--crop', '--invert', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:260: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________________ test_shapes __________________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes0/pixelated_image.tif' def test_shapes(runner, pixelated_image_file): result = runner.invoke(main_group, ['shapes', pixelated_image_file]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:267: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_invalid_bidx ___________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_invalid_bidx0/pixelated_image.tif' def test_shapes_invalid_bidx(runner, pixelated_image_file): result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--bidx', 4]) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_features.py:279: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_sequence _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_sequence0/pixelated_image.tif' def test_shapes_sequence(runner, pixelated_image_file): """ --sequence option should produce 4 features in series rather than inside a feature collection. """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sequence']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:292: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_sequence_rs ____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_sequence_rs0/pixelated_image.tif' def test_shapes_sequence_rs(runner, pixelated_image_file): """ --rs option should use the feature separator character. """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sequence', '--rs']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:304: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_with_nodata ____________________________ runner = pixelated_image = array([[ 1, 0, 0, 0, 0, 0, 0, 0, 255, 255], [ 0, 0, ... 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_with_nodata0/pixelated_image.tif' def test_shapes_with_nodata(runner, pixelated_image, pixelated_image_file): """ An area of nodata should also be represented with a shape when using --with-nodata option """ pixelated_image[0:2, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--with-nodata']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:323: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 318 DEBUG Entering Dataset context. test_rio_features.py 319 DEBUG Dataset has been stopped. test_rio_features.py 319 DEBUG Dataset has been closed. test_rio_features.py 319 DEBUG Exited Dataset context. ______________________________ test_shapes_indent ______________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_indent0/pixelated_image.tif' def test_shapes_indent(runner, pixelated_image_file): """ --indent option should produce lots of newlines and contiguous spaces """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--indent', 2]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:336: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_compact ______________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_compact0/pixelated_image.tif' def test_shapes_compact(runner, pixelated_image_file): result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--compact']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:347: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_sampling _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_sampling0/pixelated_image.tif' def test_shapes_sampling(runner, pixelated_image_file): """ --sampling option should remove the single pixel features """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sampling', 2]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:359: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ____________________________ test_shapes_precision _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_precision0/pixelated_image.tif' def test_shapes_precision(runner, pixelated_image_file): """ Output numbers should have no more than 1 decimal place """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--precision', 1]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:370: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _______________________________ test_shapes_mask _______________________________ runner = pixelated_image = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 2... 255], [255, 255, 255, 0, 0, 0, 0, 0, 255, 255]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_mask0/pixelated_image.tif' def test_shapes_mask(runner, pixelated_image, pixelated_image_file): """ --mask should extract the nodata area of the image """ pixelated_image[0:5, 0:10] = 255 pixelated_image[0:10, 0:3] = 255 pixelated_image[8:10, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--mask']) print(result.output) print(result.exception) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:392: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stdout call ----------------------------- Usage: main_group [OPTIONS] COMMAND [ARGS]... Error: No such command "shapes". 2 ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 383 DEBUG Entering Dataset context. test_rio_features.py 384 DEBUG Dataset has been stopped. test_rio_features.py 384 DEBUG Dataset has been closed. test_rio_features.py 384 DEBUG Exited Dataset context. __________________________ test_shapes_mask_sampling ___________________________ runner = pixelated_image = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 2... 255], [255, 255, 255, 0, 0, 0, 0, 0, 255, 255]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_mask_sampling0/pixelated_image.tif' def test_shapes_mask_sampling(runner, pixelated_image, pixelated_image_file): """ using --sampling with the mask should snap coordinates to the nearest factor of 5 """ pixelated_image[0:5, 0:10] = 255 pixelated_image[0:10, 0:3] = 255 pixelated_image[8:10, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--mask', '--sampling', 5]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:417: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 410 DEBUG Entering Dataset context. test_rio_features.py 411 DEBUG Dataset has been stopped. test_rio_features.py 411 DEBUG Dataset has been closed. test_rio_features.py 411 DEBUG Exited Dataset context. __________________________ test_shapes_band1_as_mask ___________________________ runner = pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_shapes_band1_as_mask0/pixelated_image.tif' def test_shapes_band1_as_mask(runner, pixelated_image, pixelated_image_file): """ When using --as-mask option, pixel value should not matter, only depends on pixels being contiguous. """ pixelated_image[2:3, 2:3] = 4 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--band', '--bidx', '1', '--as-mask']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:441: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 434 DEBUG Entering Dataset context. test_rio_features.py 435 DEBUG Dataset has been stopped. test_rio_features.py 435 DEBUG Dataset has been closed. test_rio_features.py 435 DEBUG Exited Dataset context. ________________________________ test_rasterize ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1]], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:457: AssertionError ____________________________ test_rasterize_bounds _____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_bounds0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) def test_rasterize_bounds(tmpdir, runner, basic_feature, basic_image_2x2): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--bounds', 0, 10, 10, 0], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:474: AssertionError __________________________ test_rasterize_resolution ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_resolution0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_resolution(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--res', 0.15], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:490: AssertionError ________________________ test_rasterize_multiresolution ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_multiresolution0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_multiresolution(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( rasterize, [output, '--res', 0.15, '--res', 0.15], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E AssertionError: assert -1 == 0 E + where -1 = .exit_code tests/test_rio_features.py:507: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context rasterize.py 215 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________________________ test_rasterize_src_crs ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_src_crs0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_src_crs(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'EPSG:3857'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:524: AssertionError ______________________ test_rasterize_mismatched_src_crs _______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_mismatched_src_0') runner = basic_feature = {'geometry': {'coordinates': [[[200000.0, 200000.0], [200000.0, 425000.0], [425000.0, 425000.0], [425000.0, 200000.0], [200000.0, 200000.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_mismatched_src_crs(tmpdir, runner, basic_feature): """ A --src-crs that is geographic with coordinates that are outside world bounds should fail. """ coords = np.array(basic_feature['geometry']['coordinates']) * 100000 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'EPSG:4326'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'Bounds are beyond the valid extent for EPSG:4326' in result.output E assert 'Bounds are beyond the valid extent for EPSG:4326' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:547: AssertionError ________________________ test_rasterize_invalid_src_crs ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_invalid_src_crs0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_invalid_src_crs(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'foo:bar'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'invalid CRS. Must be an EPSG code.' in result.output E assert 'invalid CRS. Must be an EPSG code.' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:559: AssertionError ________________________ test_rasterize_existing_output ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_existing_output0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_existing_output(tmpdir, runner, basic_feature): """ Create a rasterized output, then rasterize additional pixels into it. The final result should include rasterized pixels from both """ truth = np.zeros(DEFAULT_SHAPE) truth[2:4, 2:4] = 1 truth[4:6, 4:6] = 1 output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--bounds', 0, 10, 10, 0], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:580: AssertionError __________________________ test_rasterize_like_raster __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ..., 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster0/pixelated_image.tif' def test_rasterize_like_raster(tmpdir, runner, basic_feature, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:608: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ______________________ test_rasterize_invalid_like_raster ______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_invalid_like_ra0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_invalid_like_raster(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', str(tmpdir.join('foo.tif'))], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'Invalid value for "--like":' in result.output E assert 'Invalid value for "--like":' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:627: AssertionError _________________ test_rasterize_like_raster_src_crs_mismatch __________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster_src0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster_src0/pixelated_image.tif' def test_rasterize_like_raster_src_crs_mismatch(tmpdir, runner, basic_feature, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file, '--src-crs', 'EPSG:3857'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'GeoJSON does not match crs of --like raster' in result.output E assert 'GeoJSON does not match crs of --like raster' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:639: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ________________________ test_rasterize_property_value _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_property_value0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_property_value(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--property', 'val'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:683: AssertionError __________________ test_rasterize_like_raster_outside_bounds ___________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster_out0') runner = basic_feature = {'geometry': {'coordinates': [[[102.0, 102.0], [102.0, 104.25], [104.25, 104.25], [104.25, 102.0], [102.0, 102.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_like_raster_out0/pixelated_image.tif' def test_rasterize_like_raster_outside_bounds(tmpdir, runner, basic_feature, pixelated_image_file): """ Rasterizing a feature outside bounds of --like raster should result in a blank image """ coords = np.array(basic_feature['geometry']['coordinates']) + 100 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:709: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_rasterize_invalid_stdin _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_invalid_stdin0') runner = def test_rasterize_invalid_stdin(tmpdir, runner): """ Invalid value for stdin should fail with exception """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output], input='BOGUS') > assert result.exit_code == -1 E assert 2 == -1 E + where 2 = .exit_code tests/test_rio_features.py:723: AssertionError ________________________ test_rasterize_invalid_geojson ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_invalid_geojson0') runner = def test_rasterize_invalid_geojson(tmpdir, runner): """ Invalid GeoJSON should fail with error """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output], input='{"A": "B"}') assert result.exit_code == 2 > assert 'Invalid GeoJSON' in result.output E assert 'Invalid GeoJSON' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:733: AssertionError ______________________ test_rasterize_missing_parameters _______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_rasterize_missing_paramet0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_missing_parameters(tmpdir, runner, basic_feature): """ At least --res or --dimensions are required """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', '-o', output], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'pixel dimensions are required' in result.output E assert 'pixel dimensions are required' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:746: AssertionError ______________________________ test_edit_crs_epsg ______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_crs_epsg(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(edit, [inputfile, '--crs', 'EPSG:32618']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32618'} tests/test_rio_info.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:32618', 'no_defs': True}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:32618', 'no_defs': True}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({'init': u'epsg:32618', 'no_defs': True}) edit_info.py 155 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({'init': u'epsg:32618', 'no_defs': True}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 48 DEBUG Entering Dataset context. test_rio_info.py 49 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 49 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 49 DEBUG Dataset has been stopped. test_rio_info.py 49 DEBUG Dataset has been closed. test_rio_info.py 49 DEBUG Exited Dataset context. _____________________________ test_edit_crs_proj4 ______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_crs_proj4(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(edit, [inputfile, '--crs', '+init=epsg:32618']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32618'} tests/test_rio_info.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({u'init': u'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({u'init': u'epsg:32618'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({u'init': u'epsg:32618'}) edit_info.py 155 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({u'init': u'epsg:32618'}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 57 DEBUG Entering Dataset context. test_rio_info.py 58 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 58 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 58 DEBUG Dataset has been stopped. test_rio_info.py 58 DEBUG Dataset has been closed. test_rio_info.py 58 DEBUG Exited Dataset context. ______________________________ test_edit_crs_obj _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_crs_obj(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke( edit, [inputfile, '--crs', '{"init": "epsg:32618"}']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs.to_dict() == {'init': 'epsg:32618'} E AssertionError: assert {} == {'init': 'epsg:32618'} E Right contains more items: E {'init': 'epsg:32618'} E Use -v to get the full diff tests/test_rio_info.py:68: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({u'init': u'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({u'init': u'epsg:32618'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({u'init': u'epsg:32618'}) edit_info.py 155 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({u'init': u'epsg:32618'}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 67 DEBUG Entering Dataset context. test_rio_info.py 68 DEBUG Dataset has been stopped. test_rio_info.py 68 DEBUG Dataset has been closed. test_rio_info.py 68 DEBUG Exited Dataset context. ______________________________ test_edit_crs_like ______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_crs_like(data): runner = CliRunner() # Set up the file to be edited. inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 200 DEBUG Entering Dataset context. test_rio_info.py 201 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 201 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 201 DEBUG Exported WKT: test_rio_info.py 201 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 202 DEBUG Dataset has been stopped. test_rio_info.py 202 DEBUG Dataset has been closed. test_rio_info.py 202 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 205 DEBUG Entering Dataset context. test_rio_info.py 206 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 206 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 207 DEBUG Dataset has been stopped. test_rio_info.py 207 DEBUG Dataset has been closed. test_rio_info.py 207 DEBUG Exited Dataset context. ____________________________ test_edit_nodata_like _____________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_nodata_like(data): runner = CliRunner() # Set up the file to be edited. inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:231: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 225 DEBUG Entering Dataset context. test_rio_info.py 226 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 226 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 226 DEBUG Exported WKT: test_rio_info.py 226 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 227 DEBUG Dataset has been stopped. test_rio_info.py 227 DEBUG Dataset has been closed. test_rio_info.py 227 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 230 DEBUG Entering Dataset context. test_rio_info.py 231 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 231 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 232 DEBUG Dataset has been stopped. test_rio_info.py 232 DEBUG Dataset has been closed. test_rio_info.py 232 DEBUG Exited Dataset context. ______________________________ test_edit_all_like ______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_edit_all_like(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 249 DEBUG Entering Dataset context. test_rio_info.py 250 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 250 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 250 DEBUG Exported WKT: test_rio_info.py 250 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 251 DEBUG Dataset has been stopped. test_rio_info.py 251 DEBUG Dataset has been closed. test_rio_info.py 251 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 254 DEBUG Entering Dataset context. test_rio_info.py 255 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 255 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_info.py 256 DEBUG Dataset has been stopped. test_rio_info.py 256 DEBUG Dataset has been closed. test_rio_info.py 256 DEBUG Exited Dataset context. ___________________________________ test_env ___________________________________ def test_env(): runner = CliRunner() result = runner.invoke(main_group, [ 'env', '--formats' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:273: AssertionError ________________________________ test_info_err _________________________________ def test_info_err(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests']) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:281: AssertionError __________________________________ test_info ___________________________________ def test_info(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:288: AssertionError ______________________________ test_info_verbose _______________________________ def test_info_verbose(): runner = CliRunner() result = runner.invoke(main_group, [ '-v', 'info', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:299: AssertionError _______________________________ test_info_quiet ________________________________ def test_info_quiet(): runner = CliRunner() result = runner.invoke(main_group, [ '-q', 'info', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:309: AssertionError _______________________________ test_info_count ________________________________ def test_info_count(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--count']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:316: AssertionError _____________________________ test_info_nodatavals _____________________________ def test_info_nodatavals(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--bounds']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:324: AssertionError ________________________________ test_info_tags ________________________________ def test_info_tags(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tags']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:332: AssertionError ________________________________ test_info_res _________________________________ def test_info_res(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--res']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:340: AssertionError _______________________________ test_info_lnglat _______________________________ def test_info_lnglat(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--lnglat']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:348: AssertionError _________________________________ test_mo_info _________________________________ def test_mo_info(): runner = CliRunner() result = runner.invoke(main_group, ['info', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:355: AssertionError _______________________________ test_info_stats ________________________________ def test_info_stats(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tell-me-more']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:364: AssertionError _____________________________ test_info_stats_only _____________________________ def test_info_stats_only(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--stats', '--bidx', '2']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:375: AssertionError ____________________________ test_info_colorinterp _____________________________ def test_info_colorinterp(): runner = CliRunner() result = runner.invoke(main_group, ['info', 'tests/data/alpha.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:382: AssertionError ______________________________ test_transform_err ______________________________ def test_transform_err(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform' ], "[-78.0]") > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:391: AssertionError _____________________________ test_transform_point _____________________________ def test_transform_point(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'EPSG:32618', '--precision', '2' ], "[-78.0, 23.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:401: AssertionError ________________________ test_transform_point_dst_file _________________________ def test_transform_point_dst_file(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'tests/data/RGB.byte.tif', '--precision', '2' ], "[-78.0, 23.0]") > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:411: AssertionError ________________________ test_transform_point_src_file _________________________ def test_transform_point_src_file(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--src-crs', 'tests/data/RGB.byte.tif', '--precision', '2' ], "[192457.13, 2546667.68]") > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:423: AssertionError ____________________________ test_transform_point_2 ____________________________ def test_transform_point_2(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '[-78.0, 23.0]', '--dst-crs', 'EPSG:32618', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:435: AssertionError __________________________ test_transform_point_multi __________________________ def test_transform_point_multi(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'EPSG:32618', '--precision', '2' ], "[-78.0, 23.0]\n[-78.0, 23.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:446: AssertionError _____________________________ test_bounds_defaults _____________________________ def test_bounds_defaults(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:457: AssertionError _______________________________ test_bounds_err ________________________________ def test_bounds_err(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests' ]) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:467: AssertionError _____________________________ test_bounds_feature ______________________________ def test_bounds_feature(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--feature' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:477: AssertionError _____________________________ test_bounds_obj_bbox _____________________________ def test_bounds_obj_bbox(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:489: AssertionError _____________________________ test_bounds_compact ______________________________ def test_bounds_compact(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--precision', '2', '--compact' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:502: AssertionError ______________________________ test_bounds_indent ______________________________ def test_bounds_indent(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--indent', '2', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:515: AssertionError ________________________ test_bounds_obj_bbox_mercator _________________________ def test_bounds_obj_bbox_mercator(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--mercator', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:528: AssertionError ________________________ test_bounds_obj_bbox_projected ________________________ def test_bounds_obj_bbox_projected(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--projected', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:542: AssertionError _____________________________ test_bounds_crs_bbox _____________________________ def test_bounds_crs_bbox(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--dst-crs', 'EPSG:32618', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:556: AssertionError _______________________________ test_bounds_seq ________________________________ def test_bounds_seq(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', 'tests/data/RGB.byte.tif', '--sequence' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:569: AssertionError ______________________________ test_bounds_seq_rs ______________________________ def test_bounds_seq_rs(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', 'tests/data/RGB.byte.tif', '--sequence', '--rs', '--bbox', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:597: AssertionError __________________________________ test_insp ___________________________________ def test_insp(): runner = CliRunner() result = runner.invoke(main_group, ['insp', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:605: AssertionError ________________________________ test_insp_err _________________________________ def test_insp_err(): runner = CliRunner() result = runner.invoke(main_group, ['insp', 'tests']) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:611: AssertionError _____________________________ test_info_checksums ______________________________ def test_info_checksums(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tell-me-more']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:618: AssertionError ___________________________ test_info_checksums_only ___________________________ def test_info_checksums_only(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--checksum', '--bidx', '2']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:627: AssertionError _______________________________ test_merge_warn ________________________________ test_data_dir_1 = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_merge_warn0') def test_merge_warn(test_data_dir_1): outputname = str(test_data_dir_1.join('merged.tif')) inputs = [str(x) for x in test_data_dir_1.listdir()] inputs.sort() runner = CliRunner() result = runner.invoke(merge, inputs + [outputname] + ['--nodata', '-1']) assert result.exit_code == 0 assert os.path.exists(outputname) > assert "using the --nodata option for better results" in result.output E AssertionError: assert 'using the --nodata option for better results' in '' E + where '' = .output tests/test_rio_merge.py:115: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 test_rio_merge.py 31 DEBUG Entering Dataset context. test_rio_merge.py 34 DEBUG Dataset has been stopped. test_rio_merge.py 34 DEBUG Dataset has been closed. test_rio_merge.py 34 DEBUG Exited Dataset context. __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 test_rio_merge.py 36 DEBUG Entering Dataset context. test_rio_merge.py 39 DEBUG Dataset has been stopped. test_rio_merge.py 39 DEBUG Dataset has been closed. test_rio_merge.py 39 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio.merge:Output bounds: (-114.0, 44.0, -112.0, 46.0) DEBUG:rasterio.merge:Output transform, before scaling: Affine(1.0, 0.0, -114.0, 0.0, 1.0, 46.0) DEBUG:rasterio.merge:Output transform, after scaling: Affine(0.2, 0.0, -114.0, 0.0, -0.2, 46.0) DEBUG:rasterio.merge:Output width: 10, height: 10 DEBUG:rasterio.merge:Adjusted bounds: (-114.0, 44.0, -112.0, 46.0) DEBUG:rasterio.merge:Set nodataval: -1.0 DEBUG:rasterio.merge:Src /usr/src/tmp/pytest-of-builder/pytest-0/test_merge_warn0/a.tif window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Dst window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Temp shape: (1, 10, 10) DEBUG:rasterio._io:all_valid: False DEBUG:rasterio._io:mask_flags: [8] DEBUG:rasterio.merge:Src /usr/src/tmp/pytest-of-builder/pytest-0/test_merge_warn0/b.tif window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Dst window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Temp shape: (1, 10, 10) DEBUG:rasterio._io:all_valid: False DEBUG:rasterio._io:mask_flags: [8] DEBUG:rasterio._io:Option: ('INTERLEAVE', 'BAND') DEBUG:rasterio._io:Option: ('TILED', 'FALSE') DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. merge.py 73 DEBUG Output bounds: (-114.0, 44.0, -112.0, 46.0) merge.py 75 DEBUG Output transform, before scaling: Affine(1.0, 0.0, -114.0, 0.0, 1.0, 46.0) merge.py 85 DEBUG Output transform, after scaling: Affine(0.2, 0.0, -114.0, 0.0, -0.2, 46.0) merge.py 94 DEBUG Output width: 10, height: 10 merge.py 95 DEBUG Adjusted bounds: (-114.0, 44.0, -112.0, 46.0) merge.py 102 DEBUG Set nodataval: -1.0 merge.py 140 DEBUG Src /usr/src/tmp/pytest-of-builder/pytest-0/test_merge_warn0/a.tif window: ((0, 10), (0, 10)) merge.py 145 DEBUG Dst window: ((0, 10), (0, 10)) merge.py 152 DEBUG Temp shape: (1, 10, 10) merge.py 156 DEBUG all_valid: False merge.py 156 DEBUG mask_flags: [8] merge.py 140 DEBUG Src /usr/src/tmp/pytest-of-builder/pytest-0/test_merge_warn0/b.tif window: ((0, 10), (0, 10)) merge.py 145 DEBUG Dst window: ((0, 10), (0, 10)) merge.py 152 DEBUG Temp shape: (1, 10, 10) merge.py 156 DEBUG all_valid: False merge.py 156 DEBUG mask_flags: [8] __init__.py 193 DEBUG Option: ('INTERLEAVE', 'BAND') __init__.py 193 DEBUG Option: ('TILED', 'FALSE') __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 merge.py 68 DEBUG Entering Dataset context. merge.py 76 DEBUG Dataset has been stopped. merge.py 76 DEBUG Dataset has been closed. merge.py 76 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __________________________ test_like_dataset_callback __________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_like_dataset_callback(data): ctx = MockContext() like_handler(ctx, 'like', str(data.join('RGB.byte.tif'))) > assert ctx.obj['like']['crs'] == {'init': 'epsg:32618'} tests/test_rio_options.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:42: in rasterio._crs._CRS.__eq__ osr_crs1 = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. options.py 128 DEBUG Entering Dataset context. options.py 132 DEBUG Dataset has been stopped. options.py 132 DEBUG Dataset has been closed. options.py 132 DEBUG Exited Dataset context. test_rio_options.py 69 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ___________________________________ test_err ___________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_err(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', 'a^2']) assert result.exit_code == 2 > assert "must match" in result.output E assert 'must match' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "overview".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "overview".\n' = .output tests/test_rio_overview.py:18: AssertionError _________________________________ test_ls_none _________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_ls_none(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--ls']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:25: AssertionError ________________________________ test_build_ls _________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_build_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', '2,4,8']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:34: AssertionError ______________________________ test_build_pow_ls _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_build_pow_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', '2^1..3']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:45: AssertionError _______________________________ test_rebuild_ls ________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_rebuild_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke( cli, ['overview', inputfile, '--build', '2,4,8', '--resampling', 'cubic']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:59: AssertionError _______________________________ test_sample_err ________________________________ def test_sample_err(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'bogus.tif'], "[220650.0, 2719200.0]") > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_sample.py:20: AssertionError ______________________________ test_sample_stdin _______________________________ def test_sample_stdin(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif'], "[220650.0, 2719200.0]\n[220650.0, 2719200.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:30: AssertionError _______________________________ test_sample_arg ________________________________ def test_sample_arg(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:40: AssertionError _______________________________ test_sample_bidx _______________________________ def test_sample_bidx(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '1,2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:50: AssertionError ______________________________ test_sample_bidx2 _______________________________ def test_sample_bidx2(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '1..2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:60: AssertionError ______________________________ test_sample_bidx3 _______________________________ def test_sample_bidx3(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '..2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:70: AssertionError ______________________________ test_sample_bidx4 _______________________________ def test_sample_bidx4(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '3', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:80: AssertionError ______________________________ test_dst_crs_error ______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_crs_error0') def test_dst_crs_error(runner, tmpdir): """Invalid JSON is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', '{foo: bar}']) assert result.exit_code == 2 > assert 'for dst_crs: crs appears to be JSON but is not' in result.output E assert 'for dst_crs: crs appears to be JSON but is not' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:23: AssertionError _____________________________ test_dst_crs_error_2 _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_crs_error_20') @pytest.mark.xfail( os.environ.get('GDALVERSION', 'a.b.c').startswith('1.9'), reason="GDAL 1.9 doesn't catch this error") def test_dst_crs_error_2(runner, tmpdir): """Invalid PROJ.4 is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', '{"proj": "foobar"}']) assert result.exit_code == 2 > assert 'for dst_crs: Failed to initialize PROJ.4' in result.output E assert 'for dst_crs: Failed to initialize PROJ.4' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:36: AssertionError ___________________________ test_dst_crs_error_epsg ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_crs_error_epsg0') def test_dst_crs_error_epsg(runner, tmpdir): """Malformed EPSG string is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', 'EPSG:']) assert result.exit_code == 2 > assert 'for dst_crs: invalid literal for int()' in result.output E assert 'for dst_crs: invalid literal for int()' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:46: AssertionError __________________________ test_dst_crs_error_epsg_2 ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_crs_error_epsg_20') def test_dst_crs_error_epsg_2(runner, tmpdir): """Invalid EPSG code is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', 'EPSG:0']) assert result.exit_code == 2 > assert 'for dst_crs: EPSG codes are positive integers' in result.output E assert 'for dst_crs: EPSG codes are positive integers' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:56: AssertionError ___________________ test_dst_nodata_float_no_src_nodata_err ____________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_nodata_float_no_src_n0') def test_dst_nodata_float_no_src_nodata_err(runner, tmpdir): """Valid integer destination nodata dtype""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-nodata', '0.0']) assert result.exit_code == 2 > assert 'src-nodata must be provided because dst-nodata is not None' in result.output E assert 'src-nodata must be provided because dst-nodata is not None' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:66: AssertionError ____________________________ test_src_nodata_int_ok ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_src_nodata_int_ok0') def test_src_nodata_int_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:75: AssertionError ____________________________ test_dst_nodata_int_ok ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_nodata_int_ok0') def test_dst_nodata_int_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-nodata', '255']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:86: AssertionError ___________________________ test_src_nodata_float_ok ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_src_nodata_float_ok0') def test_src_nodata_float_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1.5']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:97: AssertionError ____________________ test_dst_nodata_float_override_src_ok _____________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_dst_nodata_float_override0') def test_dst_nodata_float_override_src_ok(runner, tmpdir): """Check if srcnodata is overridden""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1.5', '--dst-nodata', '2.5']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:108: AssertionError ____________________________ test_warp_no_reproject ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_no_reproject0') def test_warp_no_reproject(runner, tmpdir): """ When called without parameters, output should be same as source """ srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: assert output.count == src.count > assert output.crs == src.crs tests/test_rio_warp.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 1024, 1024. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 1024, 1024. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 121 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 122 DEBUG Entering Dataset context. test_rio_warp.py 124 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 124 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 128 DEBUG Dataset has been stopped. test_rio_warp.py 128 DEBUG Dataset has been closed. test_rio_warp.py 128 DEBUG Exited Dataset context. test_rio_warp.py 128 DEBUG Dataset has been stopped. test_rio_warp.py 128 DEBUG Dataset has been closed. test_rio_warp.py 128 DEBUG Exited Dataset context. ______________________ test_warp_no_reproject_dimensions _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_no_reproject_dimensi0') def test_warp_no_reproject_dimensions(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dimensions', '100', '100']) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 100, 100. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 100, 100. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 139 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 140 DEBUG Entering Dataset context. test_rio_warp.py 141 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 141 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 144 DEBUG Dataset has been stopped. test_rio_warp.py 144 DEBUG Dataset has been closed. test_rio_warp.py 144 DEBUG Exited Dataset context. test_rio_warp.py 144 DEBUG Dataset has been stopped. test_rio_warp.py 144 DEBUG Dataset has been closed. test_rio_warp.py 144 DEBUG Exited Dataset context. __________________________ test_warp_no_reproject_res __________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_no_reproject_res0') def test_warp_no_reproject_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--res', 30]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 327, 327. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 327, 327. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 156 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 157 DEBUG Entering Dataset context. test_rio_warp.py 158 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 158 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 161 DEBUG Dataset has been stopped. test_rio_warp.py 161 DEBUG Dataset has been closed. test_rio_warp.py 161 DEBUG Exited Dataset context. test_rio_warp.py 161 DEBUG Dataset has been stopped. test_rio_warp.py 161 DEBUG Dataset has been closed. test_rio_warp.py 161 DEBUG Exited Dataset context. ________________________ test_warp_no_reproject_bounds _________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_no_reproject_bounds0') def test_warp_no_reproject_bounds(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke(warp.warp,[srcname, outputname, '--bounds'] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 105, 210. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 105, 210. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 173 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 174 DEBUG Entering Dataset context. test_rio_warp.py 175 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 175 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 180 DEBUG Dataset has been stopped. test_rio_warp.py 180 DEBUG Dataset has been closed. test_rio_warp.py 180 DEBUG Exited Dataset context. test_rio_warp.py 180 DEBUG Dataset has been stopped. test_rio_warp.py 180 DEBUG Dataset has been closed. test_rio_warp.py 180 DEBUG Exited Dataset context. ______________________ test_warp_no_reproject_bounds_res _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_no_reproject_bounds_0') def test_warp_no_reproject_bounds_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke(warp.warp,[srcname, outputname, '--res', 30, '--bounds', ] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:195: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 34, 67. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 34, 67. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 193 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 194 DEBUG Entering Dataset context. test_rio_warp.py 195 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 195 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 199 DEBUG Dataset has been stopped. test_rio_warp.py 199 DEBUG Dataset has been closed. test_rio_warp.py 199 DEBUG Exited Dataset context. test_rio_warp.py 199 DEBUG Dataset has been stopped. test_rio_warp.py 199 DEBUG Dataset has been closed. test_rio_warp.py 199 DEBUG Exited Dataset context. _________________________ test_warp_reproject_dst_crs __________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_dst_crs0') def test_warp_reproject_dst_crs(runner, tmpdir): srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_warp_reproject_dst_crs_proj4 _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_dst_crs_pr0') def test_warp_reproject_dst_crs_proj4(runner, tmpdir): proj4 = '+proj=longlat +ellps=WGS84 +datum=WGS84' srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', proj4]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:227: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: u'+ellps=WGS84 +datum=WGS84 +proj=longlat +wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 DEBUG PROJ.4 to be imported: u'+ellps=WGS84 +datum=WGS84 +proj=longlat +wktext' warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________________ test_warp_reproject_res ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_res0') def test_warp_reproject_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.01]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:240: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_warp_reproject_dimensions ________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_dimensions0') def test_warp_reproject_dimensions(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--dimensions', '100', '100']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:256: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_warp_reproject_src_bounds_res ______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_src_bounds0') def test_warp_reproject_src_bounds_res(runner, tmpdir): """--src-bounds option works.""" srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke( warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.001, '--src-bounds'] + out_bounds) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:321: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_warp_reproject_dst_bounds ________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_dst_bounds0') def test_warp_reproject_dst_bounds(runner, tmpdir): """--x-dst-bounds option works.""" srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-106.45036, 39.6138, -106.44136, 39.6278] result = runner.invoke( warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.001, '--x-dst-bounds'] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == {'init': 'epsg:4326'} tests/test_rio_warp.py:348: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': u'epsg:4326', 'no_defs': True}) ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': u'epsg:4326', 'no_defs': True}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 10, 15. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': u'epsg:4326', 'no_defs': True}) __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': u'epsg:4326', 'no_defs': True}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 10, 15. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 346 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 347 DEBUG Entering Dataset context. test_rio_warp.py 348 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 348 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 360 DEBUG Dataset has been stopped. test_rio_warp.py 360 DEBUG Dataset has been closed. test_rio_warp.py 360 DEBUG Exited Dataset context. test_rio_warp.py 360 DEBUG Dataset has been stopped. test_rio_warp.py 360 DEBUG Dataset has been closed. test_rio_warp.py 360 DEBUG Exited Dataset context. ___________________________ test_warp_reproject_like ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_like0') def test_warp_reproject_like(runner, tmpdir): likename = str(tmpdir.join('like.tif')) kwargs = { "crs": {'init': 'epsg:4326'}, "transform": (-106.523, 0.001, 0, 39.6395, 0, -0.001), "count": 1, "dtype": rasterio.uint8, "driver": "GTiff", "width": 10, "height": 10, "nodata": 0 } with rasterio.Env(): with rasterio.open(likename, 'w', **kwargs) as dst: data = np.zeros((10, 10), dtype=rasterio.uint8) dst.write(data, indexes=1) srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--like', likename]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(outputname) as output: > assert output.crs == {'init': 'epsg:4326'} tests/test_rio_warp.py:389: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: 1 DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 10, 10. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_warp.py 377 DEBUG Entering Dataset context. test_rio_warp.py 379 DEBUG Dataset has been stopped. test_rio_warp.py 379 DEBUG Dataset has been closed. test_rio_warp.py 379 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. warp.py 162 DEBUG Entering Dataset context. warp.py 166 DEBUG Dataset has been stopped. warp.py 166 DEBUG Dataset has been closed. warp.py 166 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: 1 warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 10, 10. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 388 DEBUG Entering Dataset context. test_rio_warp.py 389 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 389 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_rio_warp.py 392 DEBUG Dataset has been stopped. test_rio_warp.py 392 DEBUG Dataset has been closed. test_rio_warp.py 392 DEBUG Exited Dataset context. ________________________ test_warp_reproject_nolostdata ________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_nolostdata0') def test_warp_reproject_nolostdata(runner, tmpdir): srcname = 'tests/data/world.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:3857']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:400: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_warp_reproject_check_invert _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_reproject_check_inve0') def test_warp_reproject_check_invert(runner, tmpdir): srcname = 'tests/data/world.rgb.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--check-invert-proj', 'yes', '--dst-crs', 'EPSG:3759']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:457: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True, 'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________________ test_update_tags _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_update_tags(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.update_tags(a='1', b='2') f.update_tags(1, c=3) with pytest.raises(IndexError): f.update_tags(4, d=4) assert f.tags() == {'AREA_OR_POINT': 'Area', 'a': '1', 'b': '2'} assert ('c', '3') in f.tags(1).items() > info = subprocess.check_output(["gdalinfo", tiffname]).decode('utf-8') tests/test_update.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/tests/data/RGB.byte.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_IllegalArg in /usr/src/tmp/pytest-of-builder/pytest-0/tests/data/RGB.byte.tif: GDALDataset::GetRasterBand(4) - Illegal band # DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 14 DEBUG Entering Dataset context. test_update.py 18 ERROR CPLE_IllegalArg in /usr/src/tmp/pytest-of-builder/pytest-0/tests/data/RGB.byte.tif: GDALDataset::GetRasterBand(4) - Illegal band # test_update.py 20 DEBUG Dataset has been stopped. test_update.py 20 DEBUG Dataset has been closed. test_update.py 20 DEBUG Exited Dataset context. _____________________________ test_update_spatial ______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_update_spatial(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.transform = affine.Affine.from_gdal(1.0, 1.0, 0.0, 0.0, 0.0, -1.0) f.crs = {'init': 'epsg:4326'} with rasterio.open(tiffname) as f: assert list(f.transform) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] assert list(f.affine.to_gdal()) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] > assert f.crs == {'init': 'epsg:4326'} tests/test_update.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 35 DEBUG Entering Dataset context. test_update.py 37 DEBUG Input CRS: {'init': 'epsg:4326'} test_update.py 37 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_update.py 37 DEBUG Exported WKT: test_update.py 37 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) test_update.py 37 DEBUG Dataset has been stopped. test_update.py 37 DEBUG Dataset has been closed. test_update.py 37 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_update.py 38 DEBUG Entering Dataset context. test_update.py 41 DEBUG PROJ.4 to be imported: '+wktext' test_update.py 41 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_update.py 41 DEBUG Dataset has been stopped. test_update.py 41 DEBUG Dataset has been closed. test_update.py 41 DEBUG Exited Dataset context. ___________________________ test_update_spatial_epsg ___________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-0/tests/data') def test_update_spatial_epsg(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.transform = affine.Affine.from_gdal(1.0, 1.0, 0.0, 0.0, 0.0, -1.0) f.crs = 'EPSG:4326' with rasterio.open(tiffname) as f: assert list(f.transform) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] assert list(f.affine.to_gdal()) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] > assert f.crs == {'init': 'epsg:4326'} tests/test_update.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: 'EPSG:4326' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: 'EPSG:4326' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 46 DEBUG Entering Dataset context. test_update.py 48 DEBUG Input CRS: 'EPSG:4326' test_update.py 48 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_update.py 48 DEBUG Exported WKT: test_update.py 48 DEBUG Self CRS: 'EPSG:4326' test_update.py 48 DEBUG Dataset has been stopped. test_update.py 48 DEBUG Dataset has been closed. test_update.py 48 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_update.py 49 DEBUG Entering Dataset context. test_update.py 52 DEBUG PROJ.4 to be imported: '+wktext' test_update.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_update.py 52 DEBUG Dataset has been stopped. test_update.py 52 DEBUG Dataset has been closed. test_update.py 52 DEBUG Exited Dataset context. ________________________________ test_transform ________________________________ def test_transform(): """2D and 3D.""" WGS84_crs = {'init': 'EPSG:4326'} WGS84_points = ([12.492269], [41.890169], [48.]) ECEF_crs = {'init': 'EPSG:4978'} ECEF_points = ([4642610.], [1028584.], [4236562.]) > ECEF_result = transform(WGS84_crs, ECEF_crs, *WGS84_points) tests/test_warp.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ____________________________ test_transform_bounds _____________________________ def test_transform_bounds(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: l, b, r, t = src.bounds > assert np.allclose( transform_bounds(src.crs, {'init': 'EPSG:4326'}, l, b, r, t), ( -78.95864996545055, 23.564991210854686, -76.57492370013823, 25.550873767433984 ) ) tests/test_warp.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 92 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_warp.py 94 DEBUG Dataset has been stopped. test_warp.py 94 DEBUG Dataset has been closed. test_warp.py 94 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_transform_bounds_densify _________________________ def test_transform_bounds_densify(): # This transform is non-linear along the edges, so densification produces # a different result than otherwise src_crs = {'init': 'EPSG:4326'} dst_crs = {'init': 'EPSG:32610'} > assert np.allclose( transform_bounds( src_crs, dst_crs, -120, 40, -80, 64, densify_pts=0 ), ( 646695.227266598, 4432069.056898901, 4201818.984205882, 7807592.187464975 ) ) tests/test_warp.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. _______________________ test_transform_bounds_no_change ________________________ def test_transform_bounds_no_change(): """Make sure that going from and to the same crs causes no change.""" with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: l, b, r, t = src.bounds > assert np.allclose( transform_bounds(src.crs, src.crs, l, b, r, t), src.bounds ) tests/test_warp.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 138 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_warp.py 140 DEBUG Dataset has been stopped. test_warp.py 140 DEBUG Dataset has been closed. test_warp.py 140 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_calculate_default_transform _______________________ def test_calculate_default_transform(): target_transform = Affine( 0.0028535715391804096, 0.0, -78.95864996545055, 0.0, -0.0028535715391804096, 25.550873767433984) with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: wgs84_crs = {'init': 'EPSG:4326'} dst_transform, width, height = calculate_default_transform( > src.crs, wgs84_crs, src.width, src.height, *src.bounds) tests/test_warp.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 162 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_warp.py 169 DEBUG Dataset has been stopped. test_warp.py 169 DEBUG Dataset has been closed. test_warp.py 169 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_calculate_default_transform_single_resolution ______________ def test_calculate_default_transform_single_resolution(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: target_resolution = 0.1 target_transform = Affine( target_resolution, 0.0, -78.95864996545055, 0.0, -target_resolution, 25.550873767433984 ) dst_transform, width, height = calculate_default_transform( src.crs, {'init': 'EPSG:4326'}, src.width, src.height, > *src.bounds, resolution=target_resolution ) tests/test_warp.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 174 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_warp.py 187 DEBUG Dataset has been stopped. test_warp.py 187 DEBUG Dataset has been closed. test_warp.py 187 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_calculate_default_transform_multiple_resolutions _____________ def test_calculate_default_transform_multiple_resolutions(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: target_resolution = (0.2, 0.1) target_transform = Affine( target_resolution[0], 0.0, -78.95864996545055, 0.0, -target_resolution[1], 25.550873767433984 ) dst_transform, width, height = calculate_default_transform( src.crs, {'init': 'EPSG:4326'}, src.width, src.height, > *src.bounds, resolution=target_resolution ) tests/test_warp.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 192 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. test_warp.py 206 DEBUG Dataset has been stopped. test_warp.py 206 DEBUG Dataset has been closed. test_warp.py 206 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________________________ test_reproject_ndarray ____________________________ def test_reproject_ndarray(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 211 DEBUG Entering Dataset context. test_warp.py 212 DEBUG Dataset has been stopped. test_warp.py 212 DEBUG Dataset has been closed. test_warp.py 212 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_reproject_epsg ______________________________ def test_reproject_epsg(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = {'init': 'EPSG:3857'} out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 241 DEBUG Entering Dataset context. test_warp.py 242 DEBUG Dataset has been stopped. test_warp.py 242 DEBUG Dataset has been closed. test_warp.py 242 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________ test_reproject_out_of_bounds _________________________ def test_reproject_out_of_bounds(): """Using EPSG code is not appropriate for the transform. Should return blank image. """ with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = {'init': 'EPSG:32619'} out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 263 DEBUG Entering Dataset context. test_warp.py 264 DEBUG Dataset has been stopped. test_warp.py 264 DEBUG Dataset has been closed. test_warp.py 264 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________ test_reproject_nodata[options0-6215] _____________________ options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata(options, expected): > params = default_reproject_params() tests/test_warp.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________ test_reproject_nodata[options1-4005] _____________________ options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata(options, expected): > params = default_reproject_params() tests/test_warp.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________ test_reproject_nodata_nan[options0-6215] ___________________ options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata_nan(options, expected): > params = default_reproject_params() tests/test_warp.py:308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________ test_reproject_nodata_nan[options1-4005] ___________________ options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata_nan(options, expected): > params = default_reproject_params() tests/test_warp.py:308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_reproject_dst_nodata_default[options0-6215] _______________ options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_dst_nodata_default(options, expected): """If nodata is not provided, destination will be filled with 0.""" > params = default_reproject_params() tests/test_warp.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_reproject_dst_nodata_default[options1-4005] _______________ options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_dst_nodata_default(options, expected): """If nodata is not provided, destination will be filled with 0.""" > params = default_reproject_params() tests/test_warp.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_invalid_dst_nodata _______________________ def test_reproject_invalid_dst_nodata(): """dst_nodata must be in value range of data type.""" > params = default_reproject_params() tests/test_warp.py:359: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_missing_src_nodata _______________________ def test_reproject_missing_src_nodata(): """src_nodata is required if dst_nodata is not None.""" > params = default_reproject_params() tests/test_warp.py:380: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_invalid_src_nodata _______________________ def test_reproject_invalid_src_nodata(): """src_nodata must be in range for data type.""" > params = default_reproject_params() tests/test_warp.py:400: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_reproject_multi _____________________________ def test_reproject_multi(): """Ndarry to ndarray.""" with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read() dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) destin = np.empty(source.shape, dtype=np.uint8) reproject( source, destin, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 422 DEBUG Entering Dataset context. test_warp.py 423 DEBUG Dataset has been stopped. test_warp.py 423 DEBUG Dataset has been closed. test_warp.py 423 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_warp_from_file ______________________________ def test_warp_from_file(): """File to ndarray.""" with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) destin = np.empty(src.shape, dtype=np.uint8) reproject( rasterio.band(src, 1), destin, dst_transform=DST_TRANSFORM, > dst_crs=dst_crs) tests/test_warp.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created temp destination dataset. DEBUG:rasterio._base:PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' DEBUG:rasterio._warp:CRS for temp destination dataset: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]]. ERROR:rasterio._gdal:CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 451 DEBUG Entering Dataset context. warp.py 276 DEBUG Created temp destination dataset. warp.py 276 DEBUG PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' warp.py 276 DEBUG CRS for temp destination dataset: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]]. warp.py 276 ERROR CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. test_warp.py 470 DEBUG Dataset has been stopped. test_warp.py 470 DEBUG Dataset has been closed. test_warp.py 470 DEBUG Exited Dataset context. ____________________________ test_warp_from_to_file ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_from_to_file0') def test_warp_from_to_file(tmpdir): """File to file.""" tiffname = str(tmpdir.join('foo.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) kwargs = src.meta.copy() kwargs.update( transform=DST_TRANSFORM, crs=dst_crs) with rasterio.open(tiffname, 'w', **kwargs) as dst: for i in (1, 2, 3): > reproject(rasterio.band(src, i), rasterio.band(dst, i)) tests/test_warp.py:497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'nadgrids': '@null', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'units': 'm', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True} DEBUG:rasterio._io:PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'units': 'm', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'nadgrids': '@null', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True}) DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Params: +a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 477 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: {'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'nadgrids': '@null', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'units': 'm', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True} __init__.py 193 DEBUG PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'units': 'm', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'nadgrids': '@null', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Params: +a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_warp.py 495 DEBUG Entering Dataset context. warp.py 276 ERROR CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. test_warp.py 497 DEBUG Dataset has been stopped. test_warp.py 497 DEBUG Dataset has been closed. test_warp.py 497 DEBUG Exited Dataset context. test_warp.py 497 DEBUG Dataset has been stopped. test_warp.py 497 DEBUG Dataset has been closed. test_warp.py 497 DEBUG Exited Dataset context. _________________________ test_warp_from_to_file_multi _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_warp_from_to_file_multi0') def test_warp_from_to_file_multi(tmpdir): """File to file.""" tiffname = str(tmpdir.join('foo.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) kwargs = src.meta.copy() kwargs.update( transform=DST_TRANSFORM, crs=dst_crs) with rasterio.open(tiffname, 'w', **kwargs) as dst: for i in (1, 2, 3): reproject( rasterio.band(src, i), rasterio.band(dst, i), > num_threads=2) tests/test_warp.py:526: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'nadgrids': '@null', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'units': 'm', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True} DEBUG:rasterio._io:PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'units': 'm', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'nadgrids': '@null', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True}) DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Params: +a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 503 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: {'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'nadgrids': '@null', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'units': 'm', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True} __init__.py 193 DEBUG PROJ.4 to be imported: '+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'a': 6378137, 'lon_0': 0.0, 'k': 1.0, 'y_0': 0, 'units': 'm', 'no_defs': True, 'proj': 'merc', 'x_0': 0.0, 'nadgrids': '@null', 'lat_ts': 0.0, 'b': 6378137, 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Params: +a=6378137 +lon_0=0.0 +k=1.0 +y_0=0 +units=m +no_defs +proj=merc +x_0=0.0 +nadgrids=@null +lat_ts=0.0 +b=6378137 +wktext __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_warp.py 521 DEBUG Entering Dataset context. warp.py 276 ERROR CPLE_NotSupported in Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. test_warp.py 526 DEBUG Dataset has been stopped. test_warp.py 526 DEBUG Dataset has been closed. test_warp.py 526 DEBUG Exited Dataset context. test_warp.py 526 DEBUG Dataset has been stopped. test_warp.py 526 DEBUG Dataset has been closed. test_warp.py 526 DEBUG Exited Dataset context. _____________________________ test_transform_geom ______________________________ def test_transform_geom(): geom = { 'type': 'Polygon', 'coordinates': ( ((798842.3090855901, 6569056.500655151), (756688.2826828464, 6412397.888771972), (755571.0617232556, 6408461.009397383), (677605.2284582685, 6425600.39266733), (677605.2284582683, 6425600.392667332), (670873.3791649605, 6427248.603432341), (664882.1106069803, 6407585.48425362), (663675.8662823177, 6403676.990080649), (485120.71963574126, 6449787.167760638), (485065.55660851026, 6449802.826920689), (485957.03982722526, 6452708.625101285), (487541.24541826674, 6457883.292107048), (531008.5797472061, 6605816.560367976), (530943.7197027118, 6605834.9333479265), (531888.5010308184, 6608940.750411527), (533299.5981959199, 6613962.642851984), (533403.6388841148, 6613933.172096095), (576345.6064638699, 6761983.708069147), (577649.6721159086, 6766698.137844516), (578600.3589008929, 6770143.99782289), (578679.4732294685, 6770121.638265098), (655836.640492081, 6749376.357102599), (659913.0791150068, 6764770.1314677475), (661105.8478791204, 6769515.168134831), (661929.4670843681, 6772800.8565198565), (661929.4670843673, 6772800.856519875), (661975.1582566603, 6772983.354777632), (662054.7979028501, 6772962.86384242), (841909.6014891531, 6731793.200435557), (840726.455490463, 6727039.8672589315), (798842.3090855901, 6569056.500655151)),)} > result = transform_geom('EPSG:3373', 'EPSG:4326', geom) tests/test_warp.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:96: in transform_geom precision) rasterio/_warp.pyx:86: in rasterio._warp._transform_geom src = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ------------------------------ Captured log call ------------------------------- warp.py 96 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ____________ test_resample_default_invert_proj[Resampling.nearest] _____________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.bilinear] ____________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________ test_resample_default_invert_proj[Resampling.cubic] ______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __________ test_resample_default_invert_proj[Resampling.cubic_spline] __________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.lanczos] _____________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.average] _____________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.mode] ______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.max] _______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.min] _______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.med] _______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_resample_default_invert_proj[Resampling.q1] _______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_resample_default_invert_proj[Resampling.q3] _______________ method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________________ test_reproject_identity ____________________________ def test_reproject_identity(): """Reproject with an identity matrix.""" # note the affines are both positive e, src is identity src = np.random.random(25).reshape((1, 5, 5)) srcaff = Affine(1.0, 0.0, 0.0, 0.0, 1.0, 0.0) # Identity srccrs = {'init': 'epsg:3857'} dst = np.empty(shape=(1, 10, 10)) dstaff = Affine(0.5, 0.0, 0.0, 0.0, 0.5, 0.0) dstcrs = {'init': 'epsg:3857'} with rasterio.Env(): reproject( src, dst, src_transform=srcaff, src_crs=srccrs, dst_transform=dstaff, dst_crs=dstcrs, > resampling=Resampling.nearest) tests/test_warp.py:738: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________________ test_identity _________________________________ def test_identity(): """Get the same transform and dimensions back for same crs.""" # Tile: [53, 96, 8] src_crs = dst_crs = 'EPSG:3857' width = height = 1000 left, bottom, right, top = ( -11740727.544603072, 4852834.0517692715, -11584184.510675032, 5009377.085697309) transform = from_bounds(left, bottom, right, top, width, height) with rasterio.Env(): res_transform, res_width, res_height = _calculate_default_transform( > src_crs, dst_crs, width, height, left, bottom, right, top) tests/test_warp_transform.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 24 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________ test_gdal_transform_notnull __________________________ def test_gdal_transform_notnull(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( src_crs={'init': 'EPSG:4326'}, dst_crs={'init': 'EPSG:32610'}, width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 54 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_gdal_transform_fail_dst_crs _______________________ def test_gdal_transform_fail_dst_crs(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( {'init': 'EPSG:4326'}, '+proj=foobar', width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:552: in rasterio._warp._calculate_default_transform with InMemoryRaster( rasterio/_io.pyx:1968: in rasterio._io.InMemoryRaster.__cinit__ osr = _base._osr_from_crs(crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 68 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_gdal_transform_fail_src_crs _______________________ def test_gdal_transform_fail_src_crs(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( '+proj=foobar', {'init': 'EPSG:32610'}, width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 81 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________________ test_context _________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_context0') def test_context(tmpdir): name = str(tmpdir.join("test_context.tif")) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, dtype=rasterio.ubyte) as s: assert s.name == name assert s.driver == 'GTiff' assert not s.closed assert s.count == 1 assert s.width == 100 assert s.height == 100 assert s.shape == (100, 100) assert s.indexes == (1,) assert repr(s) == "" % name assert s.closed assert s.count == 1 assert s.width == 100 assert s.height == 100 assert s.shape == (100, 100) assert repr(s) == "" % name > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_context0/test_context.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 54 DEBUG Entering Dataset context. test_write.py 63 DEBUG Dataset has been stopped. test_write.py 63 DEBUG Dataset has been closed. test_write.py 63 DEBUG Exited Dataset context. _______________________________ test_write_ubyte _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte1') def test_write_ubyte(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte1/sub/test_write_ubyte.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ____________________________ test_write_ubyte_multi ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi0') def test_write_ubyte_multi(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi0/sub/test_write_ubyte_multi.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError _________________________ test_write_ubyte_multi_list __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi_list0') def test_write_ubyte_multi_list(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi_list.tif")) a = np.array([np.ones((100, 100), dtype=rasterio.ubyte) * 127]) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi_list0/sub/test_write_ubyte_multi_list.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ___________________________ test_write_ubyte_multi_3 ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi_30') def test_write_ubyte_multi_3(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi_list.tif")) arr = np.array(3 * [np.ones((100, 100), dtype=rasterio.ubyte) * 127]) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=3, > dtype=arr.dtype) as s: tests/test_write.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_ubyte_multi_30/sub/test_write_ubyte_multi_list.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 3, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError _______________________________ test_write_float _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_float0') def test_write_float(tmpdir): name = str(tmpdir.join("test_write_float.tif")) a = np.ones((100, 100), dtype=rasterio.float32) * 42.0 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, dtype=rasterio.float32) as s: assert s.dtypes == (rasterio.float32, rasterio.float32) s.write(a, indexes=1) s.write(a, indexes=2) > info = subprocess.check_output(["gdalinfo", "-stats", name]).decode('utf-8') tests/test_write.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '-stats', '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_float0/test_write_float.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 123 DEBUG Entering Dataset context. test_write.py 126 DEBUG Dataset has been stopped. test_write.py 126 DEBUG Dataset has been closed. test_write.py 126 DEBUG Exited Dataset context. ___________________________ test_write_crs_transform ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform0') def test_write_crs_transform(tmpdir): name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs={'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18}, transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform0/test_write_crs_transform.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: {'units': 'm', 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'zone': 18} DEBUG:rasterio._io:PROJ.4 to be imported: '+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'zone': 18, 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'units': 'm', 'wktext': True}) DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: {'units': 'm', 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'zone': 18} __init__.py 193 DEBUG PROJ.4 to be imported: '+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'zone': 18, 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'units': 'm', 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 141 DEBUG Entering Dataset context. test_write.py 142 DEBUG Dataset has been stopped. test_write.py 142 DEBUG Dataset has been closed. test_write.py 142 DEBUG Exited Dataset context. _______________________ test_write_crs_transform_affine ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform_affin0') def test_write_crs_transform_affine(tmpdir): name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs={'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18}, affine=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform_affin0/test_write_crs_transform.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: {'units': 'm', 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'zone': 18} DEBUG:rasterio._io:PROJ.4 to be imported: '+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'zone': 18, 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'units': 'm', 'wktext': True}) DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: {'units': 'm', 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'zone': 18} __init__.py 193 DEBUG PROJ.4 to be imported: '+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+zone=18 +ellps=WGS84 +no_defs +proj=utm +units=m +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'zone': 18, 'ellps': 'WGS84', 'no_defs': True, 'proj': 'utm', 'units': 'm', 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 161 DEBUG Entering Dataset context. test_write.py 162 DEBUG Dataset has been stopped. test_write.py 162 DEBUG Dataset has been closed. test_write.py 162 DEBUG Exited Dataset context. __________________________ test_write_crs_transform_2 __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform_20') def test_write_crs_transform_2(tmpdir): """Using 'EPSG:32618' as CRS.""" name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs='EPSG:32618', transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) > assert s.crs.to_dict() == {'init': 'epsg:32618'} E AssertionError: assert {} == {'init': 'epsg:32618'} E Right contains more items: E {'init': 'epsg:32618'} E Use -v to get the full diff tests/test_write.py:183: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: 'EPSG:32618' ERROR:rasterio._gdal:CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: 'EPSG:32618' DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: 'EPSG:32618' __init__.py 193 ERROR CPLE_OpenFailed in Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: 'EPSG:32618' __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 181 DEBUG Entering Dataset context. test_write.py 182 DEBUG Dataset has been stopped. test_write.py 182 DEBUG Dataset has been closed. test_write.py 182 DEBUG Exited Dataset context. __________________________ test_write_crs_transform_3 __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform_30') def test_write_crs_transform_3(tmpdir): """Using WKT as CRS.""" name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] wkt = 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs=wkt, transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python2.7/subprocess.py:216: in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) /usr/lib/python2.7/subprocess.py:394: in __init__ errread, errwrite) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_crs_transform_30/test_write_crs_transform.tif'] executable = 'gdalinfo', preexec_fn = None, close_fds = False, cwd = None env = None, universal_newlines = False, startupinfo = None, creationflags = 0 shell = False, to_close = set([14]), p2cread = None, p2cwrite = None c2pread = 14, c2pwrite = 15, errread = None, errwrite = None def _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite): """Execute program (POSIX version)""" if isinstance(args, types.StringTypes): args = [args] else: args = list(args) if shell: args = ["/bin/sh", "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] def _close_in_parent(fd): os.close(fd) to_close.remove(fd) # For transferring possible exec failure from child to parent # The first char specifies the exception type: 0 means # OSError, 1 means some other error. errpipe_read, errpipe_write = self.pipe_cloexec() try: try: with self._disabling_gc_lock: gc_was_enabled = gc.isenabled() # Disable gc to avoid bug where gc -> file_dealloc -> # write to stderr -> hang. # https://bugs.python.org/issue1336 gc.disable() try: self.pid = os.fork() except: if gc_was_enabled: gc.enable() raise self._child_created = True if self.pid == 0: # Child try: # Close parent's pipe ends if p2cwrite is not None: os.close(p2cwrite) if c2pread is not None: os.close(c2pread) if errread is not None: os.close(errread) os.close(errpipe_read) # When duping fds, if there arises a situation # where one of the fds is either 0, 1 or 2, it # is possible that it is overwritten (#12607). if c2pwrite == 0: c2pwrite = os.dup(c2pwrite) if errwrite == 0 or errwrite == 1: errwrite = os.dup(errwrite) # Dup fds for child def _dup2(a, b): # dup2() removes the CLOEXEC flag but # we must do it ourselves if dup2() # would be a no-op (issue #10806). if a == b: self._set_cloexec_flag(a, False) elif a is not None: os.dup2(a, b) _dup2(p2cread, 0) _dup2(c2pwrite, 1) _dup2(errwrite, 2) # Close pipe fds. Make sure we don't close the # same fd more than once, or standard fds. closed = { None } for fd in [p2cread, c2pwrite, errwrite]: if fd not in closed and fd > 2: os.close(fd) closed.add(fd) if cwd is not None: os.chdir(cwd) if preexec_fn: preexec_fn() # Close all other fds, if asked for - after # preexec_fn(), which may open FDs. if close_fds: self._close_fds(but=errpipe_write) if env is None: os.execvp(executable, args) else: os.execvpe(executable, args, env) except: exc_type, exc_value, tb = sys.exc_info() # Save the traceback and attach it to the exception object exc_lines = traceback.format_exception(exc_type, exc_value, tb) exc_value.child_traceback = ''.join(exc_lines) os.write(errpipe_write, pickle.dumps(exc_value)) finally: # This exitcode won't be reported to applications, so it # really doesn't matter what we return. os._exit(255) # Parent if gc_was_enabled: gc.enable() finally: # be sure the FD is closed no matter what os.close(errpipe_write) # Wait for exec to fail or succeed; possibly raising exception data = _eintr_retry_call(os.read, errpipe_read, 1048576) pickle_bits = [] while data: pickle_bits.append(data) data = _eintr_retry_call(os.read, errpipe_read, 1048576) data = "".join(pickle_bits) finally: if p2cread is not None and p2cwrite is not None: _close_in_parent(p2cread) if c2pwrite is not None and c2pread is not None: _close_in_parent(c2pwrite) if errwrite is not None and errread is not None: _close_in_parent(errwrite) # be sure the FD is closed no matter what os.close(errpipe_read) if data != "": try: _eintr_retry_call(os.waitpid, self.pid, 0) except OSError as e: if e.errno != errno.ECHILD: raise child_exception = pickle.loads(data) > raise child_exception E OSError: [Errno 2] No such file or directory /usr/lib/python2.7/subprocess.py:1047: OSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] DEBUG:rasterio._io:Self CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] __init__.py 193 DEBUG Self CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 202 DEBUG Entering Dataset context. test_write.py 203 DEBUG Dataset has been stopped. test_write.py 203 DEBUG Dataset has been closed. test_write.py 203 DEBUG Exited Dataset context. _______________________________ test_write_meta ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_meta0') def test_write_meta(tmpdir): name = str(tmpdir.join("test_write_meta.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 meta = dict(driver='GTiff', width=100, height=100, count=1) > with rasterio.open(name, 'w', dtype=a.dtype, **meta) as s: tests/test_write.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_meta0/test_write_meta.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ test_write_nodata _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_nodata0') def test_write_nodata(tmpdir): name = str(tmpdir.join("test_write_nodata.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, > dtype=a.dtype, nodata=0) as s: tests/test_write.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_nodata0/test_write_nodata.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 2, crs = None transform = None, dtype = dtype('uint8'), nodata = 0, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ test_guard_nodata _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_guard_nodata0') def test_guard_nodata(tmpdir): name = str(tmpdir.join("test_guard_nodata.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with pytest.raises(ValueError): rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, > dtype=a.dtype, nodata=-1) tests/test_write.py:240: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_guard_nodata0/test_guard_nodata.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 2, crs = None transform = None, dtype = dtype('uint8'), nodata = -1, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ________________________________ test_write_lzw ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-0/test_write_lzw0') def test_write_lzw(tmpdir): name = str(tmpdir.join("test_write_lzw.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, dtype=a.dtype, > compress='LZW') as s: tests/test_write.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-0/test_write_lzw0/test_write_lzw.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None kwargs = {'compress': 'LZW'} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError =============================== warnings summary =============================== /usr/lib/python2.7/site-packages/_pytest/config/findpaths.py:44 /usr/lib/python2.7/site-packages/_pytest/config/findpaths.py:44: RemovedInPytest4Warning: [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead. config=config, rasterio/__init__.py:193 /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() rasterio/warp.py:22 /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/warp.py:22: DeprecationWarning: RESAMPLING is deprecated, use Resampling instead. "RESAMPLING is deprecated, use Resampling instead.", DeprecationWarning) tests/test_band_masks.py::test_mask_flags_sidecar /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_features.py::test_shapes_band /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_mask_creation.py::test_create_internal_mask /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python2.7/site-packages/_pytest/python.py:166: FutureWarning: read_mask() is deprecated and will be removed by Rasterio 1.0. Please use read_masks() instead. testfunction(**testargs) tests/test_mask_creation.py::test_create_sidecar_mask /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_mask_creation.py::test_create_mask_windowed_sidecar /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_mask_creation.py::test_create_mask_windowed_internal /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_count_overviews_zero /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_one /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_two /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_average /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_gauss /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_test_unsupported_algo /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_plot.py::test_show_cmyk_interp /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/plot.py:89: NodataShadowWarning: The dataset's nodata attribute is shadowing the alpha band. All masks will be determined by the nodata attribute arr = source.read(rgb_indexes, masked=True) tests/test_profile.py::test_dataset_profile_property_tiled /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_profile.py::test_dataset_profile_property_untiled /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_profile.py::test_dataset_profile_creation_kwds /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_read.py::ReaderContextTest::test_read_nan_nodata /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:250: RuntimeWarning: invalid value encountered in greater a = s.read(masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:250: RuntimeWarning: invalid value encountered in less a = s.read(masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:258: RuntimeWarning: invalid value encountered in greater a = s.read(masked=False) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:258: RuntimeWarning: invalid value encountered in less a = s.read(masked=False) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:262: RuntimeWarning: invalid value encountered in greater a = s.read(window=((0, 2), (0, 2)), masked=True) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_read.py:262: RuntimeWarning: invalid value encountered in less a = s.read(window=((0, 2), (0, 2)), masked=True) tests/test_rio_info.py::test_edit_nodata_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_nodata /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_epsg /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_proj4 /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_obj /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_err_not_json /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_err_bad_array /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_affine /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_gdal /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/rio/edit_info.py:68: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. retval = guard_transform(value) tests/test_rio_info.py::test_edit_tags /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback_pass /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback_None /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback_pass /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_crs_callback_pass /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_crs_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_tags_callback_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_tags_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_like /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_nodata_like /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_all_like /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_main.py::test_version /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_main.py::test_gdal_version /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_merge.py::test_merge_with_colormap /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/test_rio_merge.py:77: UserWarning: This format doesn't support alpha in colormap entries. The value will be ignored. src.write_colormap(1, {0: (255, 0, 0, 255), 255: (0, 0, 0, 0)}) /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/rio/merge.py:74: UserWarning: This format doesn't support alpha in colormap entries. The value will be ignored. dst.write_colormap(1, colormap) tests/test_rio_merge.py::test_merge_warn /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/merge.py:120: UserWarning: Input file's nodata value, -1.0, is beyond the valid range of its data type, uint8. Consider overriding it using the --nodata option for better results. nodataval, dtype)) tests/test_rio_options.py::test_like_dataset_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_pass /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_0 /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_err /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_ls_none /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_build_ls /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_build_pow_ls /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_rebuild_ls /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_tags /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_band /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_spatial /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python2.7/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) tests/test_update.py::test_update_spatial_epsg /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_nodatavals /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_nodatavals_error /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_mask_true /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_mask_false /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_warp.py::test_reproject_ndarray /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/warp.py:250: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. if src_transform and guard_transform(src_transform).is_identity: /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/warp.py:256: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. src_transform = guard_transform(src_transform).to_gdal() tests/test_write.py::test_write_crs_transform_affine /usr/src/RPM/BUILD/python-module-rasterio-0.36.0/rasterio/__init__.py:163: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(affine) -- Docs: https://docs.pytest.org/en/latest/warnings.html = 197 failed, 420 passed, 7 skipped, 15 xfailed, 1 xpassed, 78 warnings in 48.22 seconds = + : + pushd ../python3 ~/RPM/BUILD/python3 ~/RPM/BUILD/python-module-rasterio-0.36.0 + xvfb-run python3 setup.py test _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Unsupported high keycode 372 for name ignored > X11 cannot support keycodes above 255. > This warning only shows for the first high keycode. Errors from xkbcomp are not fatal to the X server running test running egg_info writing rasterio.egg-info/PKG-INFO writing dependency_links to rasterio.egg-info/dependency_links.txt writing entry points to rasterio.egg-info/entry_points.txt deleting rasterio.egg-info/requires.txt writing top-level names to rasterio.egg-info/top_level.txt reading manifest file 'rasterio.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.tif' found under directory 'tests/data' warning: no files found matching '*.txt' under directory 'tests/data' writing manifest file 'rasterio.egg-info/SOURCES.txt' running build_ext copying build/lib.linux-i686-3.7/rasterio/_base.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_io.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_copy.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_features.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_drivers.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_warp.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_fill.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_err.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_example.cpython-37m.so -> ./rasterio copying build/lib.linux-i686-3.7/rasterio/_crs.cpython-37m.so -> ./rasterio <30>Dec 20 10:29:48 dbus-daemon[70501]: [session uid=619 pid=70499] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=619 pid=70312 comm="") <30>Dec 20 10:29:48 dbus-daemon[70501]: [session uid=619 pid=70499] Successfully activated service 'org.a11y.Bus' /usr/src/RPM/BUILD/python3/tests/test_tool.py:6: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time. The backend was *originally* set to 'GTK3Cairo' by the following code: File "setup.py", line 300, in setup(**setup_args) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 233, in run self.run_tests() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 255, in run_tests exit=False, File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__ self.parseArgs(argv) File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib/python3.7/unittest/loader.py", line 349, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib/python3.7/unittest/loader.py", line 406, in _find_tests full_path, pattern, namespace) File "/usr/lib/python3.7/unittest/loader.py", line 483, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/rasterio/rio/main.py", line 69, in @click.pass_context File "/usr/lib/python3/site-packages/click_plugins/core.py", line 37, in decorator group.add_command(entry_point.load()) File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2411, in load return self.resolve() File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2417, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/src/RPM/BUILD/python3/rasterio/rio/insp.py", line 18, in import matplotlib.pyplot as plt File "/usr/lib/python3/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/lib/python3/site-packages/matplotlib/backends/__init__.py", line 16, in line for line in traceback.format_stack() mpl.use('agg') /usr/src/RPM/BUILD/python3/tests/test_reshape_image.py:8: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time. The backend was *originally* set to 'GTK3Cairo' by the following code: File "setup.py", line 300, in setup(**setup_args) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 233, in run self.run_tests() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 255, in run_tests exit=False, File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__ self.parseArgs(argv) File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib/python3.7/unittest/loader.py", line 349, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib/python3.7/unittest/loader.py", line 406, in _find_tests full_path, pattern, namespace) File "/usr/lib/python3.7/unittest/loader.py", line 483, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/rasterio/rio/main.py", line 69, in @click.pass_context File "/usr/lib/python3/site-packages/click_plugins/core.py", line 37, in decorator group.add_command(entry_point.load()) File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2411, in load return self.resolve() File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2417, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/src/RPM/BUILD/python3/rasterio/rio/insp.py", line 18, in import matplotlib.pyplot as plt File "/usr/lib/python3/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/lib/python3/site-packages/matplotlib/backends/__init__.py", line 16, in line for line in traceback.format_stack() mpl.use('agg') /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() /usr/src/RPM/BUILD/python3/tests/test_plot.py:6: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time. The backend was *originally* set to 'GTK3Cairo' by the following code: File "setup.py", line 300, in setup(**setup_args) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 233, in run self.run_tests() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 255, in run_tests exit=False, File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__ self.parseArgs(argv) File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib/python3.7/unittest/loader.py", line 349, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib/python3.7/unittest/loader.py", line 406, in _find_tests full_path, pattern, namespace) File "/usr/lib/python3.7/unittest/loader.py", line 483, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/rasterio/rio/main.py", line 69, in @click.pass_context File "/usr/lib/python3/site-packages/click_plugins/core.py", line 37, in decorator group.add_command(entry_point.load()) File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2411, in load return self.resolve() File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2417, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/src/RPM/BUILD/python3/rasterio/rio/insp.py", line 18, in import matplotlib.pyplot as plt File "/usr/lib/python3/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/lib/python3/site-packages/matplotlib/backends/__init__.py", line 16, in line for line in traceback.format_stack() mpl.use('agg') /usr/src/RPM/BUILD/python3/tests/test_deprecations.py:20: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time. The backend was *originally* set to 'GTK3Cairo' by the following code: File "setup.py", line 300, in setup(**setup_args) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 233, in run self.run_tests() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 255, in run_tests exit=False, File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__ self.parseArgs(argv) File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib/python3.7/unittest/loader.py", line 349, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib/python3.7/unittest/loader.py", line 406, in _find_tests full_path, pattern, namespace) File "/usr/lib/python3.7/unittest/loader.py", line 483, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/rasterio/rio/main.py", line 69, in @click.pass_context File "/usr/lib/python3/site-packages/click_plugins/core.py", line 37, in decorator group.add_command(entry_point.load()) File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2411, in load return self.resolve() File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2417, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/src/RPM/BUILD/python3/rasterio/rio/insp.py", line 18, in import matplotlib.pyplot as plt File "/usr/lib/python3/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/lib/python3/site-packages/matplotlib/backends/__init__.py", line 16, in line for line in traceback.format_stack() mpl.use('agg') /usr/src/RPM/BUILD/python3/tests/test_dataset_mask.py:9: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time. The backend was *originally* set to 'GTK3Cairo' by the following code: File "setup.py", line 300, in setup(**setup_args) File "/usr/lib/python3/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/lib/python3.7/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib/python3.7/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 233, in run self.run_tests() File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 255, in run_tests exit=False, File "/usr/lib/python3.7/unittest/main.py", line 100, in __init__ self.parseArgs(argv) File "/usr/lib/python3.7/unittest/main.py", line 124, in parseArgs self._do_discovery(argv[2:]) File "/usr/lib/python3.7/unittest/main.py", line 244, in _do_discovery self.createTests(from_discovery=True, Loader=Loader) File "/usr/lib/python3.7/unittest/main.py", line 154, in createTests self.test = loader.discover(self.start, self.pattern, self.top) File "/usr/lib/python3.7/unittest/loader.py", line 349, in discover tests = list(self._find_tests(start_dir, pattern)) File "/usr/lib/python3.7/unittest/loader.py", line 406, in _find_tests full_path, pattern, namespace) File "/usr/lib/python3.7/unittest/loader.py", line 483, in _find_test_path tests = self.loadTestsFromModule(package, pattern=pattern) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 191, in loadTestsFromName return self.loadTestsFromModule(obj) File "/usr/lib/python3/site-packages/setuptools/command/test.py", line 54, in loadTestsFromModule tests.append(self.loadTestsFromName(submodule)) File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName module = __import__(module_name) File "/usr/src/RPM/BUILD/python3/rasterio/rio/main.py", line 69, in @click.pass_context File "/usr/lib/python3/site-packages/click_plugins/core.py", line 37, in decorator group.add_command(entry_point.load()) File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2411, in load return self.resolve() File "/usr/lib/python3/site-packages/pkg_resources/__init__.py", line 2417, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/src/RPM/BUILD/python3/rasterio/rio/insp.py", line 18, in import matplotlib.pyplot as plt File "/usr/lib/python3/site-packages/matplotlib/pyplot.py", line 71, in from matplotlib.backends import pylab_setup File "/usr/lib/python3/site-packages/matplotlib/backends/__init__.py", line 16, in line for line in traceback.format_stack() mpl.use('agg') test_write_colormap_revolving_door (tests.test_revolvingdoor.RevolvingDoorTest) ... WARNING:rasterio._gdal:CPLE_AppDefined in b'Cannot find pcs.csv' WARNING:rasterio._gdal:CPLE_AppDefined in b'Cannot find datum.csv or gdal_datum.csv' WARNING:rasterio._gdal:CPLE_AppDefined in b'Cannot find ellipsoid.csv' WARNING:rasterio._gdal:CPLE_AppDefined in b'Cannot find prime_meridian.csv' /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ok test_context (tests.test_read.ReaderContextTest) ... ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ERROR test_derived_spatial (tests.test_read.ReaderContextTest) ... ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ERROR test_read_basic (tests.test_read.ReaderContextTest) ... /usr/src/RPM/BUILD/python3/tests/test_read.py:130: DeprecationWarning: Please use assertTrue instead. self.assert_(hasattr(a, 'mask')) ok test_read_indexes (tests.test_read.ReaderContextTest) ... ok test_read_nan_nodata (tests.test_read.ReaderContextTest) ... /usr/src/RPM/BUILD/python3/tests/test_read.py:250: RuntimeWarning: invalid value encountered in greater a = s.read(masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:250: RuntimeWarning: invalid value encountered in less a = s.read(masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:258: RuntimeWarning: invalid value encountered in greater a = s.read(masked=False) /usr/src/RPM/BUILD/python3/tests/test_read.py:258: RuntimeWarning: invalid value encountered in less a = s.read(masked=False) /usr/src/RPM/BUILD/python3/tests/test_read.py:262: RuntimeWarning: invalid value encountered in greater a = s.read(window=((0, 2), (0, 2)), masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:262: RuntimeWarning: invalid value encountered in less a = s.read(window=((0, 2), (0, 2)), masked=True) ok test_read_no_band (tests.test_read.ReaderContextTest) ... /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() ok test_read_out (tests.test_read.ReaderContextTest) ... ok test_read_out_dtype_fail (tests.test_read.ReaderContextTest) ... ok test_read_ubyte (tests.test_read.ReaderContextTest) ... ok test_read_ubyte_bad_index (tests.test_read.ReaderContextTest) ... ok test_read_ubyte_out (tests.test_read.ReaderContextTest) ... ok test_read_window (tests.test_read.ReaderContextTest) ... ok test_read_window_beyond (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows beyond ... ok test_read_window_overflow (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows that overflow ... ok test_read_window_overlap (tests.test_read.ReaderContextTest) Test graceful Numpy-like handling of windows beyond ... ok test_copy (tests.test_copy.CopyTest) ... ERROR test_block_coverage (tests.test_blocks.RasterBlocksTest) ... ok test_blocks (tests.test_blocks.RasterBlocksTest) ... ok test_read_window (tests.test_blocks.WindowReadTest) ... ok test_eval (tests.test_blocks.WindowTest) ... ok test_window_shape_None_start (tests.test_blocks.WindowTest) ... ok test_window_shape_None_stop (tests.test_blocks.WindowTest) ... ok test_window_shape_errors (tests.test_blocks.WindowTest) ... ok test_window_shape_negative (tests.test_blocks.WindowTest) ... ok test_window_shape_positive (tests.test_blocks.WindowTest) ... ok test_write_window (tests.test_blocks.WindowWriteTest) ... ERROR ====================================================================== ERROR: test_context (tests.test_read.ReaderContextTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "rasterio/_base.pyx", line 906, in rasterio._base._osr_from_crs with CPLErrors() as cple: File "rasterio/_base.pyx", line 934, in rasterio._base._osr_from_crs cple.check() File "rasterio/_err.pyx", line 196, in rasterio._err.CPLErrors.check raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_read.py", line 39, in test_context self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) File "rasterio/_crs.pyx", line 58, in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) File "rasterio/_base.pyx", line 937, in rasterio._base._osr_from_crs raise CRSError('Invalid CRS') rasterio.errors.CRSError: Invalid CRS ====================================================================== ERROR: test_derived_spatial (tests.test_read.ReaderContextTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "rasterio/_base.pyx", line 906, in rasterio._base._osr_from_crs with CPLErrors() as cple: File "rasterio/_base.pyx", line 934, in rasterio._base._osr_from_crs cple.check() File "rasterio/_err.pyx", line 196, in rasterio._err.CPLErrors.check raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_read.py", line 72, in test_derived_spatial self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) File "rasterio/_crs.pyx", line 58, in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) File "rasterio/_base.pyx", line 937, in rasterio._base._osr_from_crs raise CRSError('Invalid CRS') rasterio.errors.CRSError: Invalid CRS ====================================================================== ERROR: test_copy (tests.test_copy.CopyTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_copy.py", line 27, in test_copy info = subprocess.check_output(["gdalinfo", name]) File "/usr/lib/python3.7/subprocess.py", line 395, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 472, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.7/subprocess.py", line 775, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' ====================================================================== ERROR: test_write_window (tests.test_blocks.WindowWriteTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/src/RPM/BUILD/python3/tests/test_blocks.py", line 116, in test_write_window dtype=a.dtype) as s: File "/usr/src/RPM/BUILD/python3/rasterio/__init__.py", line 158, in open raise TypeError("invalid dtype: {0!r}".format(dtype)) TypeError: invalid dtype: dtype('uint8') ---------------------------------------------------------------------- Ran 27 tests in 0.183s FAILED (errors=4) Test failed: error: Test failed: + : + xvfb-run py.test3 _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root The XKEYBOARD keymap compiler (xkbcomp) reports: > Warning: Unsupported high keycode 372 for name ignored > X11 cannot support keycodes above 255. > This warning only shows for the first high keycode. Errors from xkbcomp are not fatal to the X server Test data present. ============================= test session starts ============================== platform linux -- Python 3.7.4, pytest-3.10.1, py-1.8.0, pluggy-0.11.0 rootdir: /usr/src/RPM/BUILD/python3, inifile: setup.cfg plugins: cov-2.7.1 collected 640 items tests/test_band.py . [ 0%] tests/test_band_masks.py .......... [ 1%] tests/test_blocks.py ..........F [ 3%] tests/test_checksum.py ...... [ 4%] tests/test_cli_main.py .. [ 4%] tests/test_colorinterp.py .s [ 5%] tests/test_colormap.py .. [ 5%] tests/test_coords.py ... [ 5%] tests/test_copy.py F [ 5%] tests/test_crs.py .FF.....FFF..F.FF.F.. [ 9%] tests/test_dataset_mask.py ........ [ 10%] tests/test_deprecations.py .....xX... [ 12%] tests/test_driver_management.py .... [ 12%] tests/test_dtypes.py ........x [ 14%] tests/test_env.py ...........ssFss [ 16%] tests/test_err.py .... [ 17%] tests/test_features.py ................................................. [ 24%] ....... [ 25%] tests/test_fillnodata.py ... [ 26%] tests/test_image_structure.py ............... [ 28%] tests/test_indexing.py ..................... [ 32%] tests/test_mask_creation.py ...x [ 32%] tests/test_meta.py .. [ 32%] tests/test_no_georef.py .. [ 33%] tests/test_nodata.py FF [ 33%] tests/test_open.py .... [ 34%] tests/test_options.py . [ 34%] tests/test_overviews.py ...... [ 35%] tests/test_pad.py . [ 35%] tests/test_plot.py .............. [ 37%] tests/test_png.py F [ 37%] tests/test_profile.py .................... [ 40%] tests/test_read.py FF................. [ 43%] tests/test_read_boundless.py ........... [ 45%] tests/test_read_resample.py ... [ 46%] tests/test_reshape_image.py ... [ 46%] tests/test_revolvingdoor.py . [ 46%] tests/test_rio_calc.py ........... [ 48%] tests/test_rio_convert.py FFFFF......... [ 50%] tests/test_rio_features.py FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.FFFFFF [ 57%] tests/test_rio_helpers.py ........ [ 58%] tests/test_rio_info.py ...FFF...............FFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 65%] FFFFFFFFFF. [ 67%] tests/test_rio_main.py .. [ 67%] tests/test_rio_merge.py ..F.............. [ 70%] tests/test_rio_options.py ......F.... [ 72%] tests/test_rio_overview.py FFFFF [ 73%] tests/test_rio_sample.py FFFFFFF [ 74%] tests/test_rio_stack.py ...... [ 75%] tests/test_rio_warp.py FFFFFFFFFFFFFFFFFF....FFFF...F [ 79%] tests/test_sampling.py .... [ 80%] tests/test_tags.py .... [ 81%] tests/test_tool.py ..... [ 81%] tests/test_tools_mask.py ..... [ 82%] tests/test_transform.py ........ [ 83%] tests/test_update.py F.FF.... [ 85%] tests/test_vfs.py ............. [ 87%] tests/test_warnings.py . [ 87%] tests/test_warp.py FFFF.FFFFFFFFFFFFFFFFFFFF..FFFFFFFsFFFFFxxxxxxxsxxxxx [ 95%] .F [ 95%] tests/test_warp_transform.py F.FFF. [ 96%] tests/test_write.py ....FFFFFFFFFFFFFF.. [100%] =================================== FAILURES =================================== ______________________ WindowWriteTest.test_write_window _______________________ self = def test_write_window(self): name = os.path.join(self.tempdir, "test_write_window.tif") a = np.ones((50, 50), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_blocks.py:116: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/tmpbpvlgsta/test_write_window.tif', mode = 'w' driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ CopyTest.test_copy ______________________________ self = def test_copy(self): name = os.path.join(self.tempdir, 'test_copy.tif') rasterio.copy( 'tests/data/RGB.byte.tif', name) > info = subprocess.check_output(["gdalinfo", name]) tests/test_copy.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/tmp5x0r7t2s/test_copy.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 8, c2pwrite = 10, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ______________________________ test_read_epsg3857 ______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_read_epsg38570') def test_read_epsg3857(tmpdir): tiffname = str(tmpdir.join('lol.tif')) subprocess.call([ 'gdalwarp', '-t_srs', 'EPSG:3857', > 'tests/data/RGB.byte.tif', tiffname]) tests/test_crs.py:25: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:323: in call with Popen(*popenargs, **kwargs) as p: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalwarp', '-t_srs', 'EPSG:3857', 'tests/data/RGB.byte.tif', '/usr/src/tmp/pytest-of-builder/pytest-1/test_read_epsg38570/lol.tif'] executable = b'gdalwarp', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = -1, c2pwrite = -1, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalwarp': 'gdalwarp' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError _______________________________ test_write_3857 ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_38570') def test_write_3857(tmpdir): src_path = str(tmpdir.join('lol.tif')) subprocess.call([ 'gdalwarp', '-t_srs', 'EPSG:3857', > 'tests/data/RGB.byte.tif', src_path]) tests/test_crs.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:323: in call with Popen(*popenargs, **kwargs) as p: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalwarp', '-t_srs', 'EPSG:3857', 'tests/data/RGB.byte.tif', '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_38570/lol.tif'] executable = b'gdalwarp', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = -1, c2pwrite = -1, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalwarp': 'gdalwarp' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ______________________________ test_is_geographic ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_is_geographic(): > assert CRS({'init': 'EPSG:4326'}).is_geographic is True tests/test_crs.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:20: in rasterio._crs._CRS.is_geographic osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- test_crs.py 96 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ______________________________ test_is_projected _______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_is_projected(): > assert CRS({'init': 'EPSG:3857'}).is_projected is True tests/test_crs.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:31: in rasterio._crs._CRS.is_projected osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- test_crs.py 110 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' _______________________________ test_is_same_crs _______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_is_same_crs(): crs1 = CRS({'init': 'EPSG:4326'}) crs2 = CRS({'init': 'EPSG:3857'}) > assert crs1 == crs1 tests/test_crs.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:42: in rasterio._crs._CRS.__eq__ osr_crs1 = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- test_crs.py 124 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ________________________________ test_is_valid _________________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_is_valid(): > assert CRS(init='EPSG:4326').is_valid tests/test_crs.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/crs.py:31: in is_valid return self.is_geographic or self.is_projected rasterio/_crs.pyx:20: in rasterio._crs._CRS.is_geographic osr_crs = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- crs.py 31 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' _____________________________ test_can_create_osr ______________________________ def test_can_create_osr(): > assert _can_create_osr({'init': 'EPSG:4326'}) E AssertionError: assert False E + where False = _can_create_osr({'init': 'EPSG:4326'}) tests/test_crs.py:159: AssertionError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- test_crs.py 159 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __________________________ test_can_create_osr_empty ___________________________ def test_can_create_osr_empty(): > assert _can_create_osr({}) E assert False E + where False = _can_create_osr({}) tests/test_crs.py:164: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ------------------------------ Captured log call ------------------------------- test_crs.py 164 DEBUG PROJ.4 to be imported: '+wktext' ____________________________ test_has_wkt_property _____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_has_wkt_property(): > assert CRS({'init': 'EPSG:4326'}).wkt.startswith('GEOGCS["WGS 84",DATUM') tests/test_crs.py:176: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- test_crs.py 176 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ___________________________ test_open_https_vsicurl ____________________________ gdalenv = None @mingdalversion def test_open_https_vsicurl(gdalenv): """Read from HTTPS URL.""" with rasterio.Env(): > with rasterio.open(httpstif) as dataset: tests/test_env.py:192: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/__init__.py:193: in open s.start() rasterio/_base.pyx:72: in rasterio._base.DatasetReader.start with CPLErrors() as cple: rasterio/_base.pyx:74: in rasterio._base.DatasetReader.start cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_HttpResponse: CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com rasterio/_err.pyx:196: CPLE_HttpResponse ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._drivers:Env has been started DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:New GDAL environment created DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_HttpResponse in b'CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 160 DEBUG Env has been started env.py 161 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 163 DEBUG New GDAL environment created env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 ERROR CPLE_HttpResponse in b'CURL error: Could not resolve host: landsat-pds.s3.amazonaws.com' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context --------------------------- Captured stderr teardown --------------------------- DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options ---------------------------- Captured log teardown ----------------------------- env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options _________________________________ test_nodata __________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_nodata0') def test_nodata(tmpdir): dst_path = str(tmpdir.join('lol.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: with rasterio.open(dst_path, 'w', **src.meta) as dst: assert dst.nodata == 0.0 assert dst.meta['nodata'] == 0.0 assert dst.nodatavals == (0.0, 0.0, 0.0) info = subprocess.check_output([ > 'gdalinfo', dst_path]) tests/test_nodata.py:19: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_nodata0/lol.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32618'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_nodata.py 13 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:32618'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:32618'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_nodata.py 14 DEBUG Entering Dataset context. test_nodata.py 17 DEBUG Dataset has been stopped. test_nodata.py 17 DEBUG Dataset has been closed. test_nodata.py 17 DEBUG Exited Dataset context. test_nodata.py 17 DEBUG Dataset has been stopped. test_nodata.py 17 DEBUG Dataset has been closed. test_nodata.py 17 DEBUG Exited Dataset context. _______________________________ test_set_nodata ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_set_nodata0') def test_set_nodata(tmpdir): dst_path = str(tmpdir.join('lol.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: meta = src.meta meta['nodata'] = 42 with rasterio.open(dst_path, 'w', **meta) as dst: assert dst.nodata == 42 assert dst.meta['nodata'] == 42 assert dst.nodatavals == (42, 42, 42) info = subprocess.check_output([ > 'gdalinfo', dst_path]) tests/test_nodata.py:37: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_set_nodata0/lol.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32618'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 42.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_nodata.py 29 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:32618'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:32618'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 42.000000 test_nodata.py 32 DEBUG Entering Dataset context. test_nodata.py 35 DEBUG Dataset has been stopped. test_nodata.py 35 DEBUG Dataset has been closed. test_nodata.py 35 DEBUG Exited Dataset context. test_nodata.py 35 DEBUG Dataset has been stopped. test_nodata.py 35 DEBUG Dataset has been closed. test_nodata.py 35 DEBUG Exited Dataset context. _______________________________ test_write_ubyte _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte0') def test_write_ubyte(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte.png")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='PNG', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_png.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte0/sub/test_write_ubyte.png' mode = 'w', driver = 'PNG', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ________________________ ReaderContextTest.test_context ________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: self = def test_context(self): with rasterio.open('tests/data/RGB.byte.tif') as s: self.assertEqual(s.name, 'tests/data/RGB.byte.tif') self.assertEqual(s.driver, 'GTiff') self.assertEqual(s.closed, False) self.assertEqual(s.count, 3) self.assertEqual(s.width, 791) self.assertEqual(s.height, 718) self.assertEqual(s.shape, (718, 791)) self.assertEqual(s.dtypes, tuple([rasterio.ubyte] * 3)) self.assertEqual(s.nodatavals, (0, 0, 0)) self.assertEqual(s.indexes, (1, 2, 3)) self.assertEqual(s.crs['init'], 'epsg:32618') > self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) tests/test_read.py:39: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_read.py 27 DEBUG Entering Dataset context. test_read.py 39 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_read.py 50 DEBUG Dataset has been stopped. test_read.py 50 DEBUG Dataset has been closed. test_read.py 50 DEBUG Exited Dataset context. ____________________ ReaderContextTest.test_derived_spatial ____________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: self = def test_derived_spatial(self): with rasterio.open('tests/data/RGB.byte.tif') as s: > self.assert_(s.crs.wkt.startswith('PROJCS'), s.crs.wkt) tests/test_read.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:58: in rasterio._crs._CRS.wkt osr = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_read.py 71 DEBUG Entering Dataset context. test_read.py 72 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_read.py 76 DEBUG Dataset has been stopped. test_read.py 76 DEBUG Dataset has been closed. test_read.py 76 DEBUG Exited Dataset context. _______________________________ test_clip_bounds _______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_clip_bounds0') def test_clip_bounds(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output, '--bounds'] + TEST_BBOX) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_convert.py:22: AssertionError ________________________________ test_clip_like ________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_clip_like0') def test_clip_like(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'clip', 'tests/data/shade.tif', output, '--like', 'tests/data/shade.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_convert.py:35: AssertionError ___________________________ test_clip_missing_params ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_clip_missing_params0') def test_clip_missing_params(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output]) assert result.exit_code == 2 > assert '--bounds or --like required' in result.output E assert '--bounds or --like required' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:49: AssertionError __________________________ test_clip_bounds_disjunct ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_clip_bounds_disjunct0') def test_clip_bounds_disjunct(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['clip', 'tests/data/shade.tif', output, '--bounds'] + [0, 0, 10, 10]) assert result.exit_code == 2 > assert '--bounds' in result.output E assert '--bounds' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:58: AssertionError ___________________________ test_clip_like_disjunct ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_clip_like_disjunct0') def test_clip_like_disjunct(runner, tmpdir): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'clip', 'tests/data/shade.tif', output, '--like', 'tests/data/RGB.byte.tif']) assert result.exit_code == 2 > assert '--like' in result.output E assert '--like' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "clip".\n' = .output tests/test_rio_convert.py:68: AssertionError __________________________________ test_mask ___________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask1') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask1/pixelated_image.tif' def test_mask(runner, tmpdir, basic_feature, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:32: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ____________________________ test_mask_all_touched _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_all_touched0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_all_touched0/pixelated_image.tif' def test_mask_all_touched(runner, tmpdir, basic_feature, basic_image, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--all', '--geojson-mask', '-'], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:53: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _______________________________ test_mask_invert _______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_invert0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_invert0/pixelated_image.tif' def test_mask_invert(runner, tmpdir, basic_feature, pixelated_image, pixelated_image_file): truth = pixelated_image truth[2:4, 2:4] = 0 output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--invert', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:76: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_mask_featurecollection __________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_featurecollection0') basic_featurecollection = {'features': [{'geometry': {'coordinates': [[(...), (...), (...), (...), (...)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'}], 'type': 'FeatureCollection'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_featurecollection0/pixelated_image.tif' def test_mask_featurecollection(runner, tmpdir, basic_featurecollection, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_featurecollection)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:94: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_mask_out_of_bounds ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_out_of_bounds0') basic_feature = {'geometry': {'coordinates': [[[-8.0, -8.0], [-8.0, -5.75], [-5.75, -5.75], [-5.75, -8.0], [-8.0, -8.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_out_of_bounds0/pixelated_image.tif' def test_mask_out_of_bounds(runner, tmpdir, basic_feature, pixelated_image_file): """ A GeoJSON mask that is outside bounds of raster should result in a blank image. """ coords = np.array(basic_feature['geometry']['coordinates']) - 10 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:119: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_mask_no_geojson _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_no_geojson0') pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_no_geojson0/pixelated_image.tif' def test_mask_no_geojson(runner, tmpdir, pixelated_image, pixelated_image_file): """ Mask without geojson input should simply return same raster as input """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:135: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. __________________________ test_mask_invalid_geojson ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_invalid_geojson0') pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_invalid_geojson0/pixelated_image.tif' def test_mask_invalid_geojson(runner, tmpdir, pixelated_image_file): """ Invalid GeoJSON should fail """ output = str(tmpdir.join('test.tif')) # Using invalid JSON result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--geojson-mask', '-'], input='{bogus: value}') assert result.exit_code == 2 > assert 'GeoJSON could not be read' in result.output E assert 'GeoJSON could not be read' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' = .output tests/test_rio_features.py:155: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ________________________________ test_mask_crop ________________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) def test_mask_crop(runner, tmpdir, basic_feature, pixelated_image): """ In order to test --crop option, we need to use a transform more similar to a normal raster, with a negative y pixel size. """ image = pixelated_image outfilename = str(tmpdir.join('pixelated_image.tif')) kwargs = { "crs": CRS({'init': 'epsg:4326'}), "transform": Affine(1, 0, 0, 0, -1, 0), "count": 1, "dtype": rasterio.uint8, "driver": "GTiff", "width": image.shape[1], "height": image.shape[0], "nodata": 255} with rasterio.open(outfilename, 'w', **kwargs) as out: out.write(image, indexes=1) output = str(tmpdir.join('test.tif')) truth = np.zeros((4, 3)) truth[1:3, 0:2] = 1 result = runner.invoke( main_group, ['mask', outfilename, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:195: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 183 DEBUG Entering Dataset context. test_rio_features.py 184 DEBUG Dataset has been stopped. test_rio_features.py 184 DEBUG Dataset has been closed. test_rio_features.py 184 DEBUG Exited Dataset context. __________________________ test_mask_crop_inverted_y ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_inverted_y0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_inverted_y0/pixelated_image.tif' def test_mask_crop_inverted_y(runner, tmpdir, basic_feature, pixelated_image_file): """ --crop option should also work if raster has a positive y pixel size (e.g., Affine.identity() ). """ output = str(tmpdir.join('test.tif')) truth = np.zeros((4, 3)) truth[1:3, 0:2] = 1 result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:220: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_mask_crop_out_of_bounds _________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_out_of_bounds0') basic_feature = {'geometry': {'coordinates': [[[-8.0, -8.0], [-8.0, -5.75], [-5.75, -5.75], [-5.75, -8.0], [-8.0, -8.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_out_of_bounds0/pixelated_image.tif' def test_mask_crop_out_of_bounds(runner, tmpdir, basic_feature, pixelated_image_file): """ A GeoJSON mask that is outside bounds of raster should fail with --crop option. """ coords = np.array(basic_feature['geometry']['coordinates']) - 10 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'mask', pixelated_image_file, output, '--crop', '--geojson-mask', '-'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'not allowed' in result.output E assert 'not allowed' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "mask".\n' = .output tests/test_rio_features.py:246: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. __________________________ test_mask_crop_and_invert ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_and_invert0') basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_mask_crop_and_invert0/pixelated_image.tif' def test_mask_crop_and_invert(runner, tmpdir, basic_feature, pixelated_image, pixelated_image_file): """ Adding crop and invert options should ignore invert option """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['mask', pixelated_image_file, output, '--crop', '--invert', '--geojson-mask', '-'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:260: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________________ test_shapes __________________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes0/pixelated_image.tif' def test_shapes(runner, pixelated_image_file): result = runner.invoke(main_group, ['shapes', pixelated_image_file]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:267: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_invalid_bidx ___________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_invalid_bidx0/pixelated_image.tif' def test_shapes_invalid_bidx(runner, pixelated_image_file): result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--bidx', 4]) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_features.py:279: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_sequence _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_sequence0/pixelated_image.tif' def test_shapes_sequence(runner, pixelated_image_file): """ --sequence option should produce 4 features in series rather than inside a feature collection. """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sequence']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:292: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_sequence_rs ____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_sequence_rs0/pixelated_image.tif' def test_shapes_sequence_rs(runner, pixelated_image_file): """ --rs option should use the feature separator character. """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sequence', '--rs']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:304: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ___________________________ test_shapes_with_nodata ____________________________ runner = pixelated_image = array([[ 1, 0, 0, 0, 0, 0, 0, 0, 255, 255], [ 0, 0, 0, 0, 0, 0, 0, 0, 255, 255], ... 0, 0, 0, 0, 0, 0, 0, 1, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_with_nodata0/pixelated_image.tif' def test_shapes_with_nodata(runner, pixelated_image, pixelated_image_file): """ An area of nodata should also be represented with a shape when using --with-nodata option """ pixelated_image[0:2, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--with-nodata']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:323: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 318 DEBUG Entering Dataset context. test_rio_features.py 319 DEBUG Dataset has been stopped. test_rio_features.py 319 DEBUG Dataset has been closed. test_rio_features.py 319 DEBUG Exited Dataset context. ______________________________ test_shapes_indent ______________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_indent0/pixelated_image.tif' def test_shapes_indent(runner, pixelated_image_file): """ --indent option should produce lots of newlines and contiguous spaces """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--indent', 2]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:336: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_compact ______________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_compact0/pixelated_image.tif' def test_shapes_compact(runner, pixelated_image_file): result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--compact']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:347: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _____________________________ test_shapes_sampling _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_sampling0/pixelated_image.tif' def test_shapes_sampling(runner, pixelated_image_file): """ --sampling option should remove the single pixel features """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--sampling', 2]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:359: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ____________________________ test_shapes_precision _____________________________ runner = pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_precision0/pixelated_image.tif' def test_shapes_precision(runner, pixelated_image_file): """ Output numbers should have no more than 1 decimal place """ result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--precision', 1]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:370: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _______________________________ test_shapes_mask _______________________________ runner = pixelated_image = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255], ... 255, 255, 0, 0, 0, 0, 0, 255, 255], [255, 255, 255, 0, 0, 0, 0, 0, 255, 255]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_mask0/pixelated_image.tif' def test_shapes_mask(runner, pixelated_image, pixelated_image_file): """ --mask should extract the nodata area of the image """ pixelated_image[0:5, 0:10] = 255 pixelated_image[0:10, 0:3] = 255 pixelated_image[8:10, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--mask']) print(result.output) print(result.exception) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:392: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stdout call ----------------------------- Usage: main_group [OPTIONS] COMMAND [ARGS]... Error: No such command "shapes". 2 ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 383 DEBUG Entering Dataset context. test_rio_features.py 384 DEBUG Dataset has been stopped. test_rio_features.py 384 DEBUG Dataset has been closed. test_rio_features.py 384 DEBUG Exited Dataset context. __________________________ test_shapes_mask_sampling ___________________________ runner = pixelated_image = array([[255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255], ... 255, 255, 0, 0, 0, 0, 0, 255, 255], [255, 255, 255, 0, 0, 0, 0, 0, 255, 255]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_mask_sampling0/pixelated_image.tif' def test_shapes_mask_sampling(runner, pixelated_image, pixelated_image_file): """ using --sampling with the mask should snap coordinates to the nearest factor of 5 """ pixelated_image[0:5, 0:10] = 255 pixelated_image[0:10, 0:3] = 255 pixelated_image[8:10, 8:10] = 255 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--mask', '--sampling', 5]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:417: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 410 DEBUG Entering Dataset context. test_rio_features.py 411 DEBUG Dataset has been stopped. test_rio_features.py 411 DEBUG Dataset has been closed. test_rio_features.py 411 DEBUG Exited Dataset context. __________________________ test_shapes_band1_as_mask ___________________________ runner = pixelated_image = array([[1, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 4, 1, 1, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 1, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_shapes_band1_as_mask0/pixelated_image.tif' def test_shapes_band1_as_mask(runner, pixelated_image, pixelated_image_file): """ When using --as-mask option, pixel value should not matter, only depends on pixels being contiguous. """ pixelated_image[2:3, 2:3] = 4 with rasterio.open(pixelated_image_file, 'r+') as out: out.write(pixelated_image, indexes=1) result = runner.invoke( main_group, ['shapes', pixelated_image_file, '--band', '--bidx', '1', '--as-mask']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:441: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 test_rio_features.py 434 DEBUG Entering Dataset context. test_rio_features.py 435 DEBUG Dataset has been stopped. test_rio_features.py 435 DEBUG Dataset has been closed. test_rio_features.py 435 DEBUG Exited Dataset context. ________________________________ test_rasterize ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1]], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:457: AssertionError ____________________________ test_rasterize_bounds _____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_bounds0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) def test_rasterize_bounds(tmpdir, runner, basic_feature, basic_image_2x2): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--bounds', 0, 10, 10, 0], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:474: AssertionError __________________________ test_rasterize_resolution ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_resolution0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_resolution(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--res', 0.15], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:490: AssertionError ________________________ test_rasterize_multiresolution ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_multiresolution0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_multiresolution(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( rasterize, [output, '--res', 0.15, '--res', 0.15], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E AssertionError: assert -1 == 0 E + where -1 = .exit_code tests/test_rio_features.py:507: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context rasterize.py 215 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________________________ test_rasterize_src_crs ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_src_crs0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_src_crs(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'EPSG:3857'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:524: AssertionError ______________________ test_rasterize_mismatched_src_crs _______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_mismatched_src_0') runner = basic_feature = {'geometry': {'coordinates': [[[200000.0, 200000.0], [200000.0, 425000.0], [425000.0, 425000.0], [425000.0, 200000.0], [200000.0, 200000.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_mismatched_src_crs(tmpdir, runner, basic_feature): """ A --src-crs that is geographic with coordinates that are outside world bounds should fail. """ coords = np.array(basic_feature['geometry']['coordinates']) * 100000 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'EPSG:4326'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'Bounds are beyond the valid extent for EPSG:4326' in result.output E assert 'Bounds are beyond the valid extent for EPSG:4326' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:547: AssertionError ________________________ test_rasterize_invalid_src_crs ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_invalid_src_crs0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_invalid_src_crs(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--src-crs', 'foo:bar'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'invalid CRS. Must be an EPSG code.' in result.output E assert 'invalid CRS. Must be an EPSG code.' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:559: AssertionError ________________________ test_rasterize_existing_output ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_existing_output0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_existing_output(tmpdir, runner, basic_feature): """ Create a rasterized output, then rasterize additional pixels into it. The final result should include rasterized pixels from both """ truth = np.zeros(DEFAULT_SHAPE) truth[2:4, 2:4] = 1 truth[4:6, 4:6] = 1 output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--bounds', 0, 10, 10, 0], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:580: AssertionError __________________________ test_rasterize_like_raster __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} basic_image_2x2 = array([[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 0, 0, 0, 0, 0, 0], ...0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], dtype=uint8) pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster0/pixelated_image.tif' def test_rasterize_like_raster(tmpdir, runner, basic_feature, basic_image_2x2, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:608: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ______________________ test_rasterize_invalid_like_raster ______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_invalid_like_ra0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_invalid_like_raster(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', str(tmpdir.join('foo.tif'))], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'Invalid value for "--like":' in result.output E assert 'Invalid value for "--like":' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:627: AssertionError _________________ test_rasterize_like_raster_src_crs_mismatch __________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster_src0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster_src0/pixelated_image.tif' def test_rasterize_like_raster_src_crs_mismatch(tmpdir, runner, basic_feature, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file, '--src-crs', 'EPSG:3857'], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'GeoJSON does not match crs of --like raster' in result.output E assert 'GeoJSON does not match crs of --like raster' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:639: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _______________________ test_rasterize_src_crs_mismatch ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_src_crs_mismatc0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_src_crs_mismatc0/pixelated_image.tif' def test_rasterize_src_crs_mismatch(tmpdir, runner, basic_feature, pixelated_image_file): output = str(tmpdir.join('test.tif')) result = runner.invoke( rasterize, [output, '--like', pixelated_image_file], input=json.dumps(basic_feature) ) assert result.exit_code == 0 result = runner.invoke( rasterize, [output, '--force-overwrite', '--src-crs', 'EPSG:3857'], input=json.dumps(basic_feature) ) > assert result.exit_code == 2 E AssertionError: assert -1 == 2 E + where -1 = .exit_code tests/test_rio_features.py:671: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. rasterize.py 210 DEBUG Dataset has been stopped. rasterize.py 210 DEBUG Dataset has been closed. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 rasterize.py 269 DEBUG Entering Dataset context. rasterize.py 270 DEBUG Dataset has been stopped. rasterize.py 270 DEBUG Dataset has been closed. rasterize.py 270 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 rasterize.py 156 DEBUG Entering Dataset context. rasterize.py 157 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' rasterize.py 185 DEBUG Dataset has been stopped. rasterize.py 185 DEBUG Dataset has been closed. rasterize.py 185 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_rasterize_property_value _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_property_value0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_property_value(tmpdir, runner, basic_feature): output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, [ 'rasterize', output, '--dimensions', DEFAULT_SHAPE[0], DEFAULT_SHAPE[1], '--property', 'val'], input=json.dumps(basic_feature)) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:683: AssertionError __________________ test_rasterize_like_raster_outside_bounds ___________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster_out0') runner = basic_feature = {'geometry': {'coordinates': [[[102.0, 102.0], [102.0, 104.25], [104.25, 104.25], [104.25, 102.0], [102.0, 102.0]]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} pixelated_image_file = '/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_like_raster_out0/pixelated_image.tif' def test_rasterize_like_raster_outside_bounds(tmpdir, runner, basic_feature, pixelated_image_file): """ Rasterizing a feature outside bounds of --like raster should result in a blank image """ coords = np.array(basic_feature['geometry']['coordinates']) + 100 basic_feature['geometry']['coordinates'] = coords.tolist() output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output, '--like', pixelated_image_file], input=json.dumps(basic_feature) ) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_features.py:709: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 conftest.py 238 DEBUG Entering Dataset context. conftest.py 239 DEBUG Dataset has been stopped. conftest.py 239 DEBUG Dataset has been closed. conftest.py 239 DEBUG Exited Dataset context. _________________________ test_rasterize_invalid_stdin _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_invalid_stdin0') runner = def test_rasterize_invalid_stdin(tmpdir, runner): """ Invalid value for stdin should fail with exception """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output], input='BOGUS') > assert result.exit_code == -1 E assert 2 == -1 E + where 2 = .exit_code tests/test_rio_features.py:723: AssertionError ________________________ test_rasterize_invalid_geojson ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_invalid_geojson0') runner = def test_rasterize_invalid_geojson(tmpdir, runner): """ Invalid GeoJSON should fail with error """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', output], input='{"A": "B"}') assert result.exit_code == 2 > assert 'Invalid GeoJSON' in result.output E assert 'Invalid GeoJSON' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:733: AssertionError ______________________ test_rasterize_missing_parameters _______________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_rasterize_missing_paramet0') runner = basic_feature = {'geometry': {'coordinates': [[(2, 2), (2, 4.25), (4.25, 4.25), (4.25, 2), (2, 2)]], 'type': 'Polygon'}, 'properties': {'val': 15}, 'type': 'Feature'} def test_rasterize_missing_parameters(tmpdir, runner, basic_feature): """ At least --res or --dimensions are required """ output = str(tmpdir.join('test.tif')) result = runner.invoke( main_group, ['rasterize', '-o', output], input=json.dumps(basic_feature)) assert result.exit_code == 2 > assert 'pixel dimensions are required' in result.output E assert 'pixel dimensions are required' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "rasterize".\n' = .output tests/test_rio_features.py:746: AssertionError ______________________________ test_edit_crs_epsg ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_crs_epsg(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(edit, [inputfile, '--crs', 'EPSG:32618']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32618'} tests/test_rio_info.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:32618', 'no_defs': True}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32618', 'no_defs': True}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({'init': 'epsg:32618', 'no_defs': True}) edit_info.py 155 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({'init': 'epsg:32618', 'no_defs': True}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 48 DEBUG Entering Dataset context. test_rio_info.py 49 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 49 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 49 DEBUG Dataset has been stopped. test_rio_info.py 49 DEBUG Dataset has been closed. test_rio_info.py 49 DEBUG Exited Dataset context. _____________________________ test_edit_crs_proj4 ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_crs_proj4(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(edit, [inputfile, '--crs', '+init=epsg:32618']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32618'} tests/test_rio_info.py:58: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32618'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({'init': 'epsg:32618'}) edit_info.py 155 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({'init': 'epsg:32618'}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 57 DEBUG Entering Dataset context. test_rio_info.py 58 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 58 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 58 DEBUG Dataset has been stopped. test_rio_info.py 58 DEBUG Dataset has been closed. test_rio_info.py 58 DEBUG Exited Dataset context. ______________________________ test_edit_crs_obj _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_crs_obj(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke( edit, [inputfile, '--crs', '{"init": "epsg:32618"}']) assert result.exit_code == 0 with rasterio.open(inputfile) as src: > assert src.crs.to_dict() == {'init': 'epsg:32618'} E AssertionError: assert {} == {'init': 'epsg:32618'} E Right contains more items: E {'init': 'epsg:32618'} E Use -v to get the full diff tests/test_rio_info.py:68: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:32618'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32618'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 edit_info.py 137 DEBUG Entering Dataset context. edit_info.py 155 DEBUG Input CRS: CRS({'init': 'epsg:32618'}) edit_info.py 155 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' edit_info.py 155 DEBUG Exported WKT: edit_info.py 155 DEBUG Self CRS: CRS({'init': 'epsg:32618'}) edit_info.py 161 DEBUG Dataset has been stopped. edit_info.py 161 DEBUG Dataset has been closed. edit_info.py 161 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 67 DEBUG Entering Dataset context. test_rio_info.py 68 DEBUG Dataset has been stopped. test_rio_info.py 68 DEBUG Dataset has been closed. test_rio_info.py 68 DEBUG Exited Dataset context. ______________________________ test_edit_crs_like ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_crs_like(data): runner = CliRunner() # Set up the file to be edited. inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 200 DEBUG Entering Dataset context. test_rio_info.py 201 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 201 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 201 DEBUG Exported WKT: test_rio_info.py 201 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 202 DEBUG Dataset has been stopped. test_rio_info.py 202 DEBUG Dataset has been closed. test_rio_info.py 202 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 205 DEBUG Entering Dataset context. test_rio_info.py 206 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 206 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 207 DEBUG Dataset has been stopped. test_rio_info.py 207 DEBUG Dataset has been closed. test_rio_info.py 207 DEBUG Exited Dataset context. ____________________________ test_edit_nodata_like _____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_nodata_like(data): runner = CliRunner() # Set up the file to be edited. inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:231: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 225 DEBUG Entering Dataset context. test_rio_info.py 226 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 226 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 226 DEBUG Exported WKT: test_rio_info.py 226 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 227 DEBUG Dataset has been stopped. test_rio_info.py 227 DEBUG Dataset has been closed. test_rio_info.py 227 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 230 DEBUG Entering Dataset context. test_rio_info.py 231 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 231 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 232 DEBUG Dataset has been stopped. test_rio_info.py 232 DEBUG Dataset has been closed. test_rio_info.py 232 DEBUG Exited Dataset context. ______________________________ test_edit_all_like ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_edit_all_like(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) with rasterio.open(inputfile, 'r+') as dst: dst.crs = {'init': 'epsg:32617'} dst.nodata = 1.0 # Double check. with rasterio.open(inputfile) as src: > assert src.crs == {'init': 'epsg:32617'} tests/test_rio_info.py:255: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:32617'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:32617'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_info.py 249 DEBUG Entering Dataset context. test_rio_info.py 250 DEBUG Input CRS: {'init': 'epsg:32617'} test_rio_info.py 250 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 250 DEBUG Exported WKT: test_rio_info.py 250 DEBUG Self CRS: CRS({'init': 'epsg:32617'}) test_rio_info.py 251 DEBUG Dataset has been stopped. test_rio_info.py 251 DEBUG Dataset has been closed. test_rio_info.py 251 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. test_rio_info.py 254 DEBUG Entering Dataset context. test_rio_info.py 255 DEBUG PROJ.4 to be imported: '+wktext' test_rio_info.py 255 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_info.py 256 DEBUG Dataset has been stopped. test_rio_info.py 256 DEBUG Dataset has been closed. test_rio_info.py 256 DEBUG Exited Dataset context. ___________________________________ test_env ___________________________________ def test_env(): runner = CliRunner() result = runner.invoke(main_group, [ 'env', '--formats' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:273: AssertionError ________________________________ test_info_err _________________________________ def test_info_err(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests']) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:281: AssertionError __________________________________ test_info ___________________________________ def test_info(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:288: AssertionError ______________________________ test_info_verbose _______________________________ def test_info_verbose(): runner = CliRunner() result = runner.invoke(main_group, [ '-v', 'info', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:299: AssertionError _______________________________ test_info_quiet ________________________________ def test_info_quiet(): runner = CliRunner() result = runner.invoke(main_group, [ '-q', 'info', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:309: AssertionError _______________________________ test_info_count ________________________________ def test_info_count(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--count']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:316: AssertionError _____________________________ test_info_nodatavals _____________________________ def test_info_nodatavals(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--bounds']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:324: AssertionError ________________________________ test_info_tags ________________________________ def test_info_tags(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tags']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:332: AssertionError ________________________________ test_info_res _________________________________ def test_info_res(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--res']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:340: AssertionError _______________________________ test_info_lnglat _______________________________ def test_info_lnglat(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--lnglat']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:348: AssertionError _________________________________ test_mo_info _________________________________ def test_mo_info(): runner = CliRunner() result = runner.invoke(main_group, ['info', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:355: AssertionError _______________________________ test_info_stats ________________________________ def test_info_stats(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tell-me-more']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:364: AssertionError _____________________________ test_info_stats_only _____________________________ def test_info_stats_only(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--stats', '--bidx', '2']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:375: AssertionError ____________________________ test_info_colorinterp _____________________________ def test_info_colorinterp(): runner = CliRunner() result = runner.invoke(main_group, ['info', 'tests/data/alpha.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:382: AssertionError ______________________________ test_transform_err ______________________________ def test_transform_err(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform' ], "[-78.0]") > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:391: AssertionError _____________________________ test_transform_point _____________________________ def test_transform_point(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'EPSG:32618', '--precision', '2' ], "[-78.0, 23.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:401: AssertionError ________________________ test_transform_point_dst_file _________________________ def test_transform_point_dst_file(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'tests/data/RGB.byte.tif', '--precision', '2' ], "[-78.0, 23.0]") > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:411: AssertionError ________________________ test_transform_point_src_file _________________________ def test_transform_point_src_file(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--src-crs', 'tests/data/RGB.byte.tif', '--precision', '2' ], "[192457.13, 2546667.68]") > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:423: AssertionError ____________________________ test_transform_point_2 ____________________________ def test_transform_point_2(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '[-78.0, 23.0]', '--dst-crs', 'EPSG:32618', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:435: AssertionError __________________________ test_transform_point_multi __________________________ def test_transform_point_multi(): runner = CliRunner() result = runner.invoke(main_group, [ 'transform', '--dst-crs', 'EPSG:32618', '--precision', '2' ], "[-78.0, 23.0]\n[-78.0, 23.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:446: AssertionError _____________________________ test_bounds_defaults _____________________________ def test_bounds_defaults(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:457: AssertionError _______________________________ test_bounds_err ________________________________ def test_bounds_err(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests' ]) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:467: AssertionError _____________________________ test_bounds_feature ______________________________ def test_bounds_feature(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--feature' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:477: AssertionError _____________________________ test_bounds_obj_bbox _____________________________ def test_bounds_obj_bbox(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:489: AssertionError _____________________________ test_bounds_compact ______________________________ def test_bounds_compact(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--precision', '2', '--compact' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:502: AssertionError ______________________________ test_bounds_indent ______________________________ def test_bounds_indent(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--indent', '2', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:515: AssertionError ________________________ test_bounds_obj_bbox_mercator _________________________ def test_bounds_obj_bbox_mercator(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--mercator', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:528: AssertionError ________________________ test_bounds_obj_bbox_projected ________________________ def test_bounds_obj_bbox_projected(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--projected', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:542: AssertionError _____________________________ test_bounds_crs_bbox _____________________________ def test_bounds_crs_bbox(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', '--bbox', '--dst-crs', 'EPSG:32618', '--precision', '3' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:556: AssertionError _______________________________ test_bounds_seq ________________________________ def test_bounds_seq(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', 'tests/data/RGB.byte.tif', '--sequence' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:569: AssertionError ______________________________ test_bounds_seq_rs ______________________________ def test_bounds_seq_rs(): runner = CliRunner() result = runner.invoke(main_group, [ 'bounds', 'tests/data/RGB.byte.tif', 'tests/data/RGB.byte.tif', '--sequence', '--rs', '--bbox', '--precision', '2' ]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:597: AssertionError __________________________________ test_insp ___________________________________ def test_insp(): runner = CliRunner() result = runner.invoke(main_group, ['insp', 'tests/data/RGB.byte.tif']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:605: AssertionError ________________________________ test_insp_err _________________________________ def test_insp_err(): runner = CliRunner() result = runner.invoke(main_group, ['insp', 'tests']) > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_info.py:611: AssertionError _____________________________ test_info_checksums ______________________________ def test_info_checksums(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--tell-me-more']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:618: AssertionError ___________________________ test_info_checksums_only ___________________________ def test_info_checksums_only(): runner = CliRunner() result = runner.invoke( main_group, ['info', 'tests/data/RGB.byte.tif', '--checksum', '--bidx', '2']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_info.py:627: AssertionError _______________________________ test_merge_warn ________________________________ test_data_dir_1 = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_merge_warn0') def test_merge_warn(test_data_dir_1): outputname = str(test_data_dir_1.join('merged.tif')) inputs = [str(x) for x in test_data_dir_1.listdir()] inputs.sort() runner = CliRunner() result = runner.invoke(merge, inputs + [outputname] + ['--nodata', '-1']) assert result.exit_code == 0 assert os.path.exists(outputname) > assert "using the --nodata option for better results" in result.output E AssertionError: assert 'using the --nodata option for better results' in '' E + where '' = .output tests/test_rio_merge.py:115: AssertionError ---------------------------- Captured stderr setup ----------------------------- DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log setup ------------------------------ __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 test_rio_merge.py 31 DEBUG Entering Dataset context. test_rio_merge.py 34 DEBUG Dataset has been stopped. test_rio_merge.py 34 DEBUG Dataset has been closed. test_rio_merge.py 34 DEBUG Exited Dataset context. __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 test_rio_merge.py 36 DEBUG Entering Dataset context. test_rio_merge.py 39 DEBUG Dataset has been stopped. test_rio_merge.py 39 DEBUG Dataset has been closed. test_rio_merge.py 39 DEBUG Exited Dataset context. ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio.merge:Output bounds: (-114.0, 44.0, -112.0, 46.0) DEBUG:rasterio.merge:Output transform, before scaling: Affine(1.0, 0.0, -114.0, 0.0, 1.0, 46.0) DEBUG:rasterio.merge:Output transform, after scaling: Affine(0.2, 0.0, -114.0, 0.0, -0.2, 46.0) DEBUG:rasterio.merge:Output width: 10, height: 10 DEBUG:rasterio.merge:Adjusted bounds: (-114.0, 44.0, -112.0, 46.0) DEBUG:rasterio.merge:Set nodataval: -1.0 DEBUG:rasterio.merge:Src /usr/src/tmp/pytest-of-builder/pytest-1/test_merge_warn0/a.tif window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Dst window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Temp shape: (1, 10, 10) DEBUG:rasterio._io:all_valid: False DEBUG:rasterio._io:mask_flags: [8] DEBUG:rasterio.merge:Src /usr/src/tmp/pytest-of-builder/pytest-1/test_merge_warn0/b.tif window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Dst window: ((0, 10), (0, 10)) DEBUG:rasterio.merge:Temp shape: (1, 10, 10) DEBUG:rasterio._io:all_valid: False DEBUG:rasterio._io:mask_flags: [8] DEBUG:rasterio._io:Option: ('TILED', b'FALSE') DEBUG:rasterio._io:Option: ('INTERLEAVE', b'BAND') DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 1.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 __init__.py 193 DEBUG Dataset is started. merge.py 73 DEBUG Output bounds: (-114.0, 44.0, -112.0, 46.0) merge.py 75 DEBUG Output transform, before scaling: Affine(1.0, 0.0, -114.0, 0.0, 1.0, 46.0) merge.py 85 DEBUG Output transform, after scaling: Affine(0.2, 0.0, -114.0, 0.0, -0.2, 46.0) merge.py 94 DEBUG Output width: 10, height: 10 merge.py 95 DEBUG Adjusted bounds: (-114.0, 44.0, -112.0, 46.0) merge.py 102 DEBUG Set nodataval: -1.0 merge.py 140 DEBUG Src /usr/src/tmp/pytest-of-builder/pytest-1/test_merge_warn0/a.tif window: ((0, 10), (0, 10)) merge.py 145 DEBUG Dst window: ((0, 10), (0, 10)) merge.py 152 DEBUG Temp shape: (1, 10, 10) merge.py 156 DEBUG all_valid: False merge.py 156 DEBUG mask_flags: [8] merge.py 140 DEBUG Src /usr/src/tmp/pytest-of-builder/pytest-1/test_merge_warn0/b.tif window: ((0, 10), (0, 10)) merge.py 145 DEBUG Dst window: ((0, 10), (0, 10)) merge.py 152 DEBUG Temp shape: (1, 10, 10) merge.py 156 DEBUG all_valid: False merge.py 156 DEBUG mask_flags: [8] __init__.py 193 DEBUG Option: ('TILED', b'FALSE') __init__.py 193 DEBUG Option: ('INTERLEAVE', b'BAND') __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 1.000000 merge.py 68 DEBUG Entering Dataset context. merge.py 76 DEBUG Dataset has been stopped. merge.py 76 DEBUG Dataset has been closed. merge.py 76 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __________________________ test_like_dataset_callback __________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_like_dataset_callback(data): ctx = MockContext() like_handler(ctx, 'like', str(data.join('RGB.byte.tif'))) > assert ctx.obj['like']['crs'] == {'init': 'epsg:32618'} tests/test_rio_options.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:42: in rasterio._crs._CRS.__eq__ osr_crs1 = _base._osr_from_crs(self) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. options.py 128 DEBUG Entering Dataset context. options.py 132 DEBUG Dataset has been stopped. options.py 132 DEBUG Dataset has been closed. options.py 132 DEBUG Exited Dataset context. test_rio_options.py 69 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ___________________________________ test_err ___________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_err(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', 'a^2']) assert result.exit_code == 2 > assert "must match" in result.output E assert 'must match' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "overview".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "overview".\n' = .output tests/test_rio_overview.py:18: AssertionError _________________________________ test_ls_none _________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_ls_none(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--ls']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:25: AssertionError ________________________________ test_build_ls _________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_build_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', '2,4,8']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:34: AssertionError ______________________________ test_build_pow_ls _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_build_pow_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke(cli, ['overview', inputfile, '--build', '2^1..3']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:45: AssertionError _______________________________ test_rebuild_ls ________________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_rebuild_ls(data): runner = CliRunner() inputfile = str(data.join('RGB.byte.tif')) result = runner.invoke( cli, ['overview', inputfile, '--build', '2,4,8', '--resampling', 'cubic']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_overview.py:59: AssertionError _______________________________ test_sample_err ________________________________ def test_sample_err(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'bogus.tif'], "[220650.0, 2719200.0]") > assert result.exit_code == 1 E assert 2 == 1 E + where 2 = .exit_code tests/test_rio_sample.py:20: AssertionError ______________________________ test_sample_stdin _______________________________ def test_sample_stdin(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif'], "[220650.0, 2719200.0]\n[220650.0, 2719200.0]", catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:30: AssertionError _______________________________ test_sample_arg ________________________________ def test_sample_arg(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:40: AssertionError _______________________________ test_sample_bidx _______________________________ def test_sample_bidx(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '1,2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:50: AssertionError ______________________________ test_sample_bidx2 _______________________________ def test_sample_bidx2(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '1..2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:60: AssertionError ______________________________ test_sample_bidx3 _______________________________ def test_sample_bidx3(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '..2', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:70: AssertionError ______________________________ test_sample_bidx4 _______________________________ def test_sample_bidx4(): runner = CliRunner() result = runner.invoke( main_group, ['sample', 'tests/data/RGB.byte.tif', '--bidx', '3', "[220650.0, 2719200.0]"], catch_exceptions=False) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_sample.py:80: AssertionError ______________________________ test_dst_crs_error ______________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_crs_error0') def test_dst_crs_error(runner, tmpdir): """Invalid JSON is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', '{foo: bar}']) assert result.exit_code == 2 > assert 'for dst_crs: crs appears to be JSON but is not' in result.output E assert 'for dst_crs: crs appears to be JSON but is not' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:23: AssertionError _____________________________ test_dst_crs_error_2 _____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_crs_error_20') @pytest.mark.xfail( os.environ.get('GDALVERSION', 'a.b.c').startswith('1.9'), reason="GDAL 1.9 doesn't catch this error") def test_dst_crs_error_2(runner, tmpdir): """Invalid PROJ.4 is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', '{"proj": "foobar"}']) assert result.exit_code == 2 > assert 'for dst_crs: Failed to initialize PROJ.4' in result.output E assert 'for dst_crs: Failed to initialize PROJ.4' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:36: AssertionError ___________________________ test_dst_crs_error_epsg ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_crs_error_epsg0') def test_dst_crs_error_epsg(runner, tmpdir): """Malformed EPSG string is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', 'EPSG:']) assert result.exit_code == 2 > assert 'for dst_crs: invalid literal for int()' in result.output E assert 'for dst_crs: invalid literal for int()' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:46: AssertionError __________________________ test_dst_crs_error_epsg_2 ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_crs_error_epsg_20') def test_dst_crs_error_epsg_2(runner, tmpdir): """Invalid EPSG code is a bad parameter.""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-crs', 'EPSG:0']) assert result.exit_code == 2 > assert 'for dst_crs: EPSG codes are positive integers' in result.output E assert 'for dst_crs: EPSG codes are positive integers' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:56: AssertionError ___________________ test_dst_nodata_float_no_src_nodata_err ____________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_nodata_float_no_src_n0') def test_dst_nodata_float_no_src_nodata_err(runner, tmpdir): """Valid integer destination nodata dtype""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-nodata', '0.0']) assert result.exit_code == 2 > assert 'src-nodata must be provided because dst-nodata is not None' in result.output E assert 'src-nodata must be provided because dst-nodata is not None' in 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' E + where 'Usage: main_group [OPTIONS] COMMAND [ARGS]...\n\nError: No such command "warp".\n' = .output tests/test_rio_warp.py:66: AssertionError ____________________________ test_src_nodata_int_ok ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_src_nodata_int_ok0') def test_src_nodata_int_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:75: AssertionError ____________________________ test_dst_nodata_int_ok ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_nodata_int_ok0') def test_dst_nodata_int_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--dst-nodata', '255']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:86: AssertionError ___________________________ test_src_nodata_float_ok ___________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_src_nodata_float_ok0') def test_src_nodata_float_ok(runner, tmpdir): """Check if input nodata is overridden""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1.5']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:97: AssertionError ____________________ test_dst_nodata_float_override_src_ok _____________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_dst_nodata_float_override0') def test_dst_nodata_float_override_src_ok(runner, tmpdir): """Check if srcnodata is overridden""" srcname = 'tests/data/float.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(main_group, [ 'warp', srcname, outputname, '--src-nodata', '1.5', '--dst-nodata', '2.5']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:108: AssertionError ____________________________ test_warp_no_reproject ____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_no_reproject0') def test_warp_no_reproject(runner, tmpdir): """ When called without parameters, output should be same as source """ srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: assert output.count == src.count > assert output.crs == src.crs tests/test_rio_warp.py:124: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 1024, 1024. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 1024, 1024. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 121 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 122 DEBUG Entering Dataset context. test_rio_warp.py 124 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 124 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 128 DEBUG Dataset has been stopped. test_rio_warp.py 128 DEBUG Dataset has been closed. test_rio_warp.py 128 DEBUG Exited Dataset context. test_rio_warp.py 128 DEBUG Dataset has been stopped. test_rio_warp.py 128 DEBUG Dataset has been closed. test_rio_warp.py 128 DEBUG Exited Dataset context. ______________________ test_warp_no_reproject_dimensions _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_no_reproject_dimensi0') def test_warp_no_reproject_dimensions(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dimensions', '100', '100']) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 100, 100. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 100, 100. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 139 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 140 DEBUG Entering Dataset context. test_rio_warp.py 141 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 141 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 144 DEBUG Dataset has been stopped. test_rio_warp.py 144 DEBUG Dataset has been closed. test_rio_warp.py 144 DEBUG Exited Dataset context. test_rio_warp.py 144 DEBUG Dataset has been stopped. test_rio_warp.py 144 DEBUG Dataset has been closed. test_rio_warp.py 144 DEBUG Exited Dataset context. __________________________ test_warp_no_reproject_res __________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_no_reproject_res0') def test_warp_no_reproject_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--res', 30]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:158: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 327, 327. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 327, 327. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 156 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 157 DEBUG Entering Dataset context. test_rio_warp.py 158 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 158 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 161 DEBUG Dataset has been stopped. test_rio_warp.py 161 DEBUG Dataset has been closed. test_rio_warp.py 161 DEBUG Exited Dataset context. test_rio_warp.py 161 DEBUG Dataset has been stopped. test_rio_warp.py 161 DEBUG Dataset has been closed. test_rio_warp.py 161 DEBUG Exited Dataset context. ________________________ test_warp_no_reproject_bounds _________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_no_reproject_bounds0') def test_warp_no_reproject_bounds(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke(warp.warp,[srcname, outputname, '--bounds'] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:175: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 105, 210. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 105, 210. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 173 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 174 DEBUG Entering Dataset context. test_rio_warp.py 175 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 175 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 180 DEBUG Dataset has been stopped. test_rio_warp.py 180 DEBUG Dataset has been closed. test_rio_warp.py 180 DEBUG Exited Dataset context. test_rio_warp.py 180 DEBUG Dataset has been stopped. test_rio_warp.py 180 DEBUG Dataset has been closed. test_rio_warp.py 180 DEBUG Exited Dataset context. ______________________ test_warp_no_reproject_bounds_res _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_no_reproject_bounds_0') def test_warp_no_reproject_bounds_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke(warp.warp,[srcname, outputname, '--res', 30, '--bounds', ] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == src.crs tests/test_rio_warp.py:195: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:3857'}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:3857'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 34, 67. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:3857'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 34, 67. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 193 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 194 DEBUG Entering Dataset context. test_rio_warp.py 195 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 195 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 199 DEBUG Dataset has been stopped. test_rio_warp.py 199 DEBUG Dataset has been closed. test_rio_warp.py 199 DEBUG Exited Dataset context. test_rio_warp.py 199 DEBUG Dataset has been stopped. test_rio_warp.py 199 DEBUG Dataset has been closed. test_rio_warp.py 199 DEBUG Exited Dataset context. _________________________ test_warp_reproject_dst_crs __________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_dst_crs0') def test_warp_reproject_dst_crs(runner, tmpdir): srcname = 'tests/data/RGB.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:207: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_warp_reproject_dst_crs_proj4 _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_dst_crs_pr0') def test_warp_reproject_dst_crs_proj4(runner, tmpdir): proj4 = '+proj=longlat +ellps=WGS84 +datum=WGS84' srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', proj4]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:227: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+proj=longlat +ellps=WGS84 +datum=WGS84 +wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 DEBUG PROJ.4 to be imported: '+proj=longlat +ellps=WGS84 +datum=WGS84 +wktext' warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________________ test_warp_reproject_res ____________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_res0') def test_warp_reproject_res(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.01]) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:240: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_warp_reproject_dimensions ________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_dimensions0') def test_warp_reproject_dimensions(runner, tmpdir): srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--dimensions', '100', '100']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:256: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_warp_reproject_src_bounds_res ______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_src_bounds0') def test_warp_reproject_src_bounds_res(runner, tmpdir): """--src-bounds option works.""" srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-11850000, 4810000, -11849000, 4812000] result = runner.invoke( warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.001, '--src-bounds'] + out_bounds) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:321: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_warp_reproject_dst_bounds ________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_dst_bounds0') def test_warp_reproject_dst_bounds(runner, tmpdir): """--x-dst-bounds option works.""" srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) out_bounds = [-106.45036, 39.6138, -106.44136, 39.6278] result = runner.invoke( warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:4326', '--res', 0.001, '--x-dst-bounds'] + out_bounds) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(srcname) as src: with rasterio.open(outputname) as output: > assert output.crs == {'init': 'epsg:4326'} tests/test_rio_warp.py:348: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: CRS({'init': 'epsg:4326', 'no_defs': True}) ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326', 'no_defs': True}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 10, 15. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: CRS({'init': 'epsg:4326', 'no_defs': True}) __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326', 'no_defs': True}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 10, 15. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 346 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 347 DEBUG Entering Dataset context. test_rio_warp.py 348 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 348 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 360 DEBUG Dataset has been stopped. test_rio_warp.py 360 DEBUG Dataset has been closed. test_rio_warp.py 360 DEBUG Exited Dataset context. test_rio_warp.py 360 DEBUG Dataset has been stopped. test_rio_warp.py 360 DEBUG Dataset has been closed. test_rio_warp.py 360 DEBUG Exited Dataset context. ___________________________ test_warp_reproject_like ___________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_like0') def test_warp_reproject_like(runner, tmpdir): likename = str(tmpdir.join('like.tif')) kwargs = { "crs": {'init': 'epsg:4326'}, "transform": (-106.523, 0.001, 0, 39.6395, 0, -0.001), "count": 1, "dtype": rasterio.uint8, "driver": "GTiff", "width": 10, "height": 10, "nodata": 0 } with rasterio.Env(): with rasterio.open(likename, 'w', **kwargs) as dst: data = np.zeros((10, 10), dtype=rasterio.uint8) dst.write(data, indexes=1) srcname = 'tests/data/shade.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--like', likename]) assert result.exit_code == 0 assert os.path.exists(outputname) with rasterio.open(outputname) as output: > assert output.crs == {'init': 'epsg:4326'} tests/test_rio_warp.py:389: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created transformer and options. DEBUG:rasterio._warp:Setting NUM_THREADS option: b'1' DEBUG:rasterio._warp:Created warp options DEBUG:rasterio._warp:src_nodata: 255.0 DEBUG:rasterio._warp:dst_nodata: 255.0 DEBUG:rasterio._warp:Set transformer options DEBUG:rasterio._warp:Chunk and warp window: 0, 0, 10, 10. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 255.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Input CRS: {'init': 'epsg:4326'} __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_rio_warp.py 377 DEBUG Entering Dataset context. test_rio_warp.py 379 DEBUG Dataset has been stopped. test_rio_warp.py 379 DEBUG Dataset has been closed. test_rio_warp.py 379 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. warp.py 162 DEBUG Entering Dataset context. warp.py 166 DEBUG Dataset has been stopped. warp.py 166 DEBUG Dataset has been closed. warp.py 166 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 warp.py 296 DEBUG Entering Dataset context. warp.py 276 DEBUG Created transformer and options. warp.py 276 DEBUG Setting NUM_THREADS option: b'1' warp.py 276 DEBUG Created warp options warp.py 276 DEBUG src_nodata: 255.0 warp.py 276 DEBUG dst_nodata: 255.0 warp.py 276 DEBUG Set transformer options warp.py 276 DEBUG Chunk and warp window: 0, 0, 10, 10. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 255.000000 __init__.py 193 DEBUG Dataset is started. test_rio_warp.py 388 DEBUG Entering Dataset context. test_rio_warp.py 389 DEBUG PROJ.4 to be imported: '+wktext' test_rio_warp.py 389 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_rio_warp.py 392 DEBUG Dataset has been stopped. test_rio_warp.py 392 DEBUG Dataset has been closed. test_rio_warp.py 392 DEBUG Exited Dataset context. ________________________ test_warp_reproject_nolostdata ________________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_nolostdata0') def test_warp_reproject_nolostdata(runner, tmpdir): srcname = 'tests/data/world.byte.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--dst-crs', 'EPSG:3857']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:400: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_warp_reproject_check_invert _______________________ runner = tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_reproject_check_inve0') def test_warp_reproject_check_invert(runner, tmpdir): srcname = 'tests/data/world.rgb.tif' outputname = str(tmpdir.join('test.tif')) result = runner.invoke(warp.warp, [srcname, outputname, '--check-invert-proj', 'yes', '--dst-crs', 'EPSG:3759']) > assert result.exit_code == 0 E assert 2 == 0 E + where 2 = .exit_code tests/test_rio_warp.py:457: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio._drivers:Set option CPL_DEBUG=False in env DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio._drivers:Unset option CPL_DEBUG in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 182 DEBUG Set option CPL_DEBUG=False in env env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CPL_DEBUG': False, 'CHECK_WITH_INVERT_PROJ': True} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. warp.py 148 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' warp.py 309 DEBUG Dataset has been stopped. warp.py 309 DEBUG Dataset has been closed. warp.py 309 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 192 DEBUG Unset option CPL_DEBUG in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________________ test_update_tags _______________________________ data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_update_tags(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.update_tags(a='1', b='2') f.update_tags(1, c=3) with pytest.raises(IndexError): f.update_tags(4, d=4) assert f.tags() == {'AREA_OR_POINT': 'Area', 'a': '1', 'b': '2'} assert ('c', '3') in f.tags(1).items() > info = subprocess.check_output(["gdalinfo", tiffname]).decode('utf-8') tests/test_update.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/tests/data/RGB.byte.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_IllegalArg in b'/usr/src/tmp/pytest-of-builder/pytest-1/tests/data/RGB.byte.tif: GDALDataset::GetRasterBand(4) - Illegal band #\n' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 14 DEBUG Entering Dataset context. test_update.py 18 ERROR CPLE_IllegalArg in b'/usr/src/tmp/pytest-of-builder/pytest-1/tests/data/RGB.byte.tif: GDALDataset::GetRasterBand(4) - Illegal band #\n' test_update.py 20 DEBUG Dataset has been stopped. test_update.py 20 DEBUG Dataset has been closed. test_update.py 20 DEBUG Exited Dataset context. _____________________________ test_update_spatial ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_update_spatial(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.transform = affine.Affine.from_gdal(1.0, 1.0, 0.0, 0.0, 0.0, -1.0) f.crs = {'init': 'epsg:4326'} with rasterio.open(tiffname) as f: assert list(f.transform) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] assert list(f.affine.to_gdal()) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] > assert f.crs == {'init': 'epsg:4326'} tests/test_update.py:41: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'init': 'epsg:4326'} ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: CRS({'init': 'epsg:4326'}) DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 35 DEBUG Entering Dataset context. test_update.py 37 DEBUG Input CRS: {'init': 'epsg:4326'} test_update.py 37 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_update.py 37 DEBUG Exported WKT: test_update.py 37 DEBUG Self CRS: CRS({'init': 'epsg:4326'}) test_update.py 37 DEBUG Dataset has been stopped. test_update.py 37 DEBUG Dataset has been closed. test_update.py 37 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_update.py 38 DEBUG Entering Dataset context. test_update.py 41 DEBUG PROJ.4 to be imported: '+wktext' test_update.py 41 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_update.py 41 DEBUG Dataset has been stopped. test_update.py 41 DEBUG Dataset has been closed. test_update.py 41 DEBUG Exited Dataset context. ___________________________ test_update_spatial_epsg ___________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: data = local('/usr/src/tmp/pytest-of-builder/pytest-1/tests/data') def test_update_spatial_epsg(data): tiffname = str(data.join('RGB.byte.tif')) with rasterio.open(tiffname, 'r+') as f: f.transform = affine.Affine.from_gdal(1.0, 1.0, 0.0, 0.0, 0.0, -1.0) f.crs = 'EPSG:4326' with rasterio.open(tiffname) as f: assert list(f.transform) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] assert list(f.affine.to_gdal()) == [1.0, 1.0, 0.0, 0.0, 0.0, -1.0] > assert f.crs == {'init': 'epsg:4326'} tests/test_update.py:52: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_crs.pyx:43: in rasterio._crs._CRS.__eq__ osr_crs2 = _base._osr_from_crs(other) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: 'EPSG:4326' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: 'EPSG:4326' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:PROJ.4 to be imported: '+wktext' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_update.py 46 DEBUG Entering Dataset context. test_update.py 48 DEBUG Input CRS: 'EPSG:4326' test_update.py 48 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_update.py 48 DEBUG Exported WKT: test_update.py 48 DEBUG Self CRS: 'EPSG:4326' test_update.py 48 DEBUG Dataset has been stopped. test_update.py 48 DEBUG Dataset has been closed. test_update.py 48 DEBUG Exited Dataset context. __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_update.py 49 DEBUG Entering Dataset context. test_update.py 52 DEBUG PROJ.4 to be imported: '+wktext' test_update.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_update.py 52 DEBUG Dataset has been stopped. test_update.py 52 DEBUG Dataset has been closed. test_update.py 52 DEBUG Exited Dataset context. ________________________________ test_transform ________________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_transform(): """2D and 3D.""" WGS84_crs = {'init': 'EPSG:4326'} WGS84_points = ([12.492269], [41.890169], [48.]) ECEF_crs = {'init': 'EPSG:4978'} ECEF_points = ([4642610.], [1028584.], [4236562.]) > ECEF_result = transform(WGS84_crs, ECEF_crs, *WGS84_points) tests/test_warp.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ____________________________ test_transform_bounds _____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_transform_bounds(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: l, b, r, t = src.bounds > assert np.allclose( transform_bounds(src.crs, {'init': 'EPSG:4326'}, l, b, r, t), ( -78.95864996545055, 23.564991210854686, -76.57492370013823, 25.550873767433984 ) ) tests/test_warp.py:94: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 92 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_warp.py 94 DEBUG Dataset has been stopped. test_warp.py 94 DEBUG Dataset has been closed. test_warp.py 94 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________ test_transform_bounds_densify _________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_transform_bounds_densify(): # This transform is non-linear along the edges, so densification produces # a different result than otherwise src_crs = {'init': 'EPSG:4326'} dst_crs = {'init': 'EPSG:32610'} > assert np.allclose( transform_bounds( src_crs, dst_crs, -120, 40, -80, 64, densify_pts=0 ), ( 646695.227266598, 4432069.056898901, 4201818.984205882, 7807592.187464975 ) ) tests/test_warp.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' _______________________ test_transform_bounds_no_change ________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_transform_bounds_no_change(): """Make sure that going from and to the same crs causes no change.""" with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: l, b, r, t = src.bounds > assert np.allclose( transform_bounds(src.crs, src.crs, l, b, r, t), src.bounds ) tests/test_warp.py:140: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:162: in transform_bounds xs, ys = transform(src_crs, dst_crs, in_xs, in_ys) rasterio/warp.py:52: in transform return _transform(src_crs, dst_crs, xs, ys, zs) rasterio/_base.pyx:850: in rasterio._base._transform src = _osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 138 DEBUG Entering Dataset context. warp.py 52 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_warp.py 140 DEBUG Dataset has been stopped. test_warp.py 140 DEBUG Dataset has been closed. test_warp.py 140 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_calculate_default_transform _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_calculate_default_transform(): target_transform = Affine( 0.0028535715391804096, 0.0, -78.95864996545055, 0.0, -0.0028535715391804096, 25.550873767433984) with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: wgs84_crs = {'init': 'EPSG:4326'} dst_transform, width, height = calculate_default_transform( > src.crs, wgs84_crs, src.width, src.height, *src.bounds) tests/test_warp.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 162 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_warp.py 169 DEBUG Dataset has been stopped. test_warp.py 169 DEBUG Dataset has been closed. test_warp.py 169 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_calculate_default_transform_single_resolution ______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_calculate_default_transform_single_resolution(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: target_resolution = 0.1 target_transform = Affine( target_resolution, 0.0, -78.95864996545055, 0.0, -target_resolution, 25.550873767433984 ) dst_transform, width, height = calculate_default_transform( src.crs, {'init': 'EPSG:4326'}, src.width, src.height, > *src.bounds, resolution=target_resolution ) tests/test_warp.py:182: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 174 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_warp.py 187 DEBUG Dataset has been stopped. test_warp.py 187 DEBUG Dataset has been closed. test_warp.py 187 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_calculate_default_transform_multiple_resolutions _____________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_calculate_default_transform_multiple_resolutions(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: target_resolution = (0.2, 0.1) target_transform = Affine( target_resolution[0], 0.0, -78.95864996545055, 0.0, -target_resolution[1], 25.550873767433984 ) dst_transform, width, height = calculate_default_transform( src.crs, {'init': 'EPSG:4326'}, src.width, src.height, > *src.bounds, resolution=target_resolution ) tests/test_warp.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 192 DEBUG Entering Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' test_warp.py 206 DEBUG Dataset has been stopped. test_warp.py 206 DEBUG Dataset has been closed. test_warp.py 206 DEBUG Exited Dataset context. env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________________________ test_reproject_ndarray ____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_ndarray(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:235: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 211 DEBUG Entering Dataset context. test_warp.py 212 DEBUG Dataset has been stopped. test_warp.py 212 DEBUG Dataset has been closed. test_warp.py 212 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_reproject_epsg ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_epsg(): with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = {'init': 'EPSG:3857'} out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:253: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 241 DEBUG Entering Dataset context. test_warp.py 242 DEBUG Dataset has been stopped. test_warp.py 242 DEBUG Dataset has been closed. test_warp.py 242 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________ test_reproject_out_of_bounds _________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_out_of_bounds(): """Using EPSG code is not appropriate for the transform. Should return blank image. """ with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read(1) dst_crs = {'init': 'EPSG:32619'} out = np.empty(src.shape, dtype=np.uint8) reproject( source, out, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:275: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 263 DEBUG Entering Dataset context. test_warp.py 264 DEBUG Dataset has been stopped. test_warp.py 264 DEBUG Dataset has been closed. test_warp.py 264 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________ test_reproject_nodata[options0-6215] _____________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata(options, expected): > params = default_reproject_params() tests/test_warp.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________ test_reproject_nodata[options1-4005] _____________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata(options, expected): > params = default_reproject_params() tests/test_warp.py:281: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________ test_reproject_nodata_nan[options0-6215] ___________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata_nan(options, expected): > params = default_reproject_params() tests/test_warp.py:308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________ test_reproject_nodata_nan[options1-4005] ___________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_nodata_nan(options, expected): > params = default_reproject_params() tests/test_warp.py:308: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_reproject_dst_nodata_default[options0-6215] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': False}, expected = 6215 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_dst_nodata_default(options, expected): """If nodata is not provided, destination will be filled with 0.""" > params = default_reproject_params() tests/test_warp.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_reproject_dst_nodata_default[options1-4005] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: options = {'CHECK_WITH_INVERT_PROJ': True}, expected = 4005 @pytest.mark.parametrize("options, expected", reproj_expected) def test_reproject_dst_nodata_default(options, expected): """If nodata is not provided, destination will be filled with 0.""" > params = default_reproject_params() tests/test_warp.py:335: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_invalid_dst_nodata _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_invalid_dst_nodata(): """dst_nodata must be in value range of data type.""" > params = default_reproject_params() tests/test_warp.py:359: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_missing_src_nodata _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_missing_src_nodata(): """src_nodata is required if dst_nodata is not None.""" > params = default_reproject_params() tests/test_warp.py:380: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________________ test_reproject_invalid_src_nodata _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_invalid_src_nodata(): """src_nodata must be in range for data type.""" > params = default_reproject_params() tests/test_warp.py:400: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_warp.py:72: in default_reproject_params dst_crs={'init': 'EPSG:32610'}) tests/test_warp.py:57: in __init__ src_crs, dst_crs, width, height, left, bottom, right, top) rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_reproject_multi _____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_multi(): """Ndarry to ndarray.""" with rasterio.Env(): with rasterio.open('tests/data/RGB.byte.tif') as src: source = src.read() dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) destin = np.empty(source.shape, dtype=np.uint8) reproject( source, destin, src_transform=src.transform, src_crs=src.crs, dst_transform=DST_TRANSFORM, dst_crs=dst_crs, > resampling=Resampling.nearest) tests/test_warp.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 422 DEBUG Entering Dataset context. test_warp.py 423 DEBUG Dataset has been stopped. test_warp.py 423 DEBUG Dataset has been closed. test_warp.py 423 DEBUG Exited Dataset context. warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________________________ test_warp_from_file ______________________________ def test_warp_from_file(): """File to ndarray.""" with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) destin = np.empty(src.shape, dtype=np.uint8) reproject( rasterio.band(src, 1), destin, dst_transform=DST_TRANSFORM, > dst_crs=dst_crs) tests/test_warp.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._warp:Created temp destination dataset. DEBUG:rasterio._base:PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' DEBUG:rasterio._warp:CRS for temp destination dataset: b'PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]]'. ERROR:rasterio._gdal:CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 451 DEBUG Entering Dataset context. warp.py 276 DEBUG Created temp destination dataset. warp.py 276 DEBUG PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' warp.py 276 DEBUG CRS for temp destination dataset: b'PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]]'. warp.py 276 ERROR CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' test_warp.py 470 DEBUG Dataset has been stopped. test_warp.py 470 DEBUG Dataset has been closed. test_warp.py 470 DEBUG Exited Dataset context. ____________________________ test_warp_from_to_file ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_from_to_file0') def test_warp_from_to_file(tmpdir): """File to file.""" tiffname = str(tmpdir.join('foo.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) kwargs = src.meta.copy() kwargs.update( transform=DST_TRANSFORM, crs=dst_crs) with rasterio.open(tiffname, 'w', **kwargs) as dst: for i in (1, 2, 3): > reproject(rasterio.band(src, i), rasterio.band(dst, i)) tests/test_warp.py:497: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True} DEBUG:rasterio._io:PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' DEBUG:rasterio._io:Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]] DEBUG:rasterio._io:Self CRS: CRS({'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True}) DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Params: b'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 477 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: {'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True} __init__.py 193 DEBUG PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' __init__.py 193 DEBUG Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]] __init__.py 193 DEBUG Self CRS: CRS({'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Params: b'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_warp.py 495 DEBUG Entering Dataset context. warp.py 276 ERROR CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' test_warp.py 497 DEBUG Dataset has been stopped. test_warp.py 497 DEBUG Dataset has been closed. test_warp.py 497 DEBUG Exited Dataset context. test_warp.py 497 DEBUG Dataset has been stopped. test_warp.py 497 DEBUG Dataset has been closed. test_warp.py 497 DEBUG Exited Dataset context. _________________________ test_warp_from_to_file_multi _________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_warp_from_to_file_multi0') def test_warp_from_to_file_multi(tmpdir): """File to file.""" tiffname = str(tmpdir.join('foo.tif')) with rasterio.open('tests/data/RGB.byte.tif') as src: dst_crs = dict( proj='merc', a=6378137, b=6378137, lat_ts=0.0, lon_0=0.0, x_0=0.0, y_0=0, k=1.0, units='m', nadgrids='@null', wktext=True, no_defs=True) kwargs = src.meta.copy() kwargs.update( transform=DST_TRANSFORM, crs=dst_crs) with rasterio.open(tiffname, 'w', **kwargs) as dst: for i in (1, 2, 3): reproject( rasterio.band(src, i), rasterio.band(dst, i), > num_threads=2) tests/test_warp.py:526: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:391: in rasterio._warp._reproject raise rasterio/_warp.pyx:380: in rasterio._warp._reproject with CPLErrors() as cple: rasterio/_warp.pyx:384: in rasterio._warp._reproject cple.check() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_NotSupported: Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed. rasterio/_err.pyx:196: CPLE_NotSupported ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._io:Input CRS: {'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True} DEBUG:rasterio._io:PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' DEBUG:rasterio._io:Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]] DEBUG:rasterio._io:Self CRS: CRS({'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True}) DEBUG:rasterio._base:Got coordinate system INFO:rasterio._base:Failed to auto identify EPSG: 7 DEBUG:rasterio._base:Params: b'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Nodata success: 1, Nodata value: 0.000000 DEBUG:rasterio._base:Entering Dataset context. ERROR:rasterio._gdal:CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 503 DEBUG Entering Dataset context. __init__.py 193 DEBUG Input CRS: {'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True} __init__.py 193 DEBUG PROJ.4 to be imported: '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' __init__.py 193 DEBUG Exported WKT: PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown",SPHEROID["unnamed",6378137,0],EXTENSION["PROJ4_GRIDS","@null"]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"],PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]] __init__.py 193 DEBUG Self CRS: CRS({'proj': 'merc', 'a': 6378137, 'b': 6378137, 'lat_ts': 0.0, 'lon_0': 0.0, 'x_0': 0.0, 'y_0': 0, 'k': 1.0, 'units': 'm', 'nadgrids': '@null', 'wktext': True, 'no_defs': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 INFO Failed to auto identify EPSG: 7 __init__.py 193 DEBUG Params: b'+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs' __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 __init__.py 193 DEBUG Nodata success: 1, Nodata value: 0.000000 test_warp.py 521 DEBUG Entering Dataset context. warp.py 276 ERROR CPLE_NotSupported in b'Unable to load PROJ.4 library (libproj.so.0), creation of OGRCoordinateTransformation failed.' test_warp.py 526 DEBUG Dataset has been stopped. test_warp.py 526 DEBUG Dataset has been closed. test_warp.py 526 DEBUG Exited Dataset context. test_warp.py 526 DEBUG Dataset has been stopped. test_warp.py 526 DEBUG Dataset has been closed. test_warp.py 526 DEBUG Exited Dataset context. _____________________________ test_transform_geom ______________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_transform_geom(): geom = { 'type': 'Polygon', 'coordinates': ( ((798842.3090855901, 6569056.500655151), (756688.2826828464, 6412397.888771972), (755571.0617232556, 6408461.009397383), (677605.2284582685, 6425600.39266733), (677605.2284582683, 6425600.392667332), (670873.3791649605, 6427248.603432341), (664882.1106069803, 6407585.48425362), (663675.8662823177, 6403676.990080649), (485120.71963574126, 6449787.167760638), (485065.55660851026, 6449802.826920689), (485957.03982722526, 6452708.625101285), (487541.24541826674, 6457883.292107048), (531008.5797472061, 6605816.560367976), (530943.7197027118, 6605834.9333479265), (531888.5010308184, 6608940.750411527), (533299.5981959199, 6613962.642851984), (533403.6388841148, 6613933.172096095), (576345.6064638699, 6761983.708069147), (577649.6721159086, 6766698.137844516), (578600.3589008929, 6770143.99782289), (578679.4732294685, 6770121.638265098), (655836.640492081, 6749376.357102599), (659913.0791150068, 6764770.1314677475), (661105.8478791204, 6769515.168134831), (661929.4670843681, 6772800.8565198565), (661929.4670843673, 6772800.856519875), (661975.1582566603, 6772983.354777632), (662054.7979028501, 6772962.86384242), (841909.6014891531, 6731793.200435557), (840726.455490463, 6727039.8672589315), (798842.3090855901, 6569056.500655151)),)} > result = transform_geom('EPSG:3373', 'EPSG:4326', geom) tests/test_warp.py:565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:96: in transform_geom precision) rasterio/_warp.pyx:86: in rasterio._warp._transform_geom src = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ------------------------------ Captured log call ------------------------------- warp.py 96 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' ____________ test_resample_default_invert_proj[Resampling.nearest] _____________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.bilinear] ____________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _____________ test_resample_default_invert_proj[Resampling.cubic] ______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context __________ test_resample_default_invert_proj[Resampling.cubic_spline] __________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.lanczos] _____________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ____________ test_resample_default_invert_proj[Resampling.average] _____________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.mode] ______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.max] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.min] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ______________ test_resample_default_invert_proj[Resampling.med] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_resample_default_invert_proj[Resampling.q1] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________ test_resample_default_invert_proj[Resampling.q3] _______________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: method = @pytest.mark.parametrize("method", Resampling) def test_resample_default_invert_proj(method): """Nearest and bilinear should produce valid results with the default Env """ if not supported_resampling(method): pytest.skip() with rasterio.Env(): with rasterio.open('tests/data/world.rgb.tif') as src: source = src.read(1) profile = src.profile.copy() dst_crs = {'init': 'EPSG:32619'} # Calculate the ideal dimensions and transformation in the new crs dst_affine, dst_width, dst_height = calculate_default_transform( > src.crs, dst_crs, src.width, src.height, *src.bounds) tests/test_warp.py:642: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:334: in calculate_default_transform left, bottom, right, top) rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Dataset is started. DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Dataset is started. test_warp.py 634 DEBUG Entering Dataset context. test_warp.py 636 DEBUG Dataset has been stopped. test_warp.py 636 DEBUG Dataset has been closed. test_warp.py 636 DEBUG Exited Dataset context. warp.py 334 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ___________________________ test_reproject_identity ____________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_reproject_identity(): """Reproject with an identity matrix.""" # note the affines are both positive e, src is identity src = np.random.random(25).reshape((1, 5, 5)) srcaff = Affine(1.0, 0.0, 0.0, 0.0, 1.0, 0.0) # Identity srccrs = {'init': 'epsg:3857'} dst = np.empty(shape=(1, 10, 10)) dstaff = Affine(0.5, 0.0, 0.0, 0.0, 0.5, 0.0) dstcrs = {'init': 'epsg:3857'} with rasterio.Env(): reproject( src, dst, src_transform=srcaff, src_crs=srccrs, dst_transform=dstaff, dst_crs=dstcrs, > resampling=Resampling.nearest) tests/test_warp.py:738: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/warp.py:276: in reproject **kwargs) rasterio/_warp.pyx:293: in rasterio._warp._reproject osr = _base._osr_from_crs(src_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context DEBUG:rasterio._warp:Created temp source dataset DEBUG:rasterio._warp:Set transform on temp source dataset: 0 ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context warp.py 276 DEBUG Created temp source dataset warp.py 276 DEBUG Set transform on temp source dataset: 0 warp.py 276 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context ________________________________ test_identity _________________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_identity(): """Get the same transform and dimensions back for same crs.""" # Tile: [53, 96, 8] src_crs = dst_crs = 'EPSG:3857' width = height = 1000 left, bottom, right, top = ( -11740727.544603072, 4852834.0517692715, -11584184.510675032, 5009377.085697309) transform = from_bounds(left, bottom, right, top, width, height) with rasterio.Env(): res_transform, res_width, res_height = _calculate_default_transform( > src_crs, dst_crs, width, height, left, bottom, right, top) tests/test_warp_transform.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 24 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________ test_gdal_transform_notnull __________________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_gdal_transform_notnull(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( src_crs={'init': 'EPSG:4326'}, dst_crs={'init': 'EPSG:32610'}, width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 54 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_gdal_transform_fail_dst_crs _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_gdal_transform_fail_dst_crs(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( {'init': 'EPSG:4326'}, '+proj=foobar', width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:68: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:552: in rasterio._warp._calculate_default_transform with InMemoryRaster( rasterio/_io.pyx:1968: in rasterio._io.InMemoryRaster.__cinit__ osr = _base._osr_from_crs(crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 68 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _______________________ test_gdal_transform_fail_src_crs _______________________ > with CPLErrors() as cple: rasterio/_base.pyx:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > cple.check() rasterio/_base.pyx:934: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise exception_map.get(err_no, CPLError)(err_type, err_no, msg) E rasterio._err.CPLE_OpenFailed: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. rasterio/_err.pyx:196: CPLE_OpenFailed During handling of the above exception, another exception occurred: def test_gdal_transform_fail_src_crs(): with rasterio.Env(): dt, dw, dh = _calculate_default_transform( '+proj=foobar', {'init': 'EPSG:32610'}, width=80, height=80, left=-120, bottom=30, right=-80, > top=70) tests/test_warp_transform.py:81: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ rasterio/_warp.pyx:548: in rasterio._warp._calculate_default_transform osr = _base._osr_from_crs(dst_crs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > raise CRSError('Invalid CRS') E rasterio.errors.CRSError: Invalid CRS rasterio/_base.pyx:937: CRSError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio.env:Environment exists DEBUG:rasterio.env:Got a copy of environment options DEBUG:rasterio.env:Updated existing with options {} DEBUG:rasterio.env:Entering env context ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._drivers:Unset option CHECK_WITH_INVERT_PROJ in env DEBUG:rasterio.env:Cleared existing options DEBUG:rasterio._drivers:Set option CHECK_WITH_INVERT_PROJ=True in env DEBUG:rasterio.env:Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} DEBUG:rasterio.env:Exiting env context ------------------------------ Captured log call ------------------------------- env.py 158 DEBUG Environment exists env.py 172 DEBUG Got a copy of environment options env.py 183 DEBUG Updated existing with options {} env.py 145 DEBUG Entering env context test_warp_transform.py 81 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' env.py 192 DEBUG Unset option CHECK_WITH_INVERT_PROJ in env env.py 193 DEBUG Cleared existing options env.py 182 DEBUG Set option CHECK_WITH_INVERT_PROJ=True in env env.py 183 DEBUG Updated existing with options {'CHECK_WITH_INVERT_PROJ': True} env.py 151 DEBUG Exiting env context _________________________________ test_context _________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_context0') def test_context(tmpdir): name = str(tmpdir.join("test_context.tif")) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, dtype=rasterio.ubyte) as s: assert s.name == name assert s.driver == 'GTiff' assert not s.closed assert s.count == 1 assert s.width == 100 assert s.height == 100 assert s.shape == (100, 100) assert s.indexes == (1,) assert repr(s) == "" % name assert s.closed assert s.count == 1 assert s.width == 100 assert s.height == 100 assert s.shape == (100, 100) assert repr(s) == "" % name > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:70: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_context0/test_context.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 54 DEBUG Entering Dataset context. test_write.py 63 DEBUG Dataset has been stopped. test_write.py 63 DEBUG Dataset has been closed. test_write.py 63 DEBUG Exited Dataset context. _______________________________ test_write_ubyte _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte1') def test_write_ubyte(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:82: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte1/sub/test_write_ubyte.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ____________________________ test_write_ubyte_multi ____________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi0') def test_write_ubyte_multi(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:92: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi0/sub/test_write_ubyte_multi.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError _________________________ test_write_ubyte_multi_list __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi_list0') def test_write_ubyte_multi_list(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi_list.tif")) a = np.array([np.ones((100, 100), dtype=rasterio.ubyte) * 127]) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, > dtype=a.dtype) as s: tests/test_write.py:102: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi_list0/sub/test_write_ubyte_multi_list.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ___________________________ test_write_ubyte_multi_3 ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi_30') def test_write_ubyte_multi_3(tmpdir): name = str(tmpdir.mkdir("sub").join("test_write_ubyte_multi_list.tif")) arr = np.array(3 * [np.ones((100, 100), dtype=rasterio.ubyte) * 127]) with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=3, > dtype=arr.dtype) as s: tests/test_write.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_ubyte_multi_30/sub/test_write_ubyte_multi_list.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 3, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError _______________________________ test_write_float _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_float0') def test_write_float(tmpdir): name = str(tmpdir.join("test_write_float.tif")) a = np.ones((100, 100), dtype=rasterio.float32) * 42.0 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, dtype=rasterio.float32) as s: assert s.dtypes == (rasterio.float32, rasterio.float32) s.write(a, indexes=1) s.write(a, indexes=2) > info = subprocess.check_output(["gdalinfo", "-stats", name]).decode('utf-8') tests/test_write.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '-stats', '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_float0/test_write_float.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 123 DEBUG Entering Dataset context. test_write.py 126 DEBUG Dataset has been stopped. test_write.py 126 DEBUG Dataset has been closed. test_write.py 126 DEBUG Exited Dataset context. ___________________________ test_write_crs_transform ___________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform0') def test_write_crs_transform(tmpdir): name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs={'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18}, transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:144: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform0/test_write_crs_transform.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: {'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18} DEBUG:rasterio._io:PROJ.4 to be imported: '+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18, 'wktext': True}) DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: {'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18} __init__.py 193 DEBUG PROJ.4 to be imported: '+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18, 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 141 DEBUG Entering Dataset context. test_write.py 142 DEBUG Dataset has been stopped. test_write.py 142 DEBUG Dataset has been closed. test_write.py 142 DEBUG Exited Dataset context. _______________________ test_write_crs_transform_affine ________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform_affin0') def test_write_crs_transform_affine(tmpdir): name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs={'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18}, affine=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform_affin0/test_write_crs_transform.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: {'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18} DEBUG:rasterio._io:PROJ.4 to be imported: '+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext"]] DEBUG:rasterio._io:Self CRS: CRS({'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18, 'wktext': True}) DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: {'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18} __init__.py 193 DEBUG PROJ.4 to be imported: '+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1],EXTENSION["PROJ4","+units=m +no_defs +ellps=WGS84 +proj=utm +zone=18 +wktext"]] __init__.py 193 DEBUG Self CRS: CRS({'units': 'm', 'no_defs': True, 'ellps': 'WGS84', 'proj': 'utm', 'zone': 18, 'wktext': True}) __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 161 DEBUG Entering Dataset context. test_write.py 162 DEBUG Dataset has been stopped. test_write.py 162 DEBUG Dataset has been closed. test_write.py 162 DEBUG Exited Dataset context. __________________________ test_write_crs_transform_2 __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform_20') def test_write_crs_transform_2(tmpdir): """Using 'EPSG:32618' as CRS.""" name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs='EPSG:32618', transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) > assert s.crs.to_dict() == {'init': 'epsg:32618'} E AssertionError: assert {} == {'init': 'epsg:32618'} E Right contains more items: E {'init': 'epsg:32618'} E Use -v to get the full diff tests/test_write.py:183: AssertionError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: 'EPSG:32618' ERROR:rasterio._gdal:CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' DEBUG:rasterio._io:Exported WKT: DEBUG:rasterio._io:Self CRS: 'EPSG:32618' DEBUG:rasterio._base:GDAL dataset has no projection. DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: 'EPSG:32618' __init__.py 193 ERROR CPLE_OpenFailed in b'Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.' __init__.py 193 DEBUG Exported WKT: __init__.py 193 DEBUG Self CRS: 'EPSG:32618' __init__.py 193 DEBUG GDAL dataset has no projection. __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 181 DEBUG Entering Dataset context. test_write.py 182 DEBUG Dataset has been stopped. test_write.py 182 DEBUG Dataset has been closed. test_write.py 182 DEBUG Exited Dataset context. __________________________ test_write_crs_transform_3 __________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform_30') def test_write_crs_transform_3(tmpdir): """Using WKT as CRS.""" name = str(tmpdir.join("test_write_crs_transform.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 transform = [101985.0, 300.0379266750948, 0.0, 2826915.0, 0.0, -300.041782729805] wkt = 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, crs=wkt, transform=transform, dtype=rasterio.ubyte) as s: s.write(a, indexes=1) assert s.crs.to_dict() == {'init': 'epsg:32618'} > info = subprocess.check_output(["gdalinfo", name]).decode('utf-8') tests/test_write.py:205: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.7/subprocess.py:395: in check_output **kwargs).stdout /usr/lib/python3.7/subprocess.py:472: in run with Popen(*popenargs, **kwargs) as process: /usr/lib/python3.7/subprocess.py:775: in __init__ restore_signals, start_new_session) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = args = ['gdalinfo', '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_crs_transform_30/test_write_crs_transform.tif'] executable = b'gdalinfo', preexec_fn = None, close_fds = True, pass_fds = () cwd = None, env = None, startupinfo = None, creationflags = 0, shell = False p2cread = -1, p2cwrite = -1, c2pread = 13, c2pwrite = 14, errread = -1 errwrite = -1, restore_signals = True, start_new_session = False def _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session): """Execute program (POSIX version)""" if isinstance(args, (str, bytes)): args = [args] else: args = list(args) if shell: # On Android the default shell is at '/system/bin/sh'. unix_shell = ('/system/bin/sh' if hasattr(sys, 'getandroidapilevel') else '/bin/sh') args = [unix_shell, "-c"] + args if executable: args[0] = executable if executable is None: executable = args[0] orig_executable = executable # For transferring possible exec failure from child to parent. # Data format: "exception name:hex errno:description" # Pickle is not used; it is complex and involves memory allocation. errpipe_read, errpipe_write = os.pipe() # errpipe_write must not be in the standard io 0, 1, or 2 fd range. low_fds_to_close = [] while errpipe_write < 3: low_fds_to_close.append(errpipe_write) errpipe_write = os.dup(errpipe_write) for low_fd in low_fds_to_close: os.close(low_fd) try: try: # We must avoid complex work that could involve # malloc or free in the child process to avoid # potential deadlocks, thus we do all this here. # and pass it to fork_exec() if env is not None: env_list = [] for k, v in env.items(): k = os.fsencode(k) if b'=' in k: raise ValueError("illegal environment variable name") env_list.append(k + b'=' + os.fsencode(v)) else: env_list = None # Use execv instead of execve. executable = os.fsencode(executable) if os.path.dirname(executable): executable_list = (executable,) else: # This matches the behavior of os._execvpe(). executable_list = tuple( os.path.join(os.fsencode(dir), executable) for dir in os.get_exec_path(env)) fds_to_keep = set(pass_fds) fds_to_keep.add(errpipe_write) self.pid = _posixsubprocess.fork_exec( args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn) self._child_created = True finally: # be sure the FD is closed no matter what os.close(errpipe_write) # self._devnull is not always defined. devnull_fd = getattr(self, '_devnull', None) if p2cread != -1 and p2cwrite != -1 and p2cread != devnull_fd: os.close(p2cread) if c2pwrite != -1 and c2pread != -1 and c2pwrite != devnull_fd: os.close(c2pwrite) if errwrite != -1 and errread != -1 and errwrite != devnull_fd: os.close(errwrite) if devnull_fd is not None: os.close(devnull_fd) # Prevent a double close of these fds from __init__ on error. self._closed_child_pipe_fds = True # Wait for exec to fail or succeed; possibly raising an # exception (limited in size) errpipe_data = bytearray() while True: part = os.read(errpipe_read, 50000) errpipe_data += part if not part or len(errpipe_data) > 50000: break finally: # be sure the FD is closed no matter what os.close(errpipe_read) if errpipe_data: try: pid, sts = os.waitpid(self.pid, 0) if pid == self.pid: self._handle_exitstatus(sts) else: self.returncode = sys.maxsize except ChildProcessError: pass try: exception_name, hex_errno, err_msg = ( errpipe_data.split(b':', 2)) # The encoding here should match the encoding # written in by the subprocess implementations # like _posixsubprocess err_msg = err_msg.decode() except ValueError: exception_name = b'SubprocessError' hex_errno = b'0' err_msg = 'Bad exception data from child: {!r}'.format( bytes(errpipe_data)) child_exception_type = getattr( builtins, exception_name.decode('ascii'), SubprocessError) if issubclass(child_exception_type, OSError) and hex_errno: errno_num = int(hex_errno, 16) child_exec_never_called = (err_msg == "noexec") if child_exec_never_called: err_msg = "" # The error must be from chdir(cwd). err_filename = cwd else: err_filename = orig_executable if errno_num != 0: err_msg = os.strerror(errno_num) if errno_num == errno.ENOENT: err_msg += ': ' + repr(err_filename) > raise child_exception_type(errno_num, err_msg, err_filename) E FileNotFoundError: [Errno 2] No such file or directory: 'gdalinfo': 'gdalinfo' /usr/lib/python3.7/subprocess.py:1522: FileNotFoundError ----------------------------- Captured stderr call ----------------------------- DEBUG:rasterio._io:Input CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' DEBUG:rasterio._io:Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] DEBUG:rasterio._io:Self CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' DEBUG:rasterio._base:Got coordinate system DEBUG:rasterio._base:Nodata success: 0, Nodata value: -10000000000.000000 DEBUG:rasterio._base:Entering Dataset context. DEBUG:rasterio._base:Dataset has been stopped. DEBUG:rasterio._base:Dataset has been closed. DEBUG:rasterio._base:Exited Dataset context. ------------------------------ Captured log call ------------------------------- __init__.py 193 DEBUG Input CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' __init__.py 193 DEBUG Exported WKT: PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]] __init__.py 193 DEBUG Self CRS: 'PROJCS["UTM Zone 18, Northern Hemisphere",GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-75],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]' __init__.py 193 DEBUG Got coordinate system __init__.py 193 DEBUG Nodata success: 0, Nodata value: -10000000000.000000 test_write.py 202 DEBUG Entering Dataset context. test_write.py 203 DEBUG Dataset has been stopped. test_write.py 203 DEBUG Dataset has been closed. test_write.py 203 DEBUG Exited Dataset context. _______________________________ test_write_meta ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_meta0') def test_write_meta(tmpdir): name = str(tmpdir.join("test_write_meta.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 meta = dict(driver='GTiff', width=100, height=100, count=1) > with rasterio.open(name, 'w', dtype=a.dtype, **meta) as s: tests/test_write.py:215: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_meta0/test_write_meta.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ test_write_nodata _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_nodata0') def test_write_nodata(tmpdir): name = str(tmpdir.join("test_write_nodata.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, > dtype=a.dtype, nodata=0) as s: tests/test_write.py:226: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_nodata0/test_write_nodata.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 2, crs = None transform = None, dtype = dtype('uint8'), nodata = 0, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ______________________________ test_guard_nodata _______________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_guard_nodata0') def test_guard_nodata(tmpdir): name = str(tmpdir.join("test_guard_nodata.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with pytest.raises(ValueError): rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=2, > dtype=a.dtype, nodata=-1) tests/test_write.py:240: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_guard_nodata0/test_guard_nodata.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 2, crs = None transform = None, dtype = dtype('uint8'), nodata = -1, kwargs = {} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError ________________________________ test_write_lzw ________________________________ tmpdir = local('/usr/src/tmp/pytest-of-builder/pytest-1/test_write_lzw0') def test_write_lzw(tmpdir): name = str(tmpdir.join("test_write_lzw.tif")) a = np.ones((100, 100), dtype=rasterio.ubyte) * 127 with rasterio.open( name, 'w', driver='GTiff', width=100, height=100, count=1, dtype=a.dtype, > compress='LZW') as s: tests/test_write.py:251: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ path = '/usr/src/tmp/pytest-of-builder/pytest-1/test_write_lzw0/test_write_lzw.tif' mode = 'w', driver = 'GTiff', width = 100, height = 100, count = 1, crs = None transform = None, dtype = dtype('uint8'), nodata = None kwargs = {'compress': 'LZW'} @ensure_env def open(path, mode='r', driver=None, width=None, height=None, count=None, crs=None, transform=None, dtype=None, nodata=None, **kwargs): """Open file at ``path`` in ``mode`` 'r' (read), 'r+' (read and write), or 'w' (write) and return a dataset Reader or Updater object. In write mode, a driver name such as "GTiff" or "JPEG" (see GDAL docs or ``gdal_translate --help`` on the command line), ``width`` (number of pixels per line) and ``height`` (number of lines), the ``count`` number of bands in the new file must be specified. Additionally, the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands must be specified using the ``dtype`` argument. Parameters ---------- mode: string "r" (read), "r+" (read/write), or "w" (write) driver: string driver code specifying the format name (e.g. "GTiff" or "JPEG"). See GDAL docs at http://www.gdal.org/formats_list.html (optional, required for writing). width: int number of pixels per line (optional, required for write) height: int number of lines (optional, required for write) count: int > 0 number of bands (optional, required for write) dtype: rasterio.dtype the data type for bands such as ``rasterio.ubyte`` for 8-bit bands or ``rasterio.uint16`` for 16-bit bands (optional, required for write) crs: dict or string Coordinate reference system (optional, recommended for write) transform: Affine instance Affine transformation mapping the pixel space to geographic space (optional, recommended for writing). nodata: number Defines pixel value to be interpreted as null/nodata (optional, recommended for write) Returns ------- A ``DatasetReader`` or ``DatasetUpdater`` object. Notes ----- In write mode, you must specify at least ``width``, ``height``, ``count`` and ``dtype``. A coordinate reference system for raster datasets in write mode can be defined by the ``crs`` argument. It takes Proj4 style mappings like .. code:: {'proj': 'longlat', 'ellps': 'WGS84', 'datum': 'WGS84', 'no_defs': True} An affine transformation that maps ``col,row`` pixel coordinates to ``x,y`` coordinates in the coordinate reference system can be specified using the ``transform`` argument. The value should be an instance of ``affine.Affine`` .. code:: python >>> from affine import Affine >>> transform = Affine(0.5, 0.0, -180.0, 0.0, -0.5, 90.0) These coefficients are shown in the figure below. .. code:: | x | | a b c | | c | | y | = | d e f | | r | | 1 | | 0 0 1 | | 1 | a: rate of change of X with respect to increasing column, i.e. pixel width b: rotation, 0 if the raster is oriented "north up" c: X coordinate of the top left corner of the top left pixel d: rotation, 0 if the raster is oriented "north up" e: rate of change of Y with respect to increasing row, usually a negative number (i.e. -1 * pixel height) if north-up. f: Y coordinate of the top left corner of the top left pixel A 6-element sequence of the affine transformation matrix coefficients in ``c, a, b, f, d, e`` order, (i.e. GDAL geotransform order) will be accepted until 1.0 (deprecated). A virtual filesystem can be specified. The ``vfs`` parameter may be an Apache Commons VFS style string beginning with "zip://" or "tar://"". In this case, the ``path`` must be an absolute path within that container. """ if not isinstance(path, string_types): raise TypeError("invalid path: {0!r}".format(path)) if mode and not isinstance(mode, string_types): raise TypeError("invalid mode: {0!r}".format(mode)) if driver and not isinstance(driver, string_types): raise TypeError("invalid driver: {0!r}".format(driver)) if dtype and not check_dtype(dtype): > raise TypeError("invalid dtype: {0!r}".format(dtype)) E TypeError: invalid dtype: dtype('uint8') rasterio/__init__.py:158: TypeError =============================== warnings summary =============================== /usr/lib/python3/site-packages/_pytest/config/findpaths.py:44 /usr/lib/python3/site-packages/_pytest/config/findpaths.py:44: RemovedInPytest4Warning: [pytest] section in setup.cfg files is deprecated, use [tool:pytest] instead. config=config, /usr/lib/python3/site-packages/matplotlib/__init__.py:107 /usr/lib/python3/site-packages/matplotlib/__init__.py:107: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import MutableMapping /usr/lib/python3/site-packages/matplotlib/rcsetup.py:20 /usr/lib/python3/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping /usr/lib/python3/site-packages/matplotlib/rcsetup.py:20: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Iterable, Mapping /usr/lib/python3/site-packages/matplotlib/colors.py:53 /usr/lib/python3/site-packages/matplotlib/colors.py:53: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working from collections import Sized /usr/lib/python3/site-packages/botocore/vendored/requests/models.py:169 /usr/lib/python3/site-packages/botocore/vendored/requests/models.py:169: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working if isinstance(hook, collections.Callable): rasterio/__init__.py:193 /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() rasterio/warp.py:22 /usr/src/RPM/BUILD/python3/rasterio/warp.py:22: DeprecationWarning: RESAMPLING is deprecated, use Resampling instead. "RESAMPLING is deprecated, use Resampling instead.", DeprecationWarning) tests/test_update.py:22 /usr/src/RPM/BUILD/python3/tests/test_update.py:22: DeprecationWarning: invalid escape sequence \W assert re.search("Metadata:\W+a=1\W+AREA_OR_POINT=Area\W+b=2", info) tests/test_write.py:148 /usr/src/RPM/BUILD/python3/tests/test_write.py:148: DeprecationWarning: invalid escape sequence \( assert re.search("Pixel Size = \(300.03792\d+,-300.04178\d+\)", info) tests/test_write.py:168 /usr/src/RPM/BUILD/python3/tests/test_write.py:168: DeprecationWarning: invalid escape sequence \( assert re.search("Pixel Size = \(300.03792\d+,-300.04178\d+\)", info) tests/test_write.py:188 /usr/src/RPM/BUILD/python3/tests/test_write.py:188: DeprecationWarning: invalid escape sequence \( assert re.search("Pixel Size = \(300.03792\d+,-300.04178\d+\)", info) tests/test_write.py:209 /usr/src/RPM/BUILD/python3/tests/test_write.py:209: DeprecationWarning: invalid escape sequence \( assert re.search("Pixel Size = \(300.03792\d+,-300.04178\d+\)", info) tests/test_band_masks.py::test_mask_flags_sidecar /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_band_masks.py::test_mask_flags_shadow /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_band_masks.py::test_warning_shadow /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_band_masks.py::test_masking_no_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_band_masks.py::test_masking_sidecar_mask /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_colorinterp.py::test_cmyk_interp /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_colormap.py::test_write_colormap /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_dtypes.py::test_complex /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_features.py::test_shapes_band /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_features.py::test_sieve_band /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_mask_creation.py::test_create_internal_mask /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: read_mask() is deprecated and will be removed by Rasterio 1.0. Please use read_masks() instead. testfunction(**testargs) tests/test_mask_creation.py::test_create_sidecar_mask /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: read_mask() is deprecated and will be removed by Rasterio 1.0. Please use read_masks() instead. testfunction(**testargs) /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_mask_creation.py::test_create_mask_windowed_sidecar /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_mask_creation.py::test_create_mask_windowed_internal /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_meta.py::test_copy_meta /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_meta.py::test_blacklisted_keys /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_no_georef.py::test_write /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_no_georef.py::test_read_write /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_nodata.py::test_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_nodata.py::test_set_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_overviews.py::test_count_overviews_zero /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_one /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_two /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_average /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_build_overviews_gauss /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_overviews.py::test_test_unsupported_algo /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_plot.py::test_show_cmyk_interp /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) /usr/src/RPM/BUILD/python3/rasterio/plot.py:89: NodataShadowWarning: The dataset's nodata attribute is shadowing the alpha band. All masks will be determined by the nodata attribute arr = source.read(rgb_indexes, masked=True) tests/test_profile.py::test_open_with_profile /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_profile.py::test_dataset_profile_property_tiled /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_profile.py::test_dataset_profile_property_untiled /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_profile.py::test_dataset_profile_creation_kwds /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_read.py::ReaderContextTest::test_read_basic /usr/src/RPM/BUILD/python3/tests/test_read.py:130: DeprecationWarning: Please use assertTrue instead. self.assert_(hasattr(a, 'mask')) tests/test_read.py::ReaderContextTest::test_read_nan_nodata /usr/src/RPM/BUILD/python3/tests/test_read.py:250: RuntimeWarning: invalid value encountered in greater a = s.read(masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:250: RuntimeWarning: invalid value encountered in less a = s.read(masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:258: RuntimeWarning: invalid value encountered in greater a = s.read(masked=False) /usr/src/RPM/BUILD/python3/tests/test_read.py:258: RuntimeWarning: invalid value encountered in less a = s.read(masked=False) /usr/src/RPM/BUILD/python3/tests/test_read.py:262: RuntimeWarning: invalid value encountered in greater a = s.read(window=((0, 2), (0, 2)), masked=True) /usr/src/RPM/BUILD/python3/tests/test_read.py:262: RuntimeWarning: invalid value encountered in less a = s.read(window=((0, 2), (0, 2)), masked=True) tests/test_read.py::ReaderContextTest::test_read_no_band /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_revolvingdoor.py::RevolvingDoorTest::test_write_colormap_revolving_door /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_features.py::test_mask /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_all_touched /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_invert /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_featurecollection /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_out_of_bounds /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_no_geojson /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_invalid_geojson /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_crop /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_crop_inverted_y /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_crop_out_of_bounds /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_mask_crop_and_invert /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_invalid_bidx /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_sequence /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_sequence_rs /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_with_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_shapes_indent /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_compact /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_sampling /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_precision /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_shapes_mask /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_shapes_mask_sampling /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_shapes_band1_as_mask /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_rasterize_like_raster /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_rasterize_like_raster_src_crs_mismatch /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_features.py::test_rasterize_featurecollection /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_rasterize_src_crs_mismatch /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_rio_features.py::test_rasterize_like_raster_outside_bounds /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() tests/test_rio_info.py::test_edit_nodata_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_nodata /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_epsg /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_proj4 /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_obj /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_err_not_json /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_err_bad_array /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_affine /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_transform_gdal /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/src/RPM/BUILD/python3/rasterio/rio/edit_info.py:68: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. retval = guard_transform(value) tests/test_rio_info.py::test_edit_tags /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback_pass /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_all_callback_None /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback_pass /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_transform_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_crs_callback_pass /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_crs_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_tags_callback_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_tags_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_crs_like /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_nodata_like /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_info.py::test_edit_all_like /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_main.py::test_version /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_main.py::test_gdal_version /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_merge.py::test_merge_with_colormap /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) /usr/src/RPM/BUILD/python3/tests/test_rio_merge.py:77: UserWarning: This format doesn't support alpha in colormap entries. The value will be ignored. src.write_colormap(1, {0: (255, 0, 0, 255), 255: (0, 0, 0, 0)}) /usr/src/RPM/BUILD/python3/rasterio/rio/merge.py:74: UserWarning: This format doesn't support alpha in colormap entries. The value will be ignored. dst.write_colormap(1, colormap) tests/test_rio_merge.py::test_merge_with_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_merge.py::test_merge_warn /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) /usr/src/RPM/BUILD/python3/rasterio/merge.py:120: UserWarning: Input file's nodata value, -1.0, is beyond the valid range of its data type, uint8. Consider overriding it using the --nodata option for better results. nodataval, dtype)) tests/test_rio_merge.py::test_merge_without_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_merge.py::test_merge_output_exists_without_nodata_fails /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_merge.py::test_merge_output_exists_without_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_merge.py::test_merge_overlapping /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_merge.py::test_merge_float /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_rio_options.py::test_like_dataset_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_pass /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback_0 /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_options.py::test_nodata_callback /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_err /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_ls_none /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_build_ls /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_build_pow_ls /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_overview.py::test_rebuild_ls /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_rio_warp.py::test_warp_reproject_like /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_tags.py::test_tags_update /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tags.py::test_tags_update_twice /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tags.py::test_tags_eq /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tools_mask.py::test_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tools_mask.py::test_no_nodata /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tools_mask.py::test_crop /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tools_mask.py::test_crop_all_touched /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_tools_mask.py::test_crop_and_invert /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_transform.py::test_affine_identity /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset uses default geotransform (Affine.identity). No transform will be written to the output by GDAL. s.start() /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_update.py::test_update_tags /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_band /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_spatial /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) tests/test_update.py::test_update_spatial_epsg /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) tests/test_update.py::test_update_nodatavals /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_nodatavals_error /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_mask_true /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_update.py::test_update_mask_false /usr/src/RPM/BUILD/python3/tests/conftest.py:44: RemovedInPytest4Warning: pytest/tmpdir_factory.ensuretemp is deprecated, please use the tmp_path fixture or tmp_path_factory.mktemp tmpdir = py.test.ensuretemp('tests/data') tests/test_warp.py::test_reproject_ndarray /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) /usr/src/RPM/BUILD/python3/rasterio/warp.py:250: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. if src_transform and guard_transform(src_transform).is_identity: /usr/src/RPM/BUILD/python3/rasterio/warp.py:256: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. src_transform = guard_transform(src_transform).to_gdal() tests/test_warp.py::test_reproject_epsg /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) /usr/src/RPM/BUILD/python3/rasterio/warp.py:250: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. if src_transform and guard_transform(src_transform).is_identity: /usr/src/RPM/BUILD/python3/rasterio/warp.py:256: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. src_transform = guard_transform(src_transform).to_gdal() tests/test_warp.py::test_reproject_out_of_bounds /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) /usr/src/RPM/BUILD/python3/rasterio/warp.py:250: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. if src_transform and guard_transform(src_transform).is_identity: /usr/src/RPM/BUILD/python3/rasterio/warp.py:256: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. src_transform = guard_transform(src_transform).to_gdal() tests/test_warp.py::test_reproject_multi /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) /usr/src/RPM/BUILD/python3/rasterio/warp.py:250: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. if src_transform and guard_transform(src_transform).is_identity: /usr/src/RPM/BUILD/python3/rasterio/warp.py:256: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. src_transform = guard_transform(src_transform).to_gdal() tests/test_warp.py::test_reproject_unsupported_resampling /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) tests/test_warp.py::test_reproject_unsupported_resampling_guass /usr/lib/python3/site-packages/_pytest/python.py:166: FutureWarning: The value of this property will change in version 1.0. Please see https://github.com/mapbox/rasterio/issues/86 for details. testfunction(**testargs) tests/test_write.py::test_no_crs /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_write.py::test_context /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_write.py::test_write_float /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() tests/test_write.py::test_write_crs_transform /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_write.py::test_write_crs_transform_affine /usr/src/RPM/BUILD/python3/rasterio/__init__.py:163: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(affine) tests/test_write.py::test_write_crs_transform_2 /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_write.py::test_write_crs_transform_3 /usr/src/RPM/BUILD/python3/rasterio/__init__.py:160: FutureWarning: GDAL-style transforms are deprecated and will not be supported in Rasterio 1.0. transform = guard_transform(transform) tests/test_write.py::test_write_noncontiguous /usr/src/RPM/BUILD/python3/rasterio/__init__.py:193: UserWarning: Dataset has no geotransform set. Default transform will be applied (Affine.identity()) s.start() -- Docs: https://docs.pytest.org/en/latest/warnings.html = 198 failed, 419 passed, 7 skipped, 15 xfailed, 1 xpassed, 189 warnings in 49.03 seconds = + : + popd ~/RPM/BUILD/python-module-rasterio-0.36.0 + exit 0 Processing files: python-module-rasterio-0.36.0-alt2.qa1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.59649 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-rasterio-0.36.0 + DOCDIR=/usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + /bin/mkdir -p /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + cp -prL AUTHORS.txt CHANGES.txt CITATION.txt CODE_OF_CONDUCT.txt LICENSE.txt VERSION.txt CONTRIBUTING.rst README.rst benchmarks examples /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + chmod -R go-w /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + chmod -R a+rX /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-0.36.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.mN55GF find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.iZkdWO find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/bin/rio: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=8 IGNORE (for REQ=slight and deep=8) module=logging python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=176 IGNORE (for REQ=slight and deep=13) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=179 IGNORE (for REQ=slight and deep=13) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=182 IGNORE (for REQ=slight and deep=13) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=185 IGNORE (for REQ=slight and deep=13) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=225 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/__init__.py: line=301 IGNORE (for REQ=slight and deep=8) module=numpy python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=12 IGNORE (for REQ=slight and deep=8) module=configparser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=13 IGNORE (for REQ=slight and deep=8) module=urllib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=14 IGNORE (for REQ=slight and deep=8) module=collections /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=20 IGNORE (for REQ=slight and deep=8) module=ConfigParser /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=21 IGNORE (for REQ=slight and deep=8) module=urlparse /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/compat.py: line=22 IGNORE (for REQ=slight and deep=8) module=UserDict python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/crs.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py: line=103 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py: line=132 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py: line=150 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/dtypes.py: line=179 IGNORE (for REQ=slight and deep=8) module=numpy python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/env.py: line=111 IGNORE (for REQ=slight and deep=11) module=boto3 python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/features.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/fill.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/mask.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/merge.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/plot.py: line=28 IGNORE (for REQ=slight and deep=12) module=matplotlib python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/profiles.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py: line=11 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/bounds.py: line=48 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: line=11 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/calc.py: line=87 IGNORE (for REQ=slight and deep=9) module=numpy /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py: line=6 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py: line=7 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/clip.py: line=54 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py: line=10 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/convert.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: line=8 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/edit_info.py: line=125 IGNORE (for REQ=slight and deep=9) module=numpy python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/env.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/helpers.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.py: line=7 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/info.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: line=13 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: line=18 IGNORE (for REQ=slight and deep=8) module=matplotlib /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/insp.py: line=54 IGNORE (for REQ=slight and deep=12) module=IPython python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py: skipping sys /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py: line=42 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/main.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py: line=9 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py: line=68 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/mask.py: line=69 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py: line=9 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/merge.py: line=47 IGNORE (for REQ=slight and deep=9) module=rasterio python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/options.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py: line=10 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/overview.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: line=10 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: line=110 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: line=111 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/rasterize.py: line=112 IGNORE (for REQ=slight and deep=9) module=rasterio python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/sample.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: line=8 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: line=91 IGNORE (for REQ=slight and deep=9) module=numpy /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: line=92 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/shapes.py: line=93 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py: line=9 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/stack.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/transform.py: line=22 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: line=9 possible relative import from ., UNIMPLEMENTED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/rio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=8 IGNORE (for REQ=slight and deep=8) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=9 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=15 IGNORE (for REQ=slight and deep=8) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=16 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=22 IGNORE (for REQ=slight and deep=8) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=23 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=29 IGNORE (for REQ=slight and deep=8) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tool.py: line=30 IGNORE (for REQ=slight and deep=8) module=warnings python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/mask.py: line=10 IGNORE (for REQ=slight and deep=8) module=warnings python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/tools/merge.py: line=10 IGNORE (for REQ=slight and deep=8) module=warnings python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/vfs.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED python.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/warp.py: hiding rasterio, which SEEMS TO BE SELF-SATISFIED /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py: line=37 IGNORE (for REQ=slight and deep=8) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py: line=54 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py: line=73 IGNORE (for REQ=slight and deep=9) module=rasterio /usr/lib/rpm/python.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python2.7/site-packages/rasterio/windows.py: line=91 IGNORE (for REQ=slight and deep=9) module=rasterio Provides: python2.7(rasterio), python2.7(rasterio._base), python2.7(rasterio._copy), python2.7(rasterio._crs), python2.7(rasterio._drivers), python2.7(rasterio._err), python2.7(rasterio._example), python2.7(rasterio._features), python2.7(rasterio._fill), python2.7(rasterio._io), python2.7(rasterio._warp), python2.7(rasterio.compat), python2.7(rasterio.coords), python2.7(rasterio.crs), python2.7(rasterio.dtypes), python2.7(rasterio.enums), python2.7(rasterio.env), python2.7(rasterio.errors), python2.7(rasterio.features), python2.7(rasterio.fill), python2.7(rasterio.mask), python2.7(rasterio.merge), python2.7(rasterio.plot), python2.7(rasterio.profiles), python2.7(rasterio.rio), python2.7(rasterio.rio.bounds), python2.7(rasterio.rio.calc), python2.7(rasterio.rio.clip), python2.7(rasterio.rio.convert), python2.7(rasterio.rio.edit_info), python2.7(rasterio.rio.env), python2.7(rasterio.rio.helpers), python2.7(rasterio.rio.info), python2.7(rasterio.rio.insp), python2.7(rasterio.rio.main), python2.7(rasterio.rio.mask), python2.7(rasterio.rio.merge), python2.7(rasterio.rio.options), python2.7(rasterio.rio.overview), python2.7(rasterio.rio.rasterize), python2.7(rasterio.rio.sample), python2.7(rasterio.rio.shapes), python2.7(rasterio.rio.stack), python2.7(rasterio.rio.transform), python2.7(rasterio.rio.warp), python2.7(rasterio.sample), python2.7(rasterio.tool), python2.7(rasterio.tools), python2.7(rasterio.tools.mask), python2.7(rasterio.tools.merge), python2.7(rasterio.transform), python2.7(rasterio.vfs), python2.7(rasterio.warp), python2.7(rasterio.windows) Requires: python2.7(numpy), python2.7(IPython), python2.7(enum34), /usr/bin/python, /usr/lib/python2.7/site-packages, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgcc_s.so.1(GCC_3.0), libgdal.so.20 >= set:slZlzWDQfaj7ZIM9jAk8RR2bRWGgAwPOb55rnLBHoUZ6PwJAPAjfDsT0MAjGtsHV2DKgH60ndQA6TqvTLAUZCCybW02XKkdipxVlNUBWDLCmZ3gn0PnMgli8czGQZGk6yZ8N1KIVwU4YU3fuCDcRcEJeiN7tHY88hH6CS4kRmqToTo213NYRlSgZF9A0QEeZBrbIkDkp3RTERDYS8rg12DzUkSjUVyYfaMQD49clsJJecLK9M69AfzfouFFn41YCZJu5PUYuQ0QLSZpZBfFITZ7EfK8jhHlCGN8V91YxMCukvjdkZ3UwYsjXM3pOETXZeiGVQoim64W82cZEqZjNh3bocJbehfGVJ27DmT1dQBiGPevBW220kskadJK1NDkarZGBU8lzzZpx0khFisMd16xnv55ZeMNSjvA11, libpython2.7.so.1.0 >= set:og5gyOQjscn05iWhHdj6FFT5O5u33gJzkFZDOSXKTPbcLlPgu63WtvjMcfoR5JVFkf12A6rUTy2u9WCe4o0K08yVJ4uJ8tG30cfnegO8oC8HBBN84SCaPsTnqUI0JPa2XvPeqA90SMrugWm1GzrB77xRiDIGi9Un7grGFIZjIz0n591889wWcuuNQYZFS9OztMm49YuRv0g9bcXyfmubdhxzJA8OWHVyhH8b1UrZ1wv2xwl0TJZ0djV4SkwK1vMmbThMAsEs5NKp6wHsydHDzbleCHqZdA4KDrN1FusFCFAGHXN6NXFHHjD6s0lhJJcQEm7lraox6Z19QbHLS4N8i8Kbfsp0AqRfPBwIjDN3S6h3nhqsPCJZfxBRPec0jZFB4P1QF2pCkV9bn42gW6PsYUJwjvINE9UDGOnTWozAGJFM7J3htwWMhKKwEp7RxOS9Zn0jL5P9cNjP4M6aBQrUZzerkxcfSclhsVNZkETZ0IHkdH5Za5ja5VSHmhYjg28PJpvcZbCuvqjCDkEwZLddKo8GG7pWCFTqZ0a, libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.21), python-modules, python2.7(affine), python2.7(click), python2.7(click_plugins), python2.7(cligj), python2.7(code), python2.7(distutils), python2.7(enum), python2.7(json), python2.7(logging), python2.7(pkg_resources), python2.7(snuggs), rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.j5dwHJ Creating python-module-rasterio-debuginfo package Processing files: python-module-rasterio-pickles-0.36.0-alt2.qa1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Mk8LEh find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.PNz6et find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Requires: /usr/lib/python2.7/site-packages Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JXeZCp Processing files: python-module-rasterio-docs-0.36.0-alt2.qa1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.57836 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-rasterio-0.36.0 + DOCDIR=/usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + /bin/mkdir -p /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + cp -prL docs/build/html/_images docs/build/html/_static docs/build/html/api_docs.html docs/build/html/calc.html docs/build/html/cli.html docs/build/html/color.html docs/build/html/community.html docs/build/html/concurrency.html docs/build/html/configuration.html docs/build/html/cookbook.html docs/build/html/data_model.html docs/build/html/developers.html docs/build/html/errors.html docs/build/html/features.html docs/build/html/fillnodata.html docs/build/html/genindex.html docs/build/html/georeferencing.html docs/build/html/image_options.html docs/build/html/image_processing.html docs/build/html/index.html docs/build/html/installation.html docs/build/html/masking-by-shapefile.html docs/build/html/masks.html docs/build/html/modules.html docs/build/html/nodata.html docs/build/html/objects.inv docs/build/html/osgeo_gdal_migration.html docs/build/html/overviews.html docs/build/html/plotting.html docs/build/html/python_manual.html docs/build/html/rasterio.aws.html docs/build/html/rasterio.coords.html docs/build/html/rasterio.crs.html docs/build/html/rasterio.dtypes.html docs/build/html/rasterio.enums.html docs/build/html/rasterio.errors.html docs/build/html/rasterio.features.html docs/build/html/rasterio.fill.html docs/build/html/rasterio.html docs/build/html/rasterio.mask.html docs/build/html/rasterio.merge.html docs/build/html/rasterio.plot.html docs/build/html/rasterio.profiles.html docs/build/html/rasterio.sample.html docs/build/html/rasterio.tool.html docs/build/html/rasterio.tools.html docs/build/html/rasterio.tools.mask.html docs/build/html/rasterio.tools.merge.html docs/build/html/rasterio.transform.html docs/build/html/rasterio.vfs.html docs/build/html/rasterio.warnings.html docs/build/html/rasterio.warp.html docs/build/html/rasterio.windows.html docs/build/html/reading.html docs/build/html/reproject.html docs/build/html/resampling.html docs/build/html/search.html docs/build/html/searchindex.js docs/build/html/tags.html docs/build/html/topics.html docs/build/html/vsi.html docs/build/html/windowed-rw.html docs/build/html/working_with_datasets.html docs/build/html/writing.html /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + chmod -R go-w /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + chmod -R a+rX /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python-module-rasterio-docs-0.36.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.AwLiMA find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.AVXMUw find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) Processing files: python3-module-rasterio-0.36.0-alt2.qa1 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.92053 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python-module-rasterio-0.36.0 + DOCDIR=/usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + export DOCDIR + rm -rf /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + /bin/mkdir -p /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + cp -prL AUTHORS.txt CHANGES.txt CITATION.txt CODE_OF_CONDUCT.txt LICENSE.txt VERSION.txt CONTRIBUTING.rst README.rst benchmarks examples /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + chmod -R go-w /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + chmod -R a+rX /usr/src/tmp/python-module-rasterio-buildroot/usr/share/doc/python3-module-rasterio-0.36.0 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.hLID4J find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.3CERcI find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) python3.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/bin/rio.py3: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=8 IGNORE (for REQ=slight and deep=8) module=logging /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=176 IGNORE (for REQ=slight and deep=13) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=179 IGNORE (for REQ=slight and deep=13) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=182 IGNORE (for REQ=slight and deep=13) module=rasterio._base /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=185 IGNORE (for REQ=slight and deep=13) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=225 IGNORE (for REQ=slight and deep=9) module=rasterio._copy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/__init__.py: line=301 IGNORE (for REQ=slight and deep=8) module=numpy python3.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: skipping itertools python3.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=12 IGNORE (for REQ=slight and deep=8) module=configparser /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=13 IGNORE (for REQ=slight and deep=8) module=urllib.parse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=14 IGNORE (for REQ=slight and deep=8) module=collections /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=20 IGNORE (for REQ=slight and deep=8) module=ConfigParser /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=21 IGNORE (for REQ=slight and deep=8) module=urlparse /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/compat.py: line=22 IGNORE (for REQ=slight and deep=8) module=UserDict /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py: line=103 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py: line=132 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py: line=150 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/dtypes.py: line=179 IGNORE (for REQ=slight and deep=8) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/env.py: line=111 IGNORE (for REQ=slight and deep=11) module=boto3 /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/plot.py: line=28 IGNORE (for REQ=slight and deep=12) module=matplotlib.pyplot /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/bounds.py: line=48 IGNORE (for REQ=slight and deep=9) module=rasterio.warp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py: line=11 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/calc.py: line=87 IGNORE (for REQ=slight and deep=9) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py: line=6 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/clip.py: line=54 IGNORE (for REQ=slight and deep=9) module=rasterio.warp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/convert.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/edit_info.py: line=125 IGNORE (for REQ=slight and deep=9) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/info.py: line=7 possible relative import from ., UNIMPLEMENTED python3.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py: line=13 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py: line=18 IGNORE (for REQ=slight and deep=8) module=matplotlib.pyplot /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/insp.py: line=54 IGNORE (for REQ=slight and deep=12) module=IPython python3.req: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py: skipping sys /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/main.py: line=42 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py: line=68 IGNORE (for REQ=slight and deep=9) module=rasterio.mask /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/mask.py: line=69 IGNORE (for REQ=slight and deep=9) module=rasterio.features /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/merge.py: line=47 IGNORE (for REQ=slight and deep=9) module=rasterio.merge /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/overview.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py: line=10 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py: line=110 IGNORE (for REQ=slight and deep=9) module=rasterio.crs /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py: line=111 IGNORE (for REQ=slight and deep=9) module=rasterio.features /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/rasterize.py: line=112 IGNORE (for REQ=slight and deep=9) module=rasterio.features /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py: line=7 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py: line=91 IGNORE (for REQ=slight and deep=9) module=numpy /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py: line=92 IGNORE (for REQ=slight and deep=9) module=rasterio.features /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/shapes.py: line=93 IGNORE (for REQ=slight and deep=9) module=rasterio.warp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/stack.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/transform.py: line=22 IGNORE (for REQ=slight and deep=9) module=rasterio.warp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py: line=8 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/rio/warp.py: line=9 possible relative import from ., UNIMPLEMENTED /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=8 IGNORE (for REQ=slight and deep=8) module=rasterio.plot /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=9 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=15 IGNORE (for REQ=slight and deep=8) module=rasterio.plot /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=16 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=22 IGNORE (for REQ=slight and deep=8) module=rasterio.rio.insp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=23 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=29 IGNORE (for REQ=slight and deep=8) module=rasterio.rio.insp /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tool.py: line=30 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/mask.py: line=10 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/tools/merge.py: line=10 IGNORE (for REQ=slight and deep=8) module=warnings /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py: line=37 IGNORE (for REQ=slight and deep=8) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py: line=54 IGNORE (for REQ=slight and deep=9) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py: line=73 IGNORE (for REQ=slight and deep=9) module=rasterio._io /usr/lib/rpm/python3.req.py: /usr/src/tmp/python-module-rasterio-buildroot/usr/lib/python3/site-packages/rasterio/windows.py: line=91 IGNORE (for REQ=slight and deep=9) module=rasterio._io Provides: python3(rasterio), python3(rasterio._base), python3(rasterio._copy), python3(rasterio._crs), python3(rasterio._drivers), python3(rasterio._err), python3(rasterio._example), python3(rasterio._features), python3(rasterio._fill), python3(rasterio._io), python3(rasterio._warp), python3(rasterio.compat), python3(rasterio.coords), python3(rasterio.crs), python3(rasterio.dtypes), python3(rasterio.enums), python3(rasterio.env), python3(rasterio.errors), python3(rasterio.features), python3(rasterio.fill), python3(rasterio.mask), python3(rasterio.merge), python3(rasterio.plot), python3(rasterio.profiles), python3(rasterio.rio), python3(rasterio.rio.bounds), python3(rasterio.rio.calc), python3(rasterio.rio.clip), python3(rasterio.rio.convert), python3(rasterio.rio.edit_info), python3(rasterio.rio.env), python3(rasterio.rio.helpers), python3(rasterio.rio.info), python3(rasterio.rio.insp), python3(rasterio.rio.main), python3(rasterio.rio.mask), python3(rasterio.rio.merge), python3(rasterio.rio.options), python3(rasterio.rio.overview), python3(rasterio.rio.rasterize), python3(rasterio.rio.sample), python3(rasterio.rio.shapes), python3(rasterio.rio.stack), python3(rasterio.rio.transform), python3(rasterio.rio.warp), python3(rasterio.sample), python3(rasterio.tool), python3(rasterio.tools), python3(rasterio.tools.mask), python3(rasterio.tools.merge), python3(rasterio.transform), python3(rasterio.vfs), python3(rasterio.warp), python3(rasterio.windows) Requires: python3(numpy) < 0, python3(IPython) < 0, /usr/bin/python3, /usr/lib/python3/site-packages, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libgcc_s.so.1(GCC_3.0), libgdal.so.20 >= set:slZlzWDQfaj7ZIM9jAk8RR2bRWGgAwPOb55rnLBHoUZ6PwJAPAjfDsT0MAjGtsHV2DKgH60ndQA6TqvTLAUZCCybW02XKkdipxVlNUBWDLCmZ3gn0PnMgli8czGQZGk6yZ8N1KIVwU4YU3fuCDcRcEJeiN7tHY88hH6CS4kRmqToTo213NYRlSgZF9A0QEeZBrbIkDkp3RTERDYS8rg12DzUkSjUVyYfaMQD49clsJJecLK9M69AfzfouFFn41YCZJu5PUYuQ0QLSZpZBfFITZ7EfK8jhHlCGN8V91YxMCukvjdkZ3UwYsjXM3pOETXZeiGVQoim64W82cZEqZjNh3bocJbehfGVJ27DmT1dQBiGPevBW220kskadJK1NDkarZGBU8lzzZpx0khFisMd16xnv55ZeMNSjvA11, libpython3.7m.so.1.0 >= set:ogpCOGce1d8ORrTQZpV2eL6Dmd9aLdcEoswhIoRW2PrRcADNwm2GknjMcfoR5zOJswiZ4w0FNicEbhTQx03M50hcD0iWk70ouKswWDE3Zp9Oqppc2GDStv3mxUJuZHYa3XvPeqAFoWeaugylZmB77xFgpMkWFIZjIdKcA3FOb9wWcuuNQYZFmyVI5h2LnZ70g9bcXyfm2FW9G45eSqZGvkqZ5P5b3zGl6vPTrb14jFnHGM7AaPzpfQcBjoj1Wmqh72qnNr0ThQd2TeNj5KIgIrC1UaDoPWVUiBzVYSDmCFGmFusFCFAGHXN6xZA4fWWWQF17glkoEEMP5SRC2mEhvA0rw8yhEI7spwsC9eNvCb1h7vrzExH8dKpPSZvMOWp76QpBZG03sC3UZz64avR62gW6PsYUJwjvINE97ZwOHEYRJeS8FqrcNQndk7EesAHHxWhcZkpXqigFdwFTiFb15oyDC9SJZokM6aBQrUZzer7Bdjl4nuIfxSK9aqLtV6fZ2iz1WEAVSIfCh2SejLf5jCqzHkPZzaUvFMWgyb6yGWhCKpWJmfEDc0, libstdc++.so.6(CXXABI_1.3), libstdc++.so.6(CXXABI_1.3.9), libstdc++.so.6(GLIBCXX_3.4), libstdc++.so.6(GLIBCXX_3.4.21), python3(__future__) < 0, python3(affine) < 0, python3(click) < 0, python3(click_plugins) < 0, python3(cligj) < 0, python3(code) < 0, python3(collections) < 0, python3(distutils.version) < 0, python3(enum) < 0, python3(functools) < 0, python3(json) < 0, python3(logging) < 0, python3(math) < 0, python3(operator) < 0, python3(os) < 0, python3(os.path) < 0, python3(pkg_resources) < 0, python3(rasterio._base) < 0, python3(rasterio._crs) < 0, python3(rasterio._drivers) < 0, python3(rasterio._features) < 0, python3(rasterio._fill) < 0, python3(rasterio._io) < 0, python3(rasterio._warp) < 0, python3(re) < 0, python3(shutil) < 0, python3(snuggs) < 0, python3(warnings) < 0, python3.7-ABI, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Uro1Ul Creating python3-module-rasterio-debuginfo package Processing files: python-module-rasterio-debuginfo-0.36.0-alt2.qa1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.rBrM0G find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Z85oRL find-requires: running scripts (debuginfo) Requires: python-module-rasterio = 0.36.0-alt2.qa1, debug(libc.so.6), debug(libgcc_s.so.1), debug(libgdal.so.20), debug(libpython2.7.so.1.0), debug(libstdc++.so.6) Processing files: python3-module-rasterio-debuginfo-0.36.0-alt2.qa1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.qDovFy find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.LTieEU find-requires: running scripts (debuginfo) Requires: python3-module-rasterio = 0.36.0-alt2.qa1, debug(libc.so.6), debug(libgcc_s.so.1), debug(libgdal.so.20), debug(libpython3.7m.so.1.0), debug(libstdc++.so.6) Adding to python-module-rasterio-debuginfo a strict dependency on python-module-rasterio Adding to python3-module-rasterio-debuginfo a strict dependency on python3-module-rasterio Wrote: /usr/src/RPM/RPMS/i586/python-module-rasterio-0.36.0-alt2.qa1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python-module-rasterio-pickles-0.36.0-alt2.qa1.i586.rpm Wrote: /usr/src/RPM/RPMS/noarch/python-module-rasterio-docs-0.36.0-alt2.qa1.noarch.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-rasterio-0.36.0-alt2.qa1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python-module-rasterio-debuginfo-0.36.0-alt2.qa1.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/python3-module-rasterio-debuginfo-0.36.0-alt2.qa1.i586.rpm 515.04user 35.29system 9:08.03elapsed 100%CPU (0avgtext+0avgdata 404124maxresident)k 0inputs+0outputs (0major+4644635minor)pagefaults 0swaps 567.75user 51.16system 10:15.95elapsed 100%CPU (0avgtext+0avgdata 404124maxresident)k 23496inputs+0outputs (0major+5527458minor)pagefaults 0swaps --- python3-module-rasterio-0.36.0-alt2.qa1.i586.rpm.repo 2019-04-15 22:55:57.000000000 +0000 +++ python3-module-rasterio-0.36.0-alt2.qa1.i586.rpm.hasher 2020-12-20 10:31:44.264024734 +0000 @@ -237,3 +237,3 @@ Requires: rpmlib(SetVersions) -Requires: libpython3.7m.so.1.0 >= set:ogpCOGce1d8ORrTQZpV2eL6Dmd9aLdcEoswhIoRW2PrRcADNwm2GknjMcfoR5zOJswiZ4w0FNicEbhTQx03M50hcD0iWk70ouKswWDE3Zp9Oqppc2GDStv3mxUJuZHYa3XvPeqAFoWeaugylZmB77xFgpMkWFIZjIdKcA3FOb9wWcuuNQYZFmyVI5h2LnZ70g9bcXyfm2FW9G45eSqZGvkqZ5P5b3zGl6vPTrb14jFnHGM7AaPzpfQcBjoj1Wmqh72qnNr0ThQd2TeNj5KIgIrC1UaDoPWVUiBzVYSDmCFGmFusFCFAGHXN6xZA4fWWWQF17glkoEEMP5SRC2mEhvA0rw8yhEI7spwsC9eNvCb1h7vrzExH8dKpPSZvMOWp76QpBZG03sC3UZz64avR62gW6PsYUJwjvINE97ZwOHEYRJeS8FqrcNQndk7EesAHHxWhcZkpXqigFdwFTiFb15oyDC9SJZokM6aBQrUZzer7Bdjl4nuIfxSK9aqLtV6fZ2iz1WEAVSIfCh2SejLf5jCqzHkPZzaUZDjzb6yGWhCKpWJmfEDc0 +Requires: libpython3.7m.so.1.0 >= set:ogpCOGce1d8ORrTQZpV2eL6Dmd9aLdcEoswhIoRW2PrRcADNwm2GknjMcfoR5zOJswiZ4w0FNicEbhTQx03M50hcD0iWk70ouKswWDE3Zp9Oqppc2GDStv3mxUJuZHYa3XvPeqAFoWeaugylZmB77xFgpMkWFIZjIdKcA3FOb9wWcuuNQYZFmyVI5h2LnZ70g9bcXyfm2FW9G45eSqZGvkqZ5P5b3zGl6vPTrb14jFnHGM7AaPzpfQcBjoj1Wmqh72qnNr0ThQd2TeNj5KIgIrC1UaDoPWVUiBzVYSDmCFGmFusFCFAGHXN6xZA4fWWWQF17glkoEEMP5SRC2mEhvA0rw8yhEI7spwsC9eNvCb1h7vrzExH8dKpPSZvMOWp76QpBZG03sC3UZz64avR62gW6PsYUJwjvINE97ZwOHEYRJeS8FqrcNQndk7EesAHHxWhcZkpXqigFdwFTiFb15oyDC9SJZokM6aBQrUZzer7Bdjl4nuIfxSK9aqLtV6fZ2iz1WEAVSIfCh2SejLf5jCqzHkPZzaUvFMWgyb6yGWhCKpWJmfEDc0 Requires: libstdc++.so.6(CXXABI_1.3)