astroid icon indicating copy to clipboard operation
astroid copied to clipboard

error: no notmuch config file found.

Open lucc opened this issue 2 years ago • 1 comments

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

lucc avatar Dec 03 '21 13:12 lucc

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.

gauteh avatar Dec 03 '21 13:12 gauteh