Julien, What form of authentication did you use? I did not understand why you are using your gmail password here as the filename.
The point of oAuth is to do away with using your password in clear text. Did you follow all the instructions in the new README file? On Wed, Jun 24, 2015 at 8:29 PM, Julien Cubizolles <[email protected]> wrote: > Sriram Karra <[email protected]> writes: > > > > Contacts should not get deleted. Can you try out the gdata-oauth2 branch > > that I just pushed and let me know how that works? > > Sorry for not answering sooner. > > I just checked out the gdata-oauth2 branch, installed the > google-api-python-client python module. > > I get the following error: > > --8<---------------cut here---------------start------------->8--- > Traceback (most recent call last): > File "/home/wilk/info/emacs/ASynK/asynk.py", line 321, in <module> > main() > File "/home/wilk/info/emacs/ASynK/asynk.py", line 318, in main > asynk.dispatch() > File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 97, in > dispatch > res = getattr(self, self.get_op())() > File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 366, in > op_sync > pname = self._load_profile() > File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 584, in > _load_profile > self._login() > File "/home/wilk/info/emacs/ASynK/asynk/asynk_core.py", line 85, in > _login > coll.login() > File "/home/wilk/info/emacs/ASynK/asynk/state_collection.py", line 336, > in login > self.get_username(), self.get_pwd()) > File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 66, in > __init__ > self.gc_init() > File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 264, in > gc_init > self.credentials = self._oauth_dance(storage) > File "/home/wilk/info/emacs/ASynK/asynk/pimdb_gc.py", line 242, in > _oauth_dance > redirect_uri='http://localhost:%d' % port) > File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line > 137, in positional_wrapper > return wrapped(*args, **kwargs) > File "/usr/local/lib/python2.7/dist-packages/oauth2client/client.py", > line 2053, in flow_from_clientsecrets > client_type, client_info = clientsecrets.loadfile(filename, > cache=cache) > File > "/usr/local/lib/python2.7/dist-packages/oauth2client/clientsecrets.py", > line 155, in loadfile > return _loadfile(filename) > File > "/usr/local/lib/python2.7/dist-packages/oauth2client/clientsecrets.py", > line 115, in _loadfile > raise InvalidClientSecretsError('File not found: "%s"' % filename) > oauth2client.clientsecrets.InvalidClientSecretsError: File not found: > "/home/wilk/my_gmail_password" > --8<---------------cut here---------------end--------------->8--- > The File not found is named after the gmail password I just typed. > > Julien. > > -- > You received this message because you are subscribed to the Google Groups > "ASynK Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send an email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/asynk/87ioadxict.fsf%40free.fr. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ASynK Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/asynk/CAFkt3UMigOCzZFugo64WBWHOvesYra4-XyXi2kn-pPDsqVs20A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
