Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There are bits and pieces of information all over the place but I'm trying to put it all together so that GoogleCL finally accesses more than the initial 7 services. Does anyone know of a step-by-step?

Right now any attempt outside these result in the error message:

google tasks list

Did you specify the service correctly? Must be one of 'picasa', 'blogger', 'youtube', 'docs', 'contacts', 'calendar', 'finance'

I installed GoogleCL from the Ubuntu repos, authenticated a few bundled services like contacts, docs etc. and those work great, giving me access to do certain operations like upload from the command line.

I would really like to get it going to support tasks and all the other elegible Google services shown at https://code.google.com/apis/explorer/#_s=tasks

Here are some guides/partial steps I've found:

(indicates needing to check it out updated GoogleCL from the subversion repository.)

easy_install --upgrade google-api-python-client

Result:

$ google
> discovery list
Traceback (most recent call last):
  File "/usr/bin/google", line 488, in run_interactive
    run_once(options, args)
  File "/usr/bin/google", line 540, in run_once
    options.config)
  File "/usr/bin/google", line 364, in import_service
    force_gdata_v1 = config.lazy_get(package.SECTION_HEADER,
AttributeError: 'module' object has no attribute 'SECTION_HEADER'
share|improve this question

1 Answer 1

This workaround involves NOT using the .deb packaged GoogleCL:

/usr/local/src/googlecl-read-only/build/scripts-2.7/google tasks tasks list

was the alternative binary from svn that supported Services Discovery API. The example above tests the "Google Tasks" cli which is beyond the initial seven services supported by the Ubuntu distro GoogleCL.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.