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
No credentials are required to read from a public S3 bucket. However, ome-zarr-py requires credentials when using an s3:// url. https:// urls do not face this issue.
Example (run without any AWS credentials configured):
fromome_zarr.ioimportparse_urlfromome_zarr.readerimportReaderurl= (
"s3://allencell/aics/nuc_morph_data""/data_for_analysis/baseline_colonies/20200323_09_small/raw.ome.zarr"
)
reader=Reader(parse_url(url)) # Logs "botocore.exceptions.NoCredentialsError: Unable to locate credentials" and raises AttributeError
Possible fixes
The core of the issue is that s3fs requires the anon=True parameter to use a public bucket without credentials.
Problem
No credentials are required to read from a public S3 bucket. However, ome-zarr-py requires credentials when using an
s3://
url.https://
urls do not face this issue.Example (run without any AWS credentials configured):
Possible fixes
The core of the issue is that
s3fs
requires theanon=True
parameter to use a public bucket without credentials.anon=True
kwargs
argument toReader.__init__
that gets passed along to FSSpecThe text was updated successfully, but these errors were encountered: