Keyring/DBus doesn't work with mate-keyring

Bug #1270906 reported by L. Böger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wxBanker
Triaged
Medium
Unassigned

Bug Description

In a MATE desktop environment, there is by default no gnome-keyring running but the corresponding mate-keyring. The python keyring module doesn't seem to work with mate-keyring: When requesting the password for Mint-Integration (mint/kring.py, line 30), an error occurs with the following stacktrace:

Traceback (most recent call last):
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 539, in onConfigureButton
    self.ConfigureCurrentAccount()
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountlistctrl.py", line 317, in ConfigureCurrentAccount
    dlg = accountconfigdialog.AccountConfigDialog(self, self.GetCurrentAccount(), tab)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountconfigdialog.py", line 289, in __init__
    self.mintPanel = MintConfigPanel(self.notebook, account)
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/accountconfigdialog.py", line 82, in __init__
    if keyring.get_credentials() is not None:
  File "/home/mib/ls1/boeger/scratch/prv/wxbanker-0.9.1/wxbanker/mint/kring.py", line 29, in get_credentials
    creds = keyring.get_password(self._name, "wxbanker")
  File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 37, in get_password
    return _keyring_backend.get_password(service_name, username)
  File "/usr/lib/python2.7/dist-packages/keyring/backend.py", line 197, in get_password
    _, session = service_iface.OpenSession("plain", "")
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/dist-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

The dialog to edit currency, recurring transactions or mint integration doesn't pop up. This is for wxbanker 0.9.1, running on Linux Mint with mate-keyring 1.3.0-1, python-dbus 1.0.0-1 and python-keyring 0.9.2-0.

Revision history for this message
Michael Rooney (mrooney) wrote :

Thanks for the report! Is this stock Linux Mint and if so, what version? Just let me know what I need to install the reproduce this and I should be able to fix it.

Changed in wxbanker:
status: New → Incomplete
Revision history for this message
L. Böger (lubgr) wrote :

Yes, it's Linux Mint 13, kernel 3.2.0-58, 64 bit, and the MATE desktop installed. If you install gnome-keyring in addition to mate-keyring, it works, otherwise it crashes.

Revision history for this message
Michael Rooney (mrooney) wrote :

Okay, thanks! Do you think a reasonable fix would be to just add gnome-keyring to the wxBanker depends, if that's all it takes to work with your system?

Revision history for this message
L. Böger (lubgr) wrote :

My understanding is that the python keyring utility uses the keyring of the installed desktop/system, such that adding gnome-keyring to the wxBanker dependencies would enforce gnome-keyring being installed on a KDE system that originally used KDEKWallet. However, I don't know a better solution than adding the dependency.

Revision history for this message
Michael Rooney (mrooney) wrote :

Okay, it looks like python-keyring supports KDEWallet but not mate-keyring. Instead of having a dependency for KDE users on gnome-wallet, I'll just see if I can properly support mate-wallet.

Changed in wxbanker:
importance: Undecided → Medium
status: Incomplete → Triaged
Michael Rooney (mrooney)
Changed in wxbanker:
milestone: none → 0.9.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.