I found a hint for a solution here: https://bugs.launchpad.net/ubuntu/+source/python-httplib2/+bug/523327
Check your /etc/hosts file has the following:
127.0.0.1 localhost 127.0.1.1 computer name
Mine had "username-laptop" where it should have had "computer name". After changing this it works perfectly.
I found a hint for a solution here: /bugs.launchpad .net/ubuntu/ +source/ python- httplib2/ +bug/523327
https:/
Check your /etc/hosts file has the following:
127.0.0.1 localhost
127.0.1.1 computer name
Mine had "username-laptop" where it should have had "computer name". After changing this it works perfectly.