dangtrinhnt / googlecl

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

Cannot use docs service on Mac OS X Mavericks #566

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $ google docs list
-- or --
2. $ google help docs

What is the expected output? What do you see instead?
Expect a list of google docs or a request to authenticate user account. 
Instead receive AttributeError with Traceback: 
1. $google docs list
Traceback (most recent call last):
  File "/usr/local/bin/google", line 839, in <module>
    main()
  File "/usr/local/bin/google", line 825, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 530, in run_once
    options.config)
  File "/usr/local/bin/google", line 364, in import_service
    service_module = import_at_runtime('googlecl.' + service + '.client')
  File "/usr/local/bin/google", line 323, in import_at_runtime
    return __import__(module, globals(), fromlist=['0'])
  File "/usr/local/lib/python2.7/site-packages/googlecl/docs/client.py", line 47, in <module>
    googlecl.client.BaseClientCL):
  File "/usr/local/lib/python2.7/site-packages/googlecl/docs/client.py", line 55, in DocsClientCL
    DOCLIST_FEED_URI = gdata.docs.client.DOCLIST_FEED_URI
AttributeError: 'module' object has no attribute 'DOCLIST_FEED_URI'

2. $google help docs
Traceback (most recent call last):
  File "/usr/local/bin/google", line 839, in <module>
    main()
  File "/usr/local/bin/google", line 825, in main
    run_once(options, args)
  File "/usr/local/bin/google", line 524, in run_once
    options.config)
  File "/usr/local/bin/google", line 364, in import_service
    service_module = import_at_runtime('googlecl.' + service + '.client')
  File "/usr/local/bin/google", line 323, in import_at_runtime
    return __import__(module, globals(), fromlist=['0'])
  File "/usr/local/lib/python2.7/site-packages/googlecl/docs/client.py", line 47, in <module>
    googlecl.client.BaseClientCL):
  File "/usr/local/lib/python2.7/site-packages/googlecl/docs/client.py", line 55, in DocsClientCL
    DOCLIST_FEED_URI = gdata.docs.client.DOCLIST_FEED_URI
AttributeError: 'module' object has no attribute 'DOCLIST_FEED_URI'

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

Mac OS X 10.9.5 Mavericks
Python 2.7.8 installed with Homebrew
gdata (2.0.18) installed with pip
googlecl (0.9.12) installed with pip

Please provide any additional information below.
I had the same problem as 
"Issue 352: install problem: authentication fails with inability to locate 
files in ~/.local/share/googlecl"
so I created the "googlecl" directory in ~/.local/share. 
That made contacts and calendar services functional. But docs returns the 
errors above, even the help subcommand (help works on its on and when 
referencing other services). 

Original issue reported on code.google.com by r...@remystjames.com on 8 Nov 2014 at 9:19

GoogleCodeExporter commented 9 years ago
Also should mention that I am trying to access docs under a Google Apps 
account, and that my Google Drive contents are synced to my computer through 
the Google Drive app for Mac. 

Original comment by r...@remystjames.com on 8 Nov 2014 at 9:23