-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix passing credentials to gcsfs
#66
Conversation
@bnaul What do you think is going on here? https://github.com/coiled/dask-bigquery/actions/runs/4997384122/jobs/8951694334?pr=66#step:6:105
it's happening on a line that is supposed to raise:
but apparently it's raising something different. |
probably we should just check the text rather than the exception type, I
just used whatever was being raised for me at the time but it's not
important for us what they raise
…On Tue, May 16, 2023, 8:07 PM Irina Truong ***@***.***> wrote:
@j-bennet <https://github.com/j-bennet> requested your review on: #66
<#66> Fix passing credentials
to gcsfs.
—
Reply to this email directly, view it on GitHub
<#66 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG4TZ3JMBZTWMRID6JTFLDXGQJEJANCNFSM6AAAAAAYC5OE7Y>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I hadn't realised that the gcsfs discussion was the same as the one here. As in the liked issue, it would not be too difficult to have gcsfs accept a raw token, either working around the current system or making a small PR to gcsfs. It would, of course, not be able to refresh and eventually return permission errors if the token has expired. |
@martindurant I'm going to try making a change in gcsfs. Might need your help with that one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @j-bennet
According to the docs here:
https://gcsfs.readthedocs.io/en/latest/index.html#credentials
gcsfs
does not accept just a token, it needs aCredentials
instance or a dict. For daskdict
works better, because it can be pickled.We also pass the same credentials to
to_parquet
.