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
Using cloudpathlib==0.18.1 there appears to be a bug which causes cloudpathlib to seek credentials for AWS connections despite passing no_sign_request=True. The error appears as: botocore.exceptions.NoCredentialsError: Unable to locate credentials. On testing this in isolation without CytoTable, a different bug seems to manifest as: NameError: name 'Session' is not defined. See here: https://gist.github.com/d33bs/eb19f864baae89757e0e0969611cf1af .
The text was updated successfully, but these errors were encountered:
Using existing code from CytoTable to mimic an example appears to work okay:
fromcloudpathlibimportAnyPath, CloudPathpath="s3://ladi/Images/FEMA_CAP/2020/70349/DSC_0001_5a63d42e-27c6-448a-84f1-bfc632125b8e.jpg"processed_path=AnyPath(path)
ifisinstance(processed_path, CloudPath):
processed_path.client=processed_path.client.__class__(no_sign_request=True)
# use this client object to create the CloudPathprocessed_path.exists()
Closing this issue as the bug no longer appears to persist as demonstrated by passing tests with real AWS S3 data sources within https://github.com/cytomining/CytoTable/blob/main/tests/test_convert_threaded.py . I believe it may have been due to missing optional installs from cloudpathlib in variable development environments.
Using
cloudpathlib==0.18.1
there appears to be a bug which causescloudpathlib
to seek credentials for AWS connections despite passingno_sign_request=True
. The error appears as:botocore.exceptions.NoCredentialsError: Unable to locate credentials
. On testing this in isolation without CytoTable, a different bug seems to manifest as:NameError: name 'Session' is not defined
. See here: https://gist.github.com/d33bs/eb19f864baae89757e0e0969611cf1af .The text was updated successfully, but these errors were encountered: