vj57 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

IOError: [Errno 13] Permission denied How do I fix this? #368

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have tried
 google contacts list john
and
google youtube post ~/Desktop/installing\ google\ command\ line\ using\ 
pip-python.avi Education --tags "command" --summary "Command line"

both cough on error
IOError: [Errno 13] Permission

I made a fan video here: http://www.youtube.com/watch?v=xQ7W16SM_CA
but can't get beyond enthusiasm to it actually working! :(

I installed googlecl 
sudo pip-python install googlecl

and gdata from the zip
http://gdata-python-client.googlecode.com/files/gdata-2.0.13.zip

Please advise

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
[user@localhost ~]$ google --version
google 0.9.12
/usr/lib/python2.7/site-packages/gdata-2.0.13-py2.7.egg-info/PKG-INFO

[user@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18 
UTC 2011 i686 i686 i386 GNU/Linux

Please provide any additional information below.
[user@localhost ~]$ google contacts list john
Please specify user: xxx@gmail.com
Please log in and/or grant access at 
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=4%xxxxxxxxxxxxxh
d=default

Please enter the verification code on the success page: 
<token_keY_here_sent_from_google>
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/python2.7/site-packages/googlecl/authentication.py", line 180, in retrieve_access_token
    self.client.current_token)
  File "/usr/lib/python2.7/site-packages/googlecl/authentication.py", line 255, in write_access_token
    with open(self.tokens_path, 'wb') as tokens_file:
IOError: [Errno 13] Permission denied: 
'/home/user/.local/share/googlecl/access_tok_xxx@gmail.com'

Original issue reported on code.google.com by dennisgd...@gmail.com on 23 Feb 2011 at 11:06

GoogleCodeExporter commented 9 years ago
The only way I was able to get it to work was to 
sudo google contacts list john

This is not optimum.

Original comment by dennisgd...@gmail.com on 23 Feb 2011 at 11:53

GoogleCodeExporter commented 9 years ago
Can you check the permissions on "/home/user/.local/share/googlecl/", and make 
sure it exists?

$ ls -l ~/.local/share/googlecl

Original comment by tom.h.mi...@gmail.com on 9 Mar 2011 at 2:48