Dvc: "ERROR: unexpected error - 'GDriveRemote' object has no attribute '_credentials_location'"

Created on 26 May 2020  路  2Comments  路  Source: iterative/dvc

Please provide information about your setup
DVC Version: 0.94.0
installation: pip
OS: Windows

When pushing to a gdrive that has the wrong credentials for the first time, the following error appears:

ERROR: unexpected error - 'GDriveRemote' object has no attribute '_credentials_location'

As far as I can tell, this is because the GDriveRemote object's credentials_location() method hasn't instantiated _credential_location yet, and this error prevents the correct error message from appearing.

Best wishes,

Nick

awaiting response bug p1-important

Most helpful comment

Sure, thanks for the chance to contribute!

All 2 comments

Hi @nickdelgrosso ! Indeed, looks like that's a typo https://github.com/iterative/dvc/blob/master/dvc/remote/gdrive.py and it should be self.credentials_location instead. Would you like to submit a quick fix PR for it? :slightly_smiling_face:

Sure, thanks for the chance to contribute!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shcheklein picture shcheklein  路  3Comments

shcheklein picture shcheklein  路  3Comments

ghost picture ghost  路  3Comments

tc-ying picture tc-ying  路  3Comments

anotherbugmaster picture anotherbugmaster  路  3Comments