Issue 34 in goobook: Unable to query due to keyring/DBus regression

3 views
Skip to first unread message

goo...@googlecode.com

unread,
Nov 4, 2012, 9:10:45 PM11/4/12
to goobook...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 34 by ivansich...@gmail.com: Unable to query due to keyring/DBus
regression
http://code.google.com/p/goobook/issues/detail?id=34

From a goobook install from git on archlinux:

I can't query the address database after upgrading dbus-python to version
1.1.

That happens in config.py (see patch attached). The problem arises when
config.email is defined, config.password is not and there is no keyring
service running. Before dbus-python 1.1, goobook would run fine even when
importing keyring and not having a keyring service running. Since the
upgrade, it breaks with the following traceback:

goobook query asd
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 79,
in main
config = goobook.config.read_config(args.config)
File "/usr/lib/python2.7/site-packages/goobook/config.py", line 71, in
read_config
config.password = keyring.get_password('gmail', config.email)
File "/usr/lib/python2.7/site-packages/keyring/core.py", line 37, in
get_password
return _keyring_backend.get_password(service_name, username)
File "/usr/lib/python2.7/site-packages/keyring/backend.py", line 196, in
get_password
_, session = service_iface.OpenSession("plain", "")
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in
__call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownMethod:
Method "OpenSession" with signature "ss" on
interface "org.freedesktop.Secret.Service" doesn't exist

See related bugs:
https://answers.launchpad.net/polly/+question/195167
https://bugs.freedesktop.org/show_bug.cgi?id=50370

The attached patch is a working, but ugly, solution, it would be better to
catch the exact exception or force using netrc for authentication.


Attachments:
0001-Workaround-for-dbus-python-regression.patch 718 bytes

goo...@googlecode.com

unread,
Nov 10, 2012, 7:05:36 AM11/10/12
to goobook...@googlegroups.com
Updates:
Status: Fixed

Comment #1 on issue 34 by h...@furuvik.net: Unable to query due to
keyring/DBus regression
http://code.google.com/p/goobook/issues/detail?id=34

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages