google-drive-ocamlfuse
google-drive-ocamlfuse copied to clipboard
Error 401: invalid_client
When I tried loggin into my GDrive account in Google Colaboratory, everything was going fine until this error occured
Snippet
import os
from os.path import exists
os.chdir('/content')
if not exists('drive'):
!apt-get install -y -qq software-properties-common python-software-properties module-init-tools
!add-apt-repository -y ppa:alessandro-strada/ppa 2>&1 > /dev/null
!apt-get update -qq 2>&1 > /dev/null
!apt-get -y install -qq google-drive-ocamlfuse fuse
from google.colab import auth
auth.authenticate_user()
from oauth2client.client import GoogleCredentials
creds = GoogleCredentials.get_application_default()
import getpass
!google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret} < /dev/null 2>&1 | grep URL
vcode = getpass.getpass()
!echo {vcode} | google-drive-ocamlfuse -headless -id={creds.client_id} -secret={creds.client_secret}
%cd /content
!mkdir drive
%cd drive
!mkdir MyDrive
%cd ..
!google-drive-ocamlfuse /content/drive/MyDrive
What should I do to fix it?
I mean, I could fuse with normal google drive account, but I am using other drive accounts, which afaik isn't prohibited