{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/rasterio/issues/380","labels_url":"https://api.github.com/repos/mapbox/rasterio/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/rasterio/issues/380/comments","events_url":"https://api.github.com/repos/mapbox/rasterio/issues/380/events","html_url":"https://github.com/mapbox/rasterio/issues/380","id":87837709,"number":380,"title":"Failing test when building on ubuntu/debian","user":{"login":"johanvdw","id":868434,"avatar_url":"https://avatars.githubusercontent.com/u/868434?v=3","gravatar_id":"","url":"https://api.github.com/users/johanvdw","html_url":"https://github.com/johanvdw","followers_url":"https://api.github.com/users/johanvdw/followers","following_url":"https://api.github.com/users/johanvdw/following{/other_user}","gists_url":"https://api.github.com/users/johanvdw/gists{/gist_id}","starred_url":"https://api.github.com/users/johanvdw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanvdw/subscriptions","organizations_url":"https://api.github.com/users/johanvdw/orgs","repos_url":"https://api.github.com/users/johanvdw/repos","events_url":"https://api.github.com/users/johanvdw/events{/privacy}","received_events_url":"https://api.github.com/users/johanvdw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-12T20:14:21Z","updated_at":"2015-06-30T19:00:55Z","closed_at":null,"body":"Hello,\r\nWhen building on debian and ubuntu I get some failing tests. Anyone an idea where I should look? Full buildlog here: https://launchpadlibrarian.net/208113013/buildlog_ubuntu-trusty-amd64.rasterio_0.24.0-1~trusty_BUILDING.txt.gz\r\n\r\nNote that I get this error with different versions of gdal.\r\n```\r\n============================= test session starts ==============================\r\nplatform linux2 -- Python 2.7.6 -- pytest-2.5.1\r\ncollected 277 items\r\n\r\ntests/test_band.py .\r\ntests/test_band_masks.py .....\r\ntests/test_blocks.py ...........\r\ntests/test_colorinterp.py .\r\ntests/test_colormap.py .\r\ntests/test_coords.py ...\r\ntests/test_copy.py .\r\ntests/test_crs.py ........\r\ntests/test_driver_management.py ..\r\ntests/test_dtypes.py ...\r\ntests/test_features_bounds.py ......\r\ntests/test_features_rasterize.py ....\r\ntests/test_features_shapes.py .....\r\ntests/test_features_sieve.py ......\r\ntests/test_fillnodata.py ...\r\ntests/test_indexing.py ....\r\ntests/test_mask_creation.py ..\r\ntests/test_meta.py ...\r\ntests/test_no_georef.py ..\r\ntests/test_nodata.py ..\r\ntests/test_pad.py .\r\ntests/test_png.py .\r\ntests/test_profile.py ...............\r\ntests/test_read.py ..............\r\ntests/test_read_boundless.py .......\r\ntests/test_read_resample.py ..\r\ntests/test_revolvingdoor.py .\r\ntests/test_rio_bands.py .......\r\ntests/test_rio_calc.py .FFF.......\r\ntests/test_rio_cli.py ....\r\ntests/test_rio_features.py ....................\r\ntests/test_rio_info.py ........................\r\ntests/test_rio_merge.py ...........\r\ntests/test_rio_rio.py ...................\r\ntests/test_rio_sample.py .......\r\ntests/test_sampling.py ...\r\ntests/test_tags.py ....\r\ntests/test_tool.py ..\r\ntests/test_transform.py ....\r\ntests/test_update.py ........\r\ntests/test_warp.py .....................\r\ntests/test_write.py ..................\r\n\r\n=================================== FAILURES ===================================\r\n_____________________________ test_multiband_calc ______________________________\r\n\r\ntmpdir = local('/tmp/pytest-0/test_multiband_calc0')\r\n\r\n    def test_multiband_calc(tmpdir):\r\n        outfile = str(tmpdir.join('out.tif'))\r\n        runner = CliRunner()\r\n        result = runner.invoke(calc, [\r\n                    '(+ 125 (* 0.1 (read 1)))', 'tests/data/shade.tif', outfile],\r\n                    catch_exceptions=False)\r\n        assert result.exit_code == 0\r\n        with rasterio.open(outfile) as src:\r\n            assert src.count == 1\r\n            assert src.meta['dtype'] == 'uint8'\r\n            data = src.read(masked=True)\r\n>           assert data.min() == 125\r\nE           assert 0 == 125\r\nE            +  where 0 = <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n>()\r\nE            +    where <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n> = masked_array(data =\\n [[[0 0 0 ..., 125 125 125]\\n  [0 0 0 ..., 125 125 125]\\n  [...alse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n.min\r\n\r\ntests/test_rio_calc.py:33: AssertionError\r\n------------------------------- Captured stderr --------------------------------\r\nDEBUG:rasterio:Creating a not-responsible GDALEnv in drivers()\r\nDEBUG:GDAL:Option CPL_DEBUG=OFF\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\nDEBUG:rasterio:Option: ('BLOCKYSIZE', '8')\r\n\r\nDEBUG:rasterio:Option: ('BLOCKXSIZE', '1024')\r\n\r\nDEBUG:rasterio:Option: ('TILED', 'FALSE')\r\n\r\nDEBUG:rasterio:Input CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Exported WKT: PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],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\"],AUTHORITY[\"EPSG\",\"3857\"]]\r\nDEBUG:rasterio:Self CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\n_________________________ test_singleband_calc_byindex _________________________\r\n\r\ntmpdir = local('/tmp/pytest-0/test_singleband_calc_byindex0')\r\n\r\n    def test_singleband_calc_byindex(tmpdir):\r\n        outfile = str(tmpdir.join('out.tif'))\r\n        runner = CliRunner()\r\n        result = runner.invoke(calc, [\r\n                        '(+ 125 (* 0.1 (read 1 1)))',\r\n                        'tests/data/shade.tif',\r\n                        outfile],\r\n                    catch_exceptions=False)\r\n        assert result.exit_code == 0\r\n        with rasterio.open(outfile) as src:\r\n            assert src.count == 1\r\n            assert src.meta['dtype'] == 'uint8'\r\n            data = src.read(masked=True)\r\n>           assert data.min() == 125\r\nE           assert 0 == 125\r\nE            +  where 0 = <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n>()\r\nE            +    where <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n> = masked_array(data =\\n [[[0 0 0 ..., 125 125 125]\\n  [0 0 0 ..., 125 125 125]\\n  [...alse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n.min\r\n\r\ntests/test_rio_calc.py:51: AssertionError\r\n------------------------------- Captured stderr --------------------------------\r\nDEBUG:rasterio:Creating a not-responsible GDALEnv in drivers()\r\nDEBUG:GDAL:Option CPL_DEBUG=OFF\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\nDEBUG:rasterio:Option: ('BLOCKYSIZE', '8')\r\n\r\nDEBUG:rasterio:Option: ('BLOCKXSIZE', '1024')\r\n\r\nDEBUG:rasterio:Option: ('TILED', 'FALSE')\r\n\r\nDEBUG:rasterio:Input CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Exported WKT: PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],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\"],AUTHORITY[\"EPSG\",\"3857\"]]\r\nDEBUG:rasterio:Self CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\n_________________________ test_singleband_calc_byname __________________________\r\n\r\ntmpdir = local('/tmp/pytest-0/test_singleband_calc_byname0')\r\n\r\n    def test_singleband_calc_byname(tmpdir):\r\n        outfile = str(tmpdir.join('out.tif'))\r\n        runner = CliRunner()\r\n        result = runner.invoke(calc, [\r\n                        '(+ 125 (* 0.1 (take shade 1)))',\r\n                        '--name', 'shade=tests/data/shade.tif',\r\n                        outfile],\r\n                    catch_exceptions=False)\r\n        assert result.exit_code == 0\r\n        with rasterio.open(outfile) as src:\r\n            assert src.count == 1\r\n            assert src.meta['dtype'] == 'uint8'\r\n            data = src.read(masked=True)\r\n>           assert data.min() == 125\r\nE           assert 0 == 125\r\nE            +  where 0 = <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n>()\r\nE            +    where <bound method MaskedArray.min of masked_array(data =\\n [[[0 0 0 ..., 125 125 12...lse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n> = masked_array(data =\\n [[[0 0 0 ..., 125 125 125]\\n  [0 0 0 ..., 125 125 125]\\n  [...alse]\\n  [False False False ..., False False False]]],\\n       fill_value = 255)\\n.min\r\n\r\ntests/test_rio_calc.py:67: AssertionError\r\n------------------------------- Captured stderr --------------------------------\r\nDEBUG:rasterio:Creating a not-responsible GDALEnv in drivers()\r\nDEBUG:GDAL:Option CPL_DEBUG=OFF\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\nDEBUG:rasterio:Option: ('BLOCKYSIZE', '8')\r\n\r\nDEBUG:rasterio:Option: ('BLOCKXSIZE', '1024')\r\n\r\nDEBUG:rasterio:Option: ('TILED', 'FALSE')\r\n\r\nDEBUG:rasterio:Input CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Exported WKT: PROJCS[\"WGS 84 / Pseudo-Mercator\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH],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\"],AUTHORITY[\"EPSG\",\"3857\"]]\r\nDEBUG:rasterio:Self CRS: {'init': u'epsg:3857'}\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:Got coordinate system\r\nDEBUG:rasterio:all_valid: False\r\nDEBUG:rasterio:mask_flags: [8]\r\n==================== 3 failed, 274 passed in 25.95 seconds =====================\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/rasterio/issues/comments/117304618","html_url":"https://github.com/mapbox/rasterio/issues/380#issuecomment-117304618","issue_url":"https://api.github.com/repos/mapbox/rasterio/issues/380","id":117304618,"user":{"login":"sgillies","id":33697,"avatar_url":"https://avatars.githubusercontent.com/u/33697?v=3","gravatar_id":"","url":"https://api.github.com/users/sgillies","html_url":"https://github.com/sgillies","followers_url":"https://api.github.com/users/sgillies/followers","following_url":"https://api.github.com/users/sgillies/following{/other_user}","gists_url":"https://api.github.com/users/sgillies/gists{/gist_id}","starred_url":"https://api.github.com/users/sgillies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgillies/subscriptions","organizations_url":"https://api.github.com/users/sgillies/orgs","repos_url":"https://api.github.com/users/sgillies/repos","events_url":"https://api.github.com/users/sgillies/events{/privacy}","received_events_url":"https://api.github.com/users/sgillies/received_events","type":"User","site_admin":false},"created_at":"2015-06-30T19:00:55Z","updated_at":"2015-06-30T19:00:55Z","body":"Thanks! :guitar: "}}