RasterIO 1.1.2 'Int64' KeyError When Creating COG file from Jp2
See original GitHub issueIssue Description
So when RasterIO updated to 1.1.2 (December 18th), I started seeing things breaking that worked fine before. Specifically, converting any Sentinel2 jp2 files to COG. I see this error:
File "/usr/lib/python3.7/site-packages/rio_cogeo/cogeo.py", line 259, in cog_translate tmp_dst.write_mask(mask_value, window=w) File "rasterio/_io.pyx", line 1630, in rasterio._io.DatasetWriterBase.write_mask File "rasterio/shim_rasterioex.pxi", line 52, in rasterio._shim.io_band KeyError: 'int64'
This issue is environment specific. On my MacOS (Catalina), this works fine. However, this error occurs when the same code is run against Alpine Linux. Specifically I am using the docker image osgeo/gdal:alpine-normal-3.0.2
, which has Python 3.7.5 and GDAL 3.0.2. Again, same setup locally on MacOS works fine. And the same code works fine on Alpine Linux at RasterIO 1.1.1. All of this is latest rio_cogeo. Any insight here would be appreciated!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Well in fact I’m going to push a quick fix including changes from #114 so we don’t have to wait for rasterio 😃
thanks for the investigation @vincentsarago! I will await 1.1.3