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
With the upgrade to s3fs=2023.6.0 in PR #1023, we solved one problem but caused another. Now the examples/digital_fingerprinting/fetch_example_data.py fails.
We need to determine how to best download the files with the most recent version of s3fs
Minimum reproducible example
Ensure s3fs=2023.6 is installed
`python examples/digital_fingerprinting/fetch_example_data.py all`
Relevant log output
python examples/digital_fingerprinting/fetch_example_data.py all
Downloading DUO_2022-08-01T00_05_06.806Z.json
Traceback (most recent call last):
File "<CONDA_ENV>/lib/python3.10/site-packages/s3fs/core.py", line 693, in _lsdir
async forcin self._iterdir(
File "<CONDA_ENV>/lib/python3.10/site-packages/s3fs/core.py", line 743, in _iterdir
async foriin it:
File "<CONDA_ENV>/lib/python3.10/site-packages/aiobotocore/paginate.py", line 30, in __anext__
response = await self._make_request(current_kwargs)
File "<CONDA_ENV>/lib/python3.10/site-packages/aiobotocore/client.py", line 371, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<MORPHEUS_ROOT>/examples/digital_fingerprinting/fetch_example_data.py", line 588, in<module>main()
File "<MORPHEUS_ROOT>/examples/digital_fingerprinting/fetch_example_data.py", line 584, in main
fetch_dataset(ds)
File "<MORPHEUS_ROOT>/examples/digital_fingerprinting/fetch_example_data.py", line 554, in fetch_dataset
fs.get(S3_BASE_PATH + f, train_dir + f)
File "<CONDA_ENV>/lib/python3.10/site-packages/fsspec/asyn.py", line 121, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "<CONDA_ENV>/lib/python3.10/site-packages/fsspec/asyn.py", line 106, in sync
raise return_result
File "<CONDA_ENV>/lib/python3.10/site-packages/fsspec/asyn.py", line 61, in _runner
result[0] = await coro
File "<CONDA_ENV>/lib/python3.10/site-packages/fsspec/asyn.py", line 579, in _get
rpaths = [
File "<CONDA_ENV>/lib/python3.10/site-packages/fsspec/asyn.py", line 580, in<listcomp>
p forpin rpaths if not (trailing_sep(p) or await self._isdir(p))
File "<CONDA_ENV>/lib/python3.10/site-packages/s3fs/core.py", line 1380, in _isdir
return bool(await self._lsdir(path))
File "<CONDA_ENV>/lib/python3.10/site-packages/s3fs/core.py", line 706, in _lsdir
raise translate_boto_error(e)
PermissionError: Access Denied
In the near term, we might need to make this note in documentation. Long term, we should switch to using the new RAPIDS CDN to download these files instead of boto3.
Version
23.07
Which installation method(s) does this occur on?
Docker, Conda, Source
Describe the bug.
With the upgrade to
s3fs=2023.6.0
in PR #1023, we solved one problem but caused another. Now theexamples/digital_fingerprinting/fetch_example_data.py
fails.We need to determine how to best download the files with the most recent version of s3fs
Minimum reproducible example
Ensure s3fs=2023.6 is installed `python examples/digital_fingerprinting/fetch_example_data.py all`
Relevant log output
Full env printout
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: