You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from serenata_toolbox.datasets import Datasets
datasets = Datasets('/tmp/serenata-data/')
# now lets see what datasets are available
for dataset in datasets.remote.all:
print(dataset) # and you'll see a long list of datasets!
I changed the datasets folder to an existing folder in my computer and everything works. However, when I try to run the above loop, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/marcus/Documents/Research/Big Data/Serenata de Amor/serenata-toolbox/serenata_toolbox/datasets/remote.py", line 74, in all
response = self.s3.list_objects(Bucket=self.bucket)
File "/usr/local/lib/python3.6/site-packages/botocore/client.py", line 253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/usr/local/lib/python3.6/site-packages/botocore/client.py", line 557, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidAccessKeyId) when calling the ListObjects operation: The AWS Access Key Id you provided does not exist in our records.
It seems I need an AWS Access Key. However, I am using the config.inifile you provided:
Since you said "If you don't plan to upload anything to S3 please don't bother about keys and secrets in this file.", I didn't look for these credentials.
Anyway, how can I download data to my computer using this toolbox? What am I doing wrong? I am no very familiar to python, so maybe this is a very simple question.
The text was updated successfully, but these errors were encountered:
Hi @mnunes your question tells me there is a flaw in the documentation so thanks for that (I'll open up a issue so we can fix it later). Now about your doubts:
fromserenata_toolbox.datasetsimportDatasetsdatasets=Datasets('/tmp/serenata-data/')
# now lets see what datasets are availablefordatasetindatasets.remote.all:
print(dataset) # and you'll see a long list of datasets!
The code above will only print to the screen the names of all the files that we have backed up on our S3 instance. So without the key you won't be able to list it.
I'm trying to run the very first example given in your main page: https://github.com/datasciencebr/serenata-toolbox
I changed the datasets folder to an existing folder in my computer and everything works. However, when I try to run the above loop, I get the following error:
It seems I need an AWS Access Key. However, I am using the
config.ini
file you provided:Since you said "If you don't plan to upload anything to S3 please don't bother about keys and secrets in this file.", I didn't look for these credentials.
Anyway, how can I download data to my computer using this toolbox? What am I doing wrong? I am no very familiar to python, so maybe this is a very simple question.
The text was updated successfully, but these errors were encountered: