Comments (5)
On Arch Linux I have seen this problem for a long time, and worked around it by downgrading to notmuch 0.34. I didn't run test suites though - I simply can't use alot because it comes up with a blank screen at all times. Now I'm running on a Mac where alot and notmuch are installed via brew (see versions below), and it's not trivial to downgrade.
For clarity and completeness, here are steps I take:
- Run
alot -n <mynotmuchconfig> -l ./alot.log
- The screen goes completely blank. I can use
o
to search,d
to leave the (invisible) result screen,q
to quit alot, but I must do it all blind. - I find this output at the top of the log file:
INFO:ui:setup gui in 256 colours
ERROR:ui:Traceback (most recent call last):
File "/opt/homebrew/Cellar/alot/0.10/libexec/lib/python3.9/site-packages/alot/buffers/search.py", line 63, in rebuild
self.result_count = self.dbman.count_messages(self.querystring)
File "/opt/homebrew/Cellar/alot/0.10/libexec/lib/python3.9/site-packages/alot/db/manager.py", line 254, in count_messages
db = Database(path=self.path, mode=Database.MODE.READ_ONLY)
File "/opt/homebrew/opt/notmuch/libexec/lib/python3.9/site-packages/notmuch2/_database.py", line 160, in __init__
raise errors.NotmuchError(ret, msg)
notmuch2.NoConfigError: Error: cannot load config file.
... nested exception details
Versions on the Mac:
➜ python3 --version
Python 3.9.13
➜ alot --version
0.10
➜ notmuch --version
notmuch 0.36
from alot.
FWIW, I went through the steps to downgrade notmuch and alot as far as required to make things work - perhaps this will be useful to someone who uses brew to install the two.
# find the commit id you want
> brew log notmuch
# insert commit id in the URL - this is notmuch 0.34.3
> wget https://raw.githubusercontent.com/Homebrew/homebrew-core/356895dfc9b9f9ce2e0f532868253ec7b3830efd/Formula/notmuch.rb
> brew uninstall --ignore-dependencies notmuch
> brew install ./notmuch.rb
> brew pin notmuch
# same job for alot
> brew log alot
# commit id for alot 0.9.1_2 here
> wget https://raw.githubusercontent.com/Homebrew/homebrew-core/8748606303fdafe1125e75fa0b95401ee3040dd4/Formula/alot.rb
> brew uninstall alot
> brew install --ignore-dependencies ./alot.rb
> brew pin alot
This combination of notmuch 0.34.3 and alot 0.9.1 works correctly on this Mac. I tried to downgrade only notmuch and leave alot alone, but that didn't help - a bit surprising because I think I was using 0.34 and 0.10 together on Linux (but I'd have to double-check in case that's important to anyone).
from alot.
I also ran into this issue, and was able to work around it by setting an environment variable to the location of the config file like so:
NOTMUCH_CONFIG=<path to custom config> alot
NixOS, alot 0.10, notmuch 0.37
from alot.
from alot.
Related Issues (20)
- Do not quit while the editor is open
- test_no_spawn_no_stdin_attached tests the build environment HOT 4
- move irc channel from freenode to libera HOT 3
- New release? HOT 1
- change colorscheme at runtime ? HOT 1
- [master/cffi] AttributeError: 'Thread' object has no attribute 'get_toplevel_messages' HOT 7
- `No matching distribution found for notmuch2>=0.30` HOT 3
- Contact completion with khard HOT 2
- Act on multiple threads in search mode HOT 3
- Local hostname in Message-ID HOT 4
- Unknown values were found in config
- please make `get_body_text` more robust HOT 1
- prompt before overwriting files when saving attachments HOT 1
- ` extract_body_part` can receive empty strings and throws exceptions when it does
- Crash while trying to attach word .doc file: module 'magic' has no attribute '_libraries HOT 3
- Sort oldest first by newest email in thread
- LookupError when displaying inbox with notmuch backend HOT 1
- Use Github Actions HOT 4
- would it be ok to convert installer to poetry ? HOT 3
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 alot.