Export to GitHub

googlecl - Install.wiki


Please note that we haven't tried all of these methods, and there may be a package/port in your distribution's package manager that we're not aware of. If something seems amiss, ask around on the mailing list, or file an issue in the tracker.

Dependencies

  • Python 2.5 - 2.9. (There are known issues with python 3.2 and googlecl)
  • gdata

While we've made efforts to be backwards compatible all the way back to gdata 1.2.4, there are a few things that will not work. If you're having trouble, see the troubleshooting guide

Known issues with certain gdata-python-client versions

GoogleCL relies on gdata-python-client, or python-gdata as it's known in Ubuntu.

We've tried to be compatible with as many versions of that library as possible, but there are some versions that just don't work with some GoogleCL services.

gdata-python-client versions 2.0.14 and later work best, so if you have a choice, use one of those versions.

Google Docs commands have various incompatibilities with almost all versions before 2.0.14, so avoid 2.0.13 or older.

Google Contacts has issues with versions earlier than 2.0.7. Versions 2.0.1 and 2.0.2 do seem to work, but use a different auth token, so we recommend avoiding them.

All systems

From source

Fortunately, installing GoogleCL is super easy, because it's all Python. Download the latest .tar.gz, unpack it, and run setup.py to install it system wide or just run it from the src/ directory. -- Note: as of February 2, 2012, docs are broken with the .tar.gz versions of GoogleCL. If you need docs support, checkout GoogleCL from svn.

  • tar xvf googlecl-x.x.x.tar.gz
  • cd googlecl-x.x.x

then

  • sudo python setup.py install --record=files.txt (creates a list of files installed and saves it in files.txt)

OR don't install it and just use it this way:

  • cd src/
  • ./google

PyPi (The Cheeseshop)

There are a few ways to access the cheeseshop:

  • easy_install: easy_install googlecl
  • pip: pip install googlecl
  • PyPM: pypm install googlecl

GNU/Linux

Debian and company (e.g. Ubuntu)

Installation should be very simple. Grab the .deb file from the Downloads section, cd to your downloads directory, and run

  • sudo dpkg -i googlecl*.deb

Note: We've heard of problems from Hardy users and Debian Lenny (unless you've enabled backports).

python-gdata version

Note that most versions of Ubuntu only come standard with gdata 1.2.4, so you may see a message like:

  • "Editing documents is not supported for gdata-python-client

If you need to use tasks unsupported by gdata-1.2, you'll need to manually install a newer version of the gdata and gdata python libraries.


Mac

http://www.reddit.com/r/programming/comments/cgi57/introducing_the_google_command_line_tool/c0seufq'>Someone on reddit says that it's available via macports:

  • sudo port install googlecl

If it's not there, run 'sudo port selfupdate', then try again.

bodo.tasche reports that Brew has removed the googlecl package because it is part of pip. To install pip and then googlecl, use

  • brew install pip
  • pip install googlecl

Windows

0.9.8 and up

The zip file available in the Downloads section contains an executable called "google" that you can run from inside that folder. Running it will bring up the interactive shell prompt (> ) where you can enter commands such as docs list or blogger post "Hello World!"

If it crashes, does nothing, or says "MCVCR71.dll not found" you may need a DLL from Microsoft installed via http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en'>this tool.

0.9.7 and earlier

Isaac Truett wrote up a HOWTO on his blog:
http://publicint.blogspot.com/2010/06/setup-googlecl-on-winxp.html'>http://publicint.blogspot.com/2010/06/setup-googlecl-on-winxp.html

FreeBSD

There is a FreeBSD port available under net/googlecl

Other

Did we miss something? Let us know via the http://groups.google.com/group/googlecl-discuss'>mailing list. (The wiki comments are rarely, if ever, checked! But we appreciate the feedback when we see it!)