Closed TomPughe closed 8 months ago
Hi, it seems that you are not signed into an AWS account, and that code currently assumes that you are, so that it can save the final Zarr files to AWS S3 for later use. This is because the app.py
has primarily been used for our production forecasting service running in AWS. You could either change the code, so that it doesn't append the s3://
, after which it should save locally just fine, or sign into an AWS account for it to save to S3. By default, it tries to read the credentials stored in a file created by the aws
cli utility after you log in.
I think you have to use aws configure
to make sure you are logged in
Thanks for the advice, I'll give that a try
I'm having issues getting the app to complete successfully. I'm running it with the command:
python3 satip/app.py --api-key=[redacted]--api-secret=[redacted] --save-dir="data" --history="20 minutes"
But I get the following exception:
Occurring in utils.py:
Having looked up the libraries the exception is thrown in, it looks like the exception occurs in an AWS/S3 interface library, which looking at the code I presume is related to adding the prefix "zip:///::s3://" to the file path of hrv_files. Could anyone clarify what the problem might be, or if I'm lacking some setup in my development environment that might cause this?
I'm not that familiar with the use of AWS/S3, but I wasn't clear what the purpose of adding the prefix to the local path was, so if anyone can clarify the purpose of this that would be helpful too.