Release: goobook 1.7

19 views
Skip to first unread message

Christer Sjöholm

unread,
Jun 2, 2015, 4:38:07 PM6/2/15
to Goobook googlegroup
Was someone waiting for this one?

The change from ClientLogin to OAuth2 changes how goobook is configured quite alot.

After upgrading you should clean/remove your .goobookrc,
see the new template for information about whats left and new.
After that run

    goobook authenticate

and follow the instructions, that part is from Googles oauth2 library.

Hope this works, tested less than usual to get it out faster.

1.7
------

* Google no longer support ClientLogin (simple username/password)
* Removed support for ClientLogin
* Added OAuth2 support
* Removed support for .netrc
* Removed email, password, passwordeval fields from config
* Removed support for keyring, this might be temporary
* Removed support for executable .goobookrc

Jason Gilliland

unread,
Jun 2, 2015, 5:35:13 PM6/2/15
to goo...@googlegroups.com
Thank you so much for working on this!
However, I'm still getting some kind of error, in fact different ones depending on whether I install using Pip or from the Git repo.
Using the Pip version I find that `goobook authenticate` only yields:
Traceback (most recent call last):
 
File "/usr/local/bin/goobook", line 9, in <module>
    load_entry_point
('goobook==1.7', 'console_scripts', 'goobook')()
 
File "/usr/local/lib/python2.7/dist-packages/goobook/application.py", line 94, in main
    args
.func(config, args)
 
File "/usr/local/lib/python2.7/dist-packages/goobook/application.py", line 147, in do_authenticate
    flow
= oauth2client.client.flow_from_clientsecrets(client_secret_filename, SCOPES)
 
File "/usr/local/lib/python2.7/dist-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/util.py", line 137, in positional_wrapper
 
File "/usr/local/lib/python2.7/dist-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/client.py", line 2053, in flow_from_clientsecrets
 
File "/usr/local/lib/python2.7/dist-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/clientsecrets.py", line 155, in loadfile
 
File "/usr/local/lib/python2.7/dist-packages/oauth2client-1.4.11-py2.7.egg/oauth2client/clientsecrets.py", line 115, in _loadfile
oauth2client
.clientsecrets.InvalidClientSecretsError: File not found: "/usr/local/lib/python2.7/dist-packages/goobook/client_secret.json"

On the other hand, when I install from the git repo, I find:
Traceback (most recent call last):
 
File "/usr/local/bin/goobook", line 9, in <module>
    load_entry_point
('goobook==1.7.dev', 'console_scripts', 'goobook')()
 
File "build/bdist.linux-x86_64/egg/goobook/application.py", line 94, in main
 
File "build/bdist.linux-x86_64/egg/goobook/application.py", line 146, in do_authenticate
 
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 954, in resource_filename
   
self, resource_name
 
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1652, in get_resource_filename
   
return self._extract_resource(manager, zip_path)
 
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1673, in _extract_resource
    timestamp
, size = self._get_date_and_size(self.zipinfo[zip_path])
KeyError: 'goobook/client_secret.json'

They seem highly related, perhaps the file 'goobook/client_secret.json' was not uploaded with the latest release?

Christer Sjöholm

unread,
Jun 3, 2015, 1:33:57 AM6/3/15
to Goobook googlegroup
Hi, it was uploaded, but not included when installing, this is now fixed in 1.8
--
Christer Sjöholm

Jason Gilliland

unread,
Jun 3, 2015, 12:16:13 PM6/3/15
to goo...@googlegroups.com
Thank you so much! I am now back to using goobook like usual.
It's easy to take for granted the things that make our lives easier until Google breaks them! You are a champ for fixing this so quickly.
Reply all
Reply to author
Forward
0 new messages