Nevermind. I have asked the upstream developer of python-keyring, and he
says that only unicode passwords are supported [1]. Here launchpadlib is
trying to save a bytes password, which is a bug. So I am reassigning
this to python3-launchpadlib.
Looking at launchpadlib source, the password is automatically generated
and then encoded with base64. I am not sure if base64 is still needed
(any unicode characters should work; if no, please report a bug and
specify the backend used). But in any case, you can easily convert bytes
to unicode by using .decode('latin-1') (and then .encode('latin-1') back
when reading the password from the keyring).
[1]: https://github.com/jaraco/keyring/issues/275
** Bug watch added: github.com/jaraco/keyring/issues #275
https://github.com/jaraco/keyring/issues/275
** Package changed: python-keyring (Ubuntu) => python-launchpadlib
(Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1685547
Title:
Crash in python3 with the 'file' backend
To manage notifications about this bug go to:
https://bugs.launchpad.net/ka/+bug/1685547/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs