Execution error

13 views
Skip to first unread message

Sergio Mendoza

unread,
Nov 11, 2019, 10:43:31 PM11/11/19
to goobook
Hi,

  I have a full debian system with goobook installed in user's directory.  I'm having the following problem and have no idea how to fix.  Anyone?

Cheers,

Sergio.

sergio@universe:~$ goobook dquery sergio
Traceback (most recent call last):
  File "/usr/bin/goobook", line 11, in <module>
    load_entry_point('goobook==3.4', 'console_scripts', 'goobook')()
  File "/usr/share/goobook/goobook/application.py", line 106, in main
    args.func(config, args)
  File "/usr/share/goobook/goobook/application.py", line 159, in do_query_details
    goobk = GooBook(config)
  File "/usr/share/goobook/goobook/goobook.py", line 55, in __init__
    self.cache.load()
  File "/usr/share/goobook/goobook/goobook.py", line 260, in load
    self.update()
  File "/usr/share/goobook/goobook/goobook.py", line 268, in update
    self.contacts = list(parse_contacts(gcs.fetch_contacts(), groupname_by_id))
  File "/usr/share/goobook/goobook/goobook.py", line 352, in parse_contacts
    parsed = parse_contact(contact, groupname_by_id)
  File "/usr/share/goobook/goobook/goobook.py", line 323, in parse_contact
    membership['contactGroupMembership']['contactGroupId']])
KeyError: 'contactGroups/136c5dae0ca94ac9'

Christer Sjöholm

unread,
Nov 13, 2019, 12:11:50 PM11/13/19
to Goobook googlegroup
Looks strange, if you haven't, try "goobook reload".

Sergio Mendoza

unread,
Nov 13, 2019, 12:13:39 PM11/13/19
to goo...@googlegroups.com
Ohh yes,

I've tried it. Similar error:

Traceback (most recent call last):
File "/usr/bin/goobook", line 11, in <module>
load_entry_point('goobook==3.4', 'console_scripts', 'goobook')()
File "/usr/share/goobook/goobook/application.py", line 106, in main
args.func(config, args)
File "/usr/share/goobook/goobook/application.py", line 165, in do_reload
cache.load(force_update=True)
File "/usr/share/goobook/goobook/goobook.py", line 260, in load
self.update()
File "/usr/share/goobook/goobook/goobook.py", line 268, in update
self.contacts = list(parse_contacts(gcs.fetch_contacts(), groupname_by_id))
File "/usr/share/goobook/goobook/goobook.py", line 352, in parse_contacts
parsed = parse_contact(contact, groupname_by_id)
File "/usr/share/goobook/goobook/goobook.py", line 323, in parse_contact
membership['contactGroupMembership']['contactGroupId']])
KeyError: 'contactGroups/136c5dae0ca94ac9'

Cheers,

Sergio.


On Wed, Nov 13, 2019 at 06:11:37PM +0100, Christer Sjöholm wrote:
> Looks strange, if you haven't, try "goobook reload".
>
> --
> 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.
> To view this discussion on the web visit https://groups.google.com/d/msgid/goobook/CAGJSKHuxwfAGvOrSGA5zJX0G9XAP2p4WYMGzwnY2yQfSjS1mGQ%40mail.gmail.com.

Sergio Mendoza

unread,
Dec 17, 2019, 7:07:30 PM12/17/19
to goobook
Hi,

  Found the bug.  You can found my solution (which does not eliminate the bug) at the debian bug system:


Cheers,

Sergio.
Reply all
Reply to author
Forward
0 new messages