myTasks
myTasks copied to clipboard
No handlers could be found for logger "oauth2client.client" Authentication has failed: invalid_client
I'm getting this error message after entering the . Any thoughts?
Thanks
......
Jon-Schulls-MacBook-Pro-2:parezcoydigo-myTasks-06b9769 jonschull$ python myTasks.py Go to the following link in your browser: https://accounts.google.com/o/oauth2/auth?scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ftasks&redirect_uri=oob&response_type=code&client_id=128296334067.apps.googleusercontent.com&access_type=offline
Enter verification code: 4/xvtrM60qvQnUkVnR-9I9XWjbZ5mc No handlers could be found for logger "oauth2client.client" Authentication has failed: invalid_client
Couple questions--
- What did you mean to say "after entering the ."? I'm guessing the verification code?
- What version of python are you using?
- What version of the google_api_python_client?
- Did you set your secret key using keyring? Are you sure it's copied correctly?
Hi,
I get this same error. I'm using python 2.6.1 and I installed argparse
google_api_python_client
and keyring
all via easy_install.
I believe I followed the keyring usage instructions correctly:
python
>>> import keyring
>>> keyring.set_password('tasks', '<username>', '<Google Client secret>');
Where 'tasks' is what I decided to call "my" app. I can open the keychain.app and see the entry in there.
I'm not experienced in python, but are we supposed to be editing the myTasks.py file? If I do the following edits then I can eventually get myTasks.py to work:
https://github.com/parezcoydigo/myTasks/blob/master/myTasks.py#L197
client_id='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
replace XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with my actual Client ID from google.
https://github.com/parezcoydigo/myTasks/blob/master/myTasks.py#L198
client_secret=keyring.get_password('XXXXXXX', 'XXXXXXXX'),
replace the first XXXXXXX with "tasks" and the second XXXXXXXX with my username.
When I then run myTasks.py I get some error output, including:
IOError: [Errno 2] No such file or directory: '/PATH/TO/tasks.dat'
So I then edit https://github.com/parezcoydigo/myTasks/blob/master/myTasks.py#L209
taskStore = "/PATH/TO/tasks.dat"
If I set taskStore to a path that actually exists and then invoke ./myTaks.py and paste in the Google authentication, everything works! :)
The file defined in taskStore gets created and then contains my client_secret, which doesn't seem secure. Am I doing the right thing? Thanks in advance for any help!
Hello,
I have the same problem. I just followed diffsky changes and it worked !
I'm using Linux Mint 14 (Nadia), Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2, and Installed python-google-api-python-client_1.0.0-2_all.deb and python-gflags_2.0-1_all.deb from google-api-python-client.
I think this is a great tool, and a clarification on how to follow the instructions would be great