question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RasterIO 1.1.2 'Int64' KeyError When Creating COG file from Jp2

See original GitHub issue

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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentsaragocommented, Jan 8, 2020

Well in fact I’m going to push a quick fix including changes from #114 so we don’t have to wait for rasterio 😃

0reactions
sachsblcommented, Jan 8, 2020

thanks for the investigation @vincentsarago! I will await 1.1.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found