[Python-modules-team] Bug#820905: python-keyring: ImportError: No module named Gnome

Dmitry Shachnev mitya57 at debian.org
Wed Apr 13 15:09:36 UTC 2016


Control: tags -1 +moreinfo

Hi Matthieu,

On Wed, Apr 13, 2016 at 04:38:26PM +0200, Matthieu Imbert wrote:
> Hi,
>
> python-keyring is broken, at least on my system
>
> $ python
> >>> import keyring
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/lib/python2.7/dist-packages/keyring/__init__.py", line 6, in <module>
>     from .core import (set_keyring, get_keyring, set_password, get_password,
>   File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 185, in <module>
>     init_backend()
>   File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 69, in init_backend
>     load_config()
>   File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 139, in load_config
>     return load_keyring(keyring_name)
>   File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 107, in load_keyring
>     class_ = _load_keyring_class(keyring_name)
>   File "/usr/lib/python2.7/dist-packages/keyring/core.py", line 97, in _load_keyring_class
>     __import__(module_name)
> ImportError: No module named Gnome

This is probably because you hardcoded Gnome in Keyring configuration file,
however that backend was removed in Keyring 8.x (moved to keyrings.alt package).

The recommeneded alternative is to install python-secretstorage and let Keyring
use the default secretstorage-based backend instead (which is compatible with
GNOME Keyring too).

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160413/0a2b53ba/attachment.sig>


More information about the Python-modules-team mailing list