Comment 12 for bug 1923727

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

With the config in place to hard-prefer gnome-keyring-daemon

git ubuntu throws this error:

$ git ubuntu submit --reviewer canonical-server-packageset-reviewers --target-branch ubuntu/hirsute-devel
Traceback (most recent call last):
  File "/snap/git-ubuntu/483/usr/bin/git-ubuntu", line 11, in <module>
    load_entry_point('gitubuntu==1.0', 'console_scripts', 'git-ubuntu')()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/gitubuntu/__main__.py", line 269, in main
    sys.exit(args.func(args))
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/gitubuntu/submit.py", line 75, in cli_main
    return main(
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/gitubuntu/submit.py", line 178, in main
    lp = launchpad_login_auth()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/gitubuntu/source_information.py", line 82, in launchpad_login_auth
    _LP_LOGIN_AUTH = LP.login_with('git-ubuntu-importer', _lp_service,
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 564, in login_with
    return cls._authorize_token_and_login(
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 370, in _authorize_token_and_login
    cached_credentials = credential_store.load(
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 336, in load
    return self.do_load(unique_key)
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 411, in do_load
    self._ensure_keyring_imported()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 379, in _ensure_keyring_imported
    import keyring
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/__init__.py", line 3, in <module>
    from .core import (
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/core.py", line 189, in <module>
    init_backend()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/core.py", line 97, in init_backend
    or load_config()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/core.py", line 176, in load_config
    return load_keyring(keyring_name)
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/core.py", line 137, in load_keyring
    class_.priority
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/util/properties.py", line 26, in __get__
    return self.fget.__get__(None, owner)()
  File "/snap/git-ubuntu/483/usr/lib/python3/dist-packages/keyring/backends/SecretService.py", line 30, in priority
    raise RuntimeError("SecretStorage required")
RuntimeError: SecretStorage required

That is very interesting!
Could it be that with 20.04 things were split and we just need to make sure that the snap has "python3-secretstorage"?
I don't see it in snap/snapcraft.yaml nor in setup.py

I tried to modify and test, but snapcraft fails my build of git-ubuntu :-/
Could you provide me a version with python3-secretstorage for a try?