Comments (3)
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'sinput
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.
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.
You're welcome! I'm glad it worked out. Thanks for documenting your solution here.
from jrnl.
Related Issues (20)
- DeprecationWarning from parsedatetime when running tests
- Update from `4.0.1_4` to `4.0.1_5` broke something with colors HOT 3
- Crash in v4.0.1_5 (Homebrew) HOT 2
- Application failing to start in MacOS after installing 4.1 in HomeBrew HOT 9
- Maintainers on vacation December 2023
- Don't include ANSI codes when output is non-interactive HOT 4
- Ignore color when used in a pipeline HOT 1
- How can I set macOS TextEdit as external editor? HOT 3
- Strange behavior for the "-on" flag HOT 4
- Add 1password support for saving and retrieving jrnl passwords
- Linewrap works incorrectly for mixed CJK and English text HOT 1
- Feature: Import from org-journal
- How to update jrnl from the version 2.8.4 to the last one (4.1) HOT 2
- Bug Report HOT 1
- Feature Report Add a config option to output any new entries to the terminal after submission.
- Tests failing on develop branch starting with pytest-bdd 7.1.2 HOT 4
- -contains doesn't accept multiple search terms, doesn't work with -and HOT 2
- Tests are failing with pytest 8.1
- [Bug Report] AttributeError: '_PasswordRetriever' object has no attribute 'encode' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jrnl.