SHA256
5
0
forked from pool/jrnl
Files
jrnl/keyring_note.md
Malcolm Lewis 3653a6432b Accepting request 1175899 from home:malcolmlewis:branches:utilities
- Updated to version 4.1:
  + Add Python 3.12 support, (gh#jrnl-org/jrnl#1761).
  + Set new required build fields in the ReadTheDocs config file,
    (gh#jrnl-org/jrnl#1803).
  + Replace flake8 and isort with ruff linter and add black --check
    to linting step, (gh#jrnl-org/jrnl#1763).
  + Add note about messages going to stderr and the implication for
    piping, (gh#jrnl-org/jrnl#1768).
- Drop requires on ansiwrap.
- Add note about using the keyring to encrypt, (boo#1223003,
  gh#jrnl-org/jrnl#1883 and gh#marcus-h/python-keyring-keyutils#1).

OBS-URL: https://build.opensuse.org/request/show/1175899
OBS-URL: https://build.opensuse.org/package/show/utilities/jrnl?expand=0&rev=3
2024-06-10 13:15:04 +00:00

1.2 KiB

Using jrnl with encryption and keyring

If your reading this, your likely running osc on your system and seeing the following error AttributeError: '_PasswordRetriever' object has no attribute 'encode'

This is an upstream issue with python3{ver}-keyring-keyutils with an upstream report Ref 3 created in September 2022 with no action at this time.

Please use either of the following workarounds.

Workaround 1

Drop into the python3 interpretor by running python3 and run;

import keyring
journal_name = "default" # Should match name in  `jrnl --list`
password = "mypassword" # Change to your journal's password
keyring.set_password("jrnl", journal_name, password)

exit()

Workaround 2

Uninstall python3{ver}-keyring-keyutils, create your password in the keyring for jrnl, then re-install python3{ver}-keyring-keyutils.


Ref 1: openSUSE Bug Report (boo#1223003)

Ref 2: Upstream Bug (gh#jrnl-org/jrnl#1883)

Ref 3: python-keyring-keyutils (gh#marcus-h/python-keyring-keyutils#1)