Git Product home page Git Product logo

Comments (3)

micahellison avatar micahellison commented on June 4, 2024

Hi @aisneto, thanks for filing this, and for all the detailed info.

I don't know what's going on exactly, but based on the lines in that debug log, it's probably a problem with one of these two things:

  • The keyring library on your machine. Even when you first encrypt, jrnl checks to see if you have a saved password for that journal name. Maybe there's some prompt that it's waiting for elsewhere in your environment. For instance, on some Mac configurations, I believe there's a prompt that pops up asking you to unlock your password manager, if you haven't already done so. That might make sense on a fresh machine. I don't see any current issues about it hanging unexpectedly. It sounds like you can disable the keyring for Python applications like jrnl by setting the environment variable PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring which might help narrow this issue down.
  • A prompt from jrnl that's somehow being suppressed on your machine. Right after the keyring call, you should see a prompt that says: Enter password for journal 'default':. I'm not sure what would suppress this, though. We use rich's input method for this prompt and I don't see any current issues about it being suppressed or hanging. I'm pretty sure the message goes to STDERR, which you are clearly already able to view since that's where those debug messages came from.

Otherwise, I don't think it's a missing package. jrnl would crash with a ModuleNotFoundError instead of hanging if that happened.

It might help others running into this issue to know how you installed jrnl. Was it pipx, brew, or something else?

from jrnl.

aisneto avatar aisneto commented on June 4, 2024

Thank you very much for your response! I did not think of any issues regarding the keyring, assuming that the keyring integration would come after the encryption. As you pointed out, that was the actual problem.

I installed my jrnl.sh using pipx. To resolve the issue, I simply installed keyring through pipx as well (pipx install keyring), and now I can decrypt my journal normally. Thank you! I should have tried that sooner.

from jrnl.

micahellison avatar micahellison commented on June 4, 2024

You're welcome! I'm glad it worked out. Thanks for documenting your solution here.

from jrnl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.