Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors opening TIF files over S3 with rasterio #938

Closed
vishcious opened this issue Dec 6, 2016 · 6 comments
Closed

Errors opening TIF files over S3 with rasterio #938

vishcious opened this issue Dec 6, 2016 · 6 comments

Comments

@vishcious
Copy link

vishcious commented Dec 6, 2016

I have read through most of the other issues related to this and can't figure out what I am doing wrong. Here are the errors i am encountering

https://gist.github.com/viswaug/627e8755aff2b087c78049d80afbdd49

I am pretty sure the error is with the user :) and was looking for suggestions to troubleshoot.

@perrygeo
Copy link
Contributor

perrygeo commented Dec 6, 2016

Hey @viswaug, what does gdalinfo --formats | grep HTTP show?

@vishcious
Copy link
Author

hmm... where do you expect gdalinfo to be? I pip installed "rasterio" and "rasterio[s3]". gdalinfo is not available. I did expect to find the gdal binaries (gdal.so) in the virtualenv site packages, but did not. pip tells me i am on version 0.36.0. But the requirements file here uses version 1.0a2 (that version does bring in the gdal.so binaries) ... feels like i am missing something. I thought this feature would be in 0.36.0 because of the conversation here

@perrygeo
Copy link
Contributor

perrygeo commented Dec 7, 2016

@viswaug sorry, there are many variables, including gdal libs and rasterio installation method, which are not known to us! Can you try

pip install --pre "rasterio>=1.0a3"

gdalinfo will not be available (libgdal, not gdal binaries are bundled with Rasterio) but you should be able to access:

$ rio info s3://landsat-pds/L8/180/121/LC81801212015297LGN00/LC81801212015297LGN00_B4.TIF

@sgillies
Copy link
Member

sgillies commented Dec 7, 2016

@viswaug @perrygeo remember that S3 access is an optional dependency (involving boto3), so do pip install --pre "rasterio[s3]>=1.0a3". Some SSL cert file hacking may be required because the SSL lib linked by GDAL has its cert directory hard coded. We've got a fix for this coming in 1.0a4, though.

@sgillies
Copy link
Member

sgillies commented Dec 9, 2016

State of the art documentation on doing this is now at #942.

@sgillies sgillies closed this as completed Dec 9, 2016
@vishcious
Copy link
Author

yup. got 1.0a4 and my issue was resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants