salimoha / googlecl

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

Problem accessing configuration directory after easy_insall #288

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

sudo easy_install -U googlecl
echo 'Hello, world!' > test.txt
google docs upload test.txt

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

Did not find config / preferences file at /Users/isak/.config/googlecl/config
... making new one.
Please specify user: ...@gmail.com
Please log in and/or grant access at 
https://www.google.com/accounts/OAuthAuthorizeToken?oauth_token=...&hd=default

Please enter the verification code on the success page: ...

[Errno 2] No such file or directory: '/Users/isak/.local/share/googlecl'
Traceback (most recent call last):
  File "/usr/local/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.10', 'google')
  File "/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 489, in run_script

  File "/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", line 1214, in run_script
    self.egg_info = os.path.join(path, 'EGG-INFO')
  File "/Library/Python/2.6/site-packages/googlecl-0.9.10-py2.6.egg/EGG-INFO/scripts/google", line 676, in <module>

  File "/Library/Python/2.6/site-packages/googlecl-0.9.10-py2.6.egg/EGG-INFO/scripts/google", line 662, in main

  File "/Library/Python/2.6/site-packages/googlecl-0.9.10-py2.6.egg/EGG-INFO/scripts/google", line 488, in run_once

  File "/Library/Python/2.6/site-packages/googlecl-0.9.10-py2.6.egg/EGG-INFO/scripts/google", line 115, in authenticate

  File "build/bdist.macosx-10.6-universal/egg/googlecl/__init__.py", line 381, in write_access_token
IOError: [Errno 2] No such file or directory: ''

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

googlecl-0.9.10
gdata-2.0.11
Darwin localhost 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 
2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

Please provide any additional information below.

It's very easy to fix, e.g. mkdir -p ~/.local/share/googlecl and retry.

Original issue reported on code.google.com by isak.joh...@gmail.com on 19 Sep 2010 at 2:31

GoogleCodeExporter commented 9 years ago
This will just plain work in the next release. Thanks!

Original comment by tom.h.mi...@gmail.com on 21 Sep 2010 at 11:50