lakshmanok / nexradaws

example ipython notebook to display NEXRAD on AWS
Apache License 2.0
9 stars 4 forks source link

unreachable network error running notebook #1

Open rsignell-usgs opened 8 years ago

rsignell-usgs commented 8 years ago

When I try to run the example notebook https://github.com/rsignell-usgs/nexradaws/blob/master/nexrad_sample.ipynb I get an "unreachable network error" in cell[2].

The instructions say "You may also need to configure your AWS credentials to access S3", so that would sound like the problem, but in another browser tab, I was able to move files between my local file system and S3, so I thought I was okay there..

Do I need to do something additionally with credentials to get this to work?

lakshmanok commented 8 years ago

It is very likely that in the browser tab, you are using http to get the files and not the AWS S3 API. There is a comment on the blog post at Climate that describes how to change the python notebook to use http instead of the S3 API.

Lak

On Wed, Jan 6, 2016 at 4:13 AM, Rich Signell notifications@github.com wrote:

When I try to run the example notebook https://github.com/rsignell-usgs/nexradaws/blob/master/nexrad_sample.ipynb I get an "unreachable network error" in cell[2].

The instructions say "You may also need to configure your AWS credentials to access S3", so that would sound like the problem, but in another browser tab, I was able to move files between my local file system and S3, so I thought I was okay there..

Do I need to do something additionally with credentials to get this to work?

— Reply to this email directly or view it on GitHub https://github.com/lakshmanok/nexradaws/issues/1.

rsignell-usgs commented 8 years ago

Okay, I can try http, but what is actually required to get the AWS S3 API to work?

You say "You may also need to configure your AWS credentials to access S3" and on this page: http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html it says "In some cases, you can make calls without security credentials to AWS, like when you download a file that is publicly shared in an Amazon S3 bucket"

It is possible this data is not publicly shared?

lakshmanok commented 8 years ago

The data are publicly shared, but the boto python package doesn't support this.

Lak

On Wed, Jan 6, 2016 at 8:17 AM, Rich Signell notifications@github.com wrote:

Okay, I can try http, but what is actually required to get the AWS S3 API to work?

You say "You may also need to configure your AWS credentials to access S3" and on this page: http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html it says "In some cases, you can make calls without security credentials to AWS, like when you download a file that is publicly shared in an Amazon S3 bucket"

It is possible this data is not publicly shared?

— Reply to this email directly or view it on GitHub https://github.com/lakshmanok/nexradaws/issues/1#issuecomment-169374591.

rsignell-usgs commented 8 years ago

So what exactly does one need to do in the AWS account with regard to credentials?