'Data Version Control with Google Drive Remote: "googleapiclient.errors.UnknownApiNameOrVersion: name: drive version: v2"

I'm trying to setup DVC with Google Drive storage as shown here. So far, I've been unsuccessful in pushing data to the remote. I tried both with and without the Google App setup.

After running a dvc push -v, the following exception is shown:

  File "(...)/anaconda3/lib/python3.8/site-packages/googleapiclient/discovery.py", line 387, in _retrieve_discovery_doc
    raise UnknownApiNameOrVersion("name: %s  version: %s" % (serviceName, version))
googleapiclient.errors.UnknownApiNameOrVersion: name: drive  version: v2

DVC was installed via pip install dvc[gdrive]. The pip freeze of the concerning packages is:

oauth2client==4.1.3
google-api-python-client==2.0.1
dvc==2.0.1

Any help is thoroughly appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source