google drive sdk - Python import pyDrive library error -


i installed google api, pydrive, , httplib2. got token app in google , saved client_secret.json file in project's folder. i'm trying run following

print(sys.path)  pydrive.auth import googleauth  gauth = googleauth()  gauth.localwebserverauth() # creates local webserver , auto handles     authentication 

but throws syntax error invalid syntax (auth.py, line 160) in line

from pydrive.auth import googleauth 

i can authenticate app using google drive api (without pydrive) i'm unable use pydrive because of described error, i've tried append following lines @ beginning of script:

import sys if "c:\\users\\giovanni.sumano\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\pydrive" not in sys.path: sys.path.append("c:\\users\\giovanni.sumano\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\pydrive") 

because c:\\users\\giovanni.sumano\\appdata\\local\\continuum\\anaconda3\\lib\\site-packages\\pydrive path i've found pydrive libraries, additionally i've tried add path pythonpath environment variable via cmd, neither has worked me far. know how can make pydrive work me?

i'm running python on windows 8.1 , visual studio , python tools visual studio.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -