Open arokem opened 4 years ago
Yep - running mkdir ~/.aws/credentials && touch ~/.aws/credentials
resolves this issue. I'll keep this open for now, so we can consider baking this into the image.
I figured I'd report this upstream, but I failed to workaround this by adding a blank credentials file. I found out that you can initialize the S3FileSystem() with a boolean anon=True
to make that issue go away though.
import s3fs
fs = s3fs.S3FileSystem()
fs.ls('/openneuro.org/')
mkdir -p ~/.aws && touch ~/.aws/credentials
import s3fs
fs = s3fs.S3FileSystem(anon=True)
fs.ls('/openneuro.org/')
Even though credentials are, in principle, not required to read data from public buckets:
Throws:
It might be enough to have some dummy credentials installed in
~/.aws/credentials?