astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

error: no notmuch config file found. #714

Open lucc opened 2 years ago

lucc commented 2 years ago

I am using notmuch 0.34.1 and astroid 0.16.0 from the NixOS unstable branch. When I start astroid I get the following error:

[14:06:50] [0x00007f74f3b4cb40] [M] [debug] log: stdout: yes
[14:06:50] [0x00007f74f3b4cb40] [M] [info] log: level: info
[14:06:50] [0x00007f74f3b4cb40] [M] [info] date: init.
[14:06:50] [0x00007f74f3b4cb40] [M] [error] db: failed to open database, please check the manual if everything is set up correctly: db: error: no notmuch config file found.

The default location of the notmuch config file was changed upstream. It might be since notmuch 0.32 but the release notes are not precice ablout it. Anyway the current manpage describes the new config location: https://notmuchmail.org/manpages/notmuch-config-1/

As a workaround I can set NOTMUCH_CONFIG but it feels strange to set this variable to the default location of the config file :)

NOTMUCH_CONFIG=~/.config/notmuch/default/config astroid
gauteh commented 2 years ago

You can also specify it in the astroid config.

On Fri, Dec 3, 2021 at 2:12 PM Lucas Hoffmann @.***> wrote:

I am using notmuch 0.34.1 and astroid 0.16.0 from the NixOS unstable branch. When I start astroid I get the following error:

[14:06:50] [0x00007f74f3b4cb40] [M] [debug] log: stdout: yes [14:06:50] [0x00007f74f3b4cb40] [M] [info] log: level: info [14:06:50] [0x00007f74f3b4cb40] [M] [info] date: init. [14:06:50] [0x00007f74f3b4cb40] [M] [error] db: failed to open database, please check the manual if everything is set up correctly: db: error: no notmuch config file found.

The default location of the notmuch config file was changed upstream. It might be since notmuch 0.32 https://notmuchmail.org/news/release-0.32/ but the release notes are not precice ablout it. Anyway the current manpage describes the new config location: https://notmuchmail.org/manpages/notmuch-config-1/

As a workaround I can set NOTMUCH_CONFIG but it feels strange to set this variable to the default location of the config file :)

NOTMUCH_CONFIG=~/.config/notmuch/default/config astroid

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/astroidmail/astroid/issues/714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN364MJ7WZTB2AR4ZBSF3UPC64BANCNFSM5JJVGTQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.