Issue 27 in goobook: Exception thrown in _parse_contact

2 views
Skip to first unread message

goo...@googlecode.com

unread,
Mar 7, 2011, 9:36:36 AM3/7/11
to goobook...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 27 by tlvince: Exception thrown in _parse_contact
http://code.google.com/p/goobook/issues/detail?id=27

What steps will reproduce the problem?
1. $ goobook reload

What is the expected output? What do you see instead?

Traceback (most recent call last):
File "/usr/bin/goobook", line 9, in <module>
load_entry_point('goobook==1.4.dev', 'console_scripts', 'goobook')()
File "/usr/lib/python2.7/site-packages/goobook/application.py", line 83,
in main
args.func(config, args)
File "/usr/lib/python2.7/site-packages/goobook/application.py", line 120,
in do_reload
cache.load(force_update=True)
File "/usr/lib/python2.7/site-packages/goobook/goobook.py", line 242, in
load
self.update()
File "/usr/lib/python2.7/site-packages/goobook/goobook.py", line 249, in
update
self.contacts = list(self._parse_contacts(gc.fetch_contacts()))
File "/usr/lib/python2.7/site-packages/goobook/goobook.py", line 322, in
_parse_contacts
yield self._parse_contact(entry)
File "/usr/lib/python2.7/site-packages/goobook/goobook.py", line 306, in
_parse_contact
contact.im.append((ent.get('address'),
ent.get('protocol').split('#')[-1]))
AttributeError: 'NoneType' object has no attribute 'split'

What version of the product are you using? On what operating system?

goobook-git (Arch Linux AUR package:
https://aur.archlinux.org/packages.php?ID=36035)
python2-2.7.1-7
python-gdata-2.0.13-1
python-simplejson-2.1.1-2
python2-distribute-0.6.14-2
python-keyring-0.5.1-1
python-hcs_utils-1.1.1-2

I'm using no config file and started experiencing this when I updated to
1.4 alpha.

goo...@googlecode.com

unread,
Mar 7, 2011, 1:04:02 PM3/7/11
to goobook...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 26

Comment #1 on issue 27 by h...@furuvik.net: Exception thrown in
_parse_contact
http://code.google.com/p/goobook/issues/detail?id=27

(No comment was entered for this change.)

goo...@googlecode.com

unread,
Mar 7, 2011, 11:56:16 PM3/7/11
to goobook...@googlegroups.com

Comment #2 on issue 27 by scottand...@gmail.com: Exception thrown in
_parse_contact
http://code.google.com/p/goobook/issues/detail?id=27

I'm the maintainer for the Arch AUR package. I just updated goobook today
(and also the goobook-git package -- just a very minor adjustment to the
patch which shouldn't affect this issue), and I'm not experiencing the same
error. I have all the same versions listed above.
I do have a minimal .goobookrc:
filter_groupless_contacts: no
and a .netrc with my login info:
machine google.com
login my.e...@gmail.com
password mysecretpassword

Try reinstalling python-hcs_utils and then goobook-git, just to see if it
works.

Thanks!
Scott

goo...@googlecode.com

unread,
Mar 8, 2011, 8:19:47 AM3/8/11
to goobook...@googlegroups.com

Comment #3 on issue 27 by tlvince: Exception thrown in _parse_contact
http://code.google.com/p/goobook/issues/detail?id=27

That solved it! Many thanks Scott.

Reply all
Reply to author
Forward
0 new messages