afewmail / afew

an initial tagging script for notmuch mail
ISC License
325 stars 98 forks source link

Fix for installing on MacOS #331

Open mms-pl opened 1 year ago

mms-pl commented 1 year ago

Hey.

Notmuch now comes with python3 bindings by default. No need for --with-python3 (which no longer works). I have 0 knowledge of python, but I needed to force a symlink.

$ pwd
> /~/.local/lib/python3.10/site-packages
$ ln -s /opt/homebrew/opt/notmuch/libexec/lib/python3.11/site-packages/notmuch2 notmuch

and now it starts, but when trying afew --tag --new I get

AttributeError: module 'notmuch' has no attribute 'Query'
GuillaumeSeren commented 1 year ago

Hello @michalsapka , can you give details version of afew + python used ?

mms-pl commented 1 week ago

Hey, sorry for such long delay.

I'm using Python 3.13.0. Somehow, I managed to install the software via pipx but now I see

ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/configparser.py). Did you mean: 'RawConfigParser'?