Giter Club home page Giter Club logo

Comments (15)

oliversturm avatar oliversturm commented on August 25, 2024

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:

  1. Run alot -n <mynotmuchconfig> -l ./alot.log
  2. 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.
  3. 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.

oliversturm avatar oliversturm commented on August 25, 2024

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.

jaquer avatar jaquer commented on August 25, 2024

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.

pazz avatar pazz commented on August 25, 2024

from alot.

GuillaumeSeren avatar GuillaumeSeren commented on August 25, 2024

Hello there,
we're having this issue on gentoo as well (https://bugs.gentoo.org/874372).
I am pretty sure the test went fine when I pushed this new release.

from alot.

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.