Goobook GPG Failing with EOFError

19 views
Skip to first unread message

mark.mc...@buzzfeed.com

unread,
Sep 26, 2016, 5:15:21 AM9/26/16
to goobook
Hello

This is my setup...

pyenv install 2.7.6
pyenv
local 2.7.6
pip install goobook

touch
~/.goobook_cache

cat > ~/
.goobookrc <<EOF
[DEFAULT]
email
: mark.mcdonnell@foobar.com
passwordeval
: gpg --batch -d ~/.mutt/password.gpg
max_results
: 9999
cache_filename
: ~/.goobook_cache
cache_expiry_hours
: 24
EOF

The file ~/.mutt/password.gpg contains just the google app password I've generated (e.g. it's just foobar and not `password: foobar`). I don't know if there is a format it should be?

Here is the permissions for these files...

-rw-r--r--     1 markmcdonnell  staff       0 Sep 26 09:52 .goobook_cache
-rwxr-xr-x     1 markmcdonnell  staff     138 Sep 26 09:55 .goobookrc*



If I type m to create a new email and then <Tab> to see what addresses I have I get the following error...

To: Traceback (most recent call last):
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/bin/goobook", line 11, in <module> sys.exit(main())
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/site-packages/goobook/application.py", line 94, in main args.func(config, args)
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/site-packages/goobook/application.py", line 125, in do_query goobk = GooBook(config)
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/site-packages/goobook/goobook.py", line 59, in __init__ self.cache.load()
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/site-packages/goobook/goobook.py", line 246, in load cache = pickle.load(open(self.__config.cache_filename, 'rb'))
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/pickle.py", line 1378, in load return Unpickler(file).load()
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/pickle.py", line 858, in load dispatch[key](self)
File "/Users/markmcdonnell/.pyenv/versions/2.7.6/lib/python2.7/pickle.py", line 880, in load_eof raise EOFError
EOFError


Does anyone know what I'm doing wrong here? Thanks

Christer Sjöholm

unread,
Sep 26, 2016, 6:21:02 AM9/26/16
to goobook
It has a problem loading your empty ~/.goobook_cache  remove it and try again


--
You received this message because you are subscribed to the Google Groups "goobook" group.
To unsubscribe from this group and stop receiving emails from it, send an email to goobook+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Christer Sjöholm
070-2045037

mark.mc...@buzzfeed.com

unread,
Sep 26, 2016, 6:54:10 AM9/26/16
to goobook
Hi, removing the .goobook_cache helped but now when I press <Tab> I see:

No or invalid credentials, run "goobook authenticate"

I assume this means it has at least successfully decrypted my ~/.mutt/password.gpg file which contains the google app password I created specifically for Mutt to use. The password should work fine as it's the same password - albeit from a different gpg file and format `source "gpg -d ~/.mutt/rc_set_passwords.gpg |"` - for connecting mutt to my gmail account)

mark.mc...@buzzfeed.com

unread,
Sep 26, 2016, 7:01:21 AM9/26/16
to goobook
I've also gone back and re-encrypted the file so it didn't just contain the google app password but also was prefixed like so:

password: foobar


...just in case it needed it in that format?


But that didn't work either

Christer Sjöholm

unread,
Sep 26, 2016, 7:08:00 AM9/26/16
to goobook
I think you are using old documentation, check the one that matches the goobook you are using. Google no longer supports password login to the service goobook is using.

mark.mc...@buzzfeed.com

unread,
Sep 26, 2016, 7:18:35 AM9/26/16
to goobook
OK so that worked.

I used `goobook config-template` to generate a basic template and I saw the setting:

oauth_db_filename: ~/.goobook_auth.json


which points to a file that `goobook authenticate` would generate for me


Thanks for your help Christer :-)


Ps, I've got issues with sending email but I'll open a separate issue for that
Reply all
Reply to author
Forward
0 new messages