Issue 376 in googlecl: Error storing auth token if ~/.local isn't there

9 views
Skip to first unread message

goog...@googlecode.com

unread,
Mar 11, 2011, 9:56:22 AM3/11/11
to google...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 376 by a.skwar: Error storing auth token if ~/.local isn't there
http://code.google.com/p/googlecl/issues/detail?id=376

What steps will reproduce the problem?
1. rm -rf $HOME/.local
2. google docs list
3. auth a new user

What is the expected output? What do you see instead?

It should work. Ie. in the case above, it should show the docs list.

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?

googlecl_0.9.12-1_all.deb

Please provide any additional information below.


--($ ~)-- env BROWSER=/bin/echo google docs list
Please specify user: a.s...@gmail.com
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4×××&hd=default
Please log in and/or grant access at
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4×××&hd=default

Please enter the verification code on the success page: ×××
Traceback (most recent call last):
File "/usr/bin/google", line 839, in <module>
main()
File "/usr/bin/google", line 825, in main
run_once(options, args)
File "/usr/bin/google", line 605, in run_once
authenticated = authenticate(auth_manager, options, config,
section_header)
File "/usr/bin/google", line 119, in authenticate
valid_token = auth_manager.retrieve_access_token(display_name, browser)
File "/usr/lib/pymodules/python2.6/googlecl/authentication.py", line 180,
in retrieve_access_token
self.client.current_token)
File "/usr/lib/pymodules/python2.6/googlecl/authentication.py", line 255,
in write_access_token
with open(self.tokens_path, 'wb') as tokens_file:
IOError: [Errno 2] No such file or
directory: '/home/i/.local/share/googlecl/access_to...@gmail.com'


goog...@googlecode.com

unread,
Mar 15, 2011, 8:38:46 PM3/15/11
to google...@googlegroups.com

Comment #1 on issue 376 by fja...@gmail.com: Error storing auth token if

Yeah, I am hitting this on Ubuntu 10.10.

I had just installed googlecl 0.9.12-1 from the .deb for the first time,
and I got this error when attempting to run my first command: "google list
calendar"

Pretty confusing result. I wondered what was doing wrong, and couldn't
find any documentation about what to expect during the authentication. Was
I supposed to copy the "oauth_token" and put it in the file it was
complaining about? Apparently not... it's just a bug?

To workaround I ran this and then reauthenticated: mkdir -p
~/.local/share/googlecl

goog...@googlecode.com

unread,
Mar 16, 2011, 9:13:07 PM3/16/11
to google...@googlegroups.com
Updates:
Status: Accepted

Comment #2 on issue 376 by tom.h.mi...@gmail.com: Error storing auth token

This is a duplicate of Issue 352, which contains a patch to fix the problem.

Since this is the third or fourth time this issue has been mentioned, I'll
leave this issue open until a new version is released. But to fix the
problem, you can either create the ~/.local/share/googlecl directory, or
apply the patch in Issue 352.

goog...@googlecode.com

unread,
Mar 21, 2011, 9:19:17 PM3/21/11
to google...@googlegroups.com

Comment #3 on issue 376 by jferm...@gmail.com: Error storing auth token if

Having the same issue, even with the patch applied and creating the
directory manually ...

goog...@googlecode.com

unread,
Mar 30, 2011, 10:17:50 PM3/30/11
to google...@googlegroups.com

Comment #4 on issue 376 by tom.h.mi...@gmail.com: Error storing auth token

Are you sure the patch has been applied correctly? You could also try
checking out the repository and using the version there.

goog...@googlecode.com

unread,
Mar 31, 2011, 9:20:00 PM3/31/11
to google...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 352

Comment #5 on issue 376 by tom.h.mi...@gmail.com: Error storing auth token

With 0.9.13 out, this problem should be fixed for good. If the problem
still persists after upgrading (and being sure you've wiped out the
previous version), don't hesitate to comment further on this issue.

goog...@googlecode.com

unread,
Jan 7, 2015, 11:27:09 AM1/7/15
to google...@googlegroups.com

Comment #6 on issue 376 by mthollyi...@gmail.com: Error storing auth token
if ~/.local isn't there
https://code.google.com/p/googlecl/issues/detail?id=376

I am having this issue and thought by upgrading to all the latest versions
of Python, googlecl, java, etc. I would be able to reset the token. I've
attached a log I kept to show my dilema. Help!

Attachments:
TokenAccessScreen.txt 5.3 KB

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages