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 account which has $ gcloud config get-value project # => project-a,
fs=gcsfs.GCSFileSystem(project='project-b')
raise validation error:
ValueError: User-provided project 'project-b' does not match the google default project 'project-a'. Either
1. Accept the google-default project by not passing a `project` to GCSFileSystem
2. Configure the default project to match the user-provided project (gcloud config set project)
3. Use an authorization method other than 'google_default' by providing 'token=...'
However, I do want to use another project. Why gcsfs doesn't allow this?
My google_default account has correct permission to access project-b so it's no problem to access from the account. (I believe the account's default project doesn't matter.)
For option2, I use multiple fs objects for multiple projects with single google_default account, so I can't switch default project (gcloud config set project) to match.
For option3, I would like to use the Application Default Credential mechanism to make it work conveniently both on cloud and local.
The text was updated successfully, but these errors were encountered:
With account which has
$ gcloud config get-value project # => project-a
,raise validation error:
However, I do want to use another project. Why gcsfs doesn't allow this?
My
google_default
account has correct permission to accessproject-b
so it's no problem to access from the account. (I believe the account's default project doesn't matter.)For option2, I use multiple
fs
objects for multiple projects with singlegoogle_default
account, so I can't switch default project (gcloud config set project
) to match.For option3, I would like to use the Application Default Credential mechanism to make it work conveniently both on cloud and local.
The text was updated successfully, but these errors were encountered: