aider
aider copied to clipboard
SyntaxWarning: "invalid escape sequence '\.'" coming from `pypandoc` dependency
Issue
$ aider
/opt/homebrew/Cellar/aider/0.57.1/libexec/lib/python3.12/site-packages/pypandoc/pandoc_download.py:61: SyntaxWarning: invalid escape sequence '\.'
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.57.1
Main model: claude-3-5-sonnet-20240620 with diff edit format, prompt cache, infinite output
Weak model: claude-3-haiku-20240307
Git repo: .git with 33 files
Repo-map: using 1024 tokens, files refresh
Use /help <question> for help, run "aider --help" to see cmd line args
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
CONVENTIONS.md
>
This appears to be an issue on Python 3.12 for the pypandoc
library which aider uses. There's a patch in pypandoc where they fix this but it isn't released yet. aider's requirements.txt
is currently set to use pypandoc==1.13
which still has the syntax warning. I think Aider will need to do something like pypandoc>=1.14
once pypandoc releases to get rid of that warning.
Version and model info
Aider v0.57.1 (installed with playright
as well)
Python 3.12