Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection to gnome-keyring fails on Debian Buster #1000

Closed
Silvanoc opened this issue May 17, 2019 · 4 comments
Closed

Connection to gnome-keyring fails on Debian Buster #1000

Silvanoc opened this issue May 17, 2019 · 4 comments
Labels
Keyrings uses a keyring like kdewallet, SecretService, GnomeKeyring

Comments

@Silvanoc
Copy link

I've been having similar issues to those reported in #509, #534 and #587: BIT cannot connect to the GNOME keyring and I'm observing pretty much the same issues being reported in the mentioned tickets.

After some debugging I've been able to diagnose the root-cause:

  1. common/tools.py is comparing (the keyring backend that could be successfully loaded previously) with the one reported by python-keyring
  2. In my case python-keyring returns the chainer backend and therefore doesn't match the previous test.

If I add an additional test, it works (for me):

elif isinstance(keyring.get_keyring(), keyring.backends.chainer.ChainerBackend):
    found_keyring = False
    for chained_backend in keyring.get_keyring().backends:                                    
        for backend in backends:                                        
            if isinstance(chained_backend, backend):                    
                logger.debug("Found appropriate keyring'{}'".format(str(backend)))              
                found_keyring = True                               
    if found_keyring:                                                        
        return True
@KsmoinO
Copy link

KsmoinO commented Aug 6, 2019

I had the same issue and solved it by creating this file ~/.config/python_keyring/keyringrc.cfg

[backend]
default-keyring=keyring.backends.SecretService.Keyring

@buhtz
Copy link
Member

buhtz commented Sep 26, 2022

@Silvanoc There is a new forming maintaining team and we do review all issues. Is this problem still relevant for you, can you reproduce it with a newer or the latest release? Did you find a solution?

Tag: Bug, maybe Distro, External (Keyring)

@Silvanoc
Copy link
Author

I don't have Buster anymore, therefore I cannot easily reproduce it.

@aryoda aryoda added the Keyrings uses a keyring like kdewallet, SecretService, GnomeKeyring label Feb 24, 2023
@aryoda
Copy link
Contributor

aryoda commented Feb 24, 2023

I think I understand the problem now when re-visiting this issue and reading this sentence:

In my case python-keyring returns the chainer backend and therefore doesn't match the previous test.

This is related to #1330 which explains the problem in more detail and proposes a solution...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Keyrings uses a keyring like kdewallet, SecretService, GnomeKeyring
Projects
None yet
Development

No branches or pull requests

4 participants