Follow command execs aider without issues: `aider --model deepseek/deepseek-chat --watch-files --no-auto-commits` Problems appear when you try to interact with the agent, it crashes immediately you press enter to send the prompt to the llms. F crash trace: ``` Aider version: 0.86.1 Python version: 3.11.13 Platform: FreeBSD-14.3-RELEASE-p3-amd64-64bit-ELF Python implementation: CPython Virtual environment: No OS: FreeBSD 14.3-RELEASE-p3 (64bit) Git version: git version 2.51.0 An uncaught exception occurred: ``` Traceback (most recent call last): File "aider", line 8, in <module> sys.exit(main()) ^^^^^^ File "main.py", line 1162, in main coder.run() File "base_coder.py", line 887, in run self.run_one(user_message, preproc) File "base_coder.py", line 934, in run_one list(self.send_message(message)) File "base_coder.py", line 1451, in send_message litellm_ex = LiteLLMExceptions() ^^^^^^^^^^^^^^^^^^^ File "exceptions.py", line 58, in __init__ self._load() File "exceptions.py", line 66, in _load raise ValueError(f"{var} is in litellm but not in aider's exceptions list") ValueError: ImageFetchError is in litellm but not in aider's exceptions list ``` Please consider reporting this bug to help improve aider! ^CError in sys.excepthook:epseek-chat error in your browser? (Y/n) Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/aider/report.py", line 151, in exception_handler report_github_issue(issue_text, title=title) File "/usr/local/lib/python3.11/site-packages/aider/report.py", line 71, in report_github_issue confirmation = input(prompt).strip().lower() ^^^^^^^^^^^^^ KeyboardInterrupt Original exception was: Traceback (most recent call last): File "/usr/local/bin/aider", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/local/lib/python3.11/site-packages/aider/main.py", line 1162, in main coder.run() File "/usr/local/lib/python3.11/site-packages/aider/coders/base_coder.py", line 887, in run self.run_one(user_message, preproc) File "/usr/local/lib/python3.11/site-packages/aider/coders/base_coder.py", line 934, in run_one list(self.send_message(message)) File "/usr/local/lib/python3.11/site-packages/aider/coders/base_coder.py", line 1451, in send_message litellm_ex = LiteLLMExceptions() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/aider/exceptions.py", line 58, in __init__ self._load() File "/usr/local/lib/python3.11/site-packages/aider/exceptions.py", line 66, in _load raise ValueError(f"{var} is in litellm but not in aider's exceptions list") ValueError: ImageFetchError is in litellm but not in aider's exceptions list ```
aider has strict compatibility requirements, and the in-ports dependency is newer than what aider supports. We need to wait for a new version of aider that supports py-litellm 1.79.1. py311-litellm-1.75.8 is the last working version, you can revert to that, rebuild the port, assuming you have no other blocking dependencies on it.
Created attachment 270278 [details] update to aider 0.86.2 Kindda fixed it: * update to 0.86.2 - adds missing exceptions from litellm (another one added through patch, it's already in the tree, but no released version exists); * add option to build with https://github.com/Aider-AI/aider/pull/3429 (support repo map for non-git trees); * regenerate patches; * change deps to newer tree-sitter023 (and tree-sitter-language-pack for grep-ast). DO NOT COMMIT! has fixes to other ports (textproc/grep-ast), those fixes might break something else in ports (works for me).
Volodymyr thanks for your patch efforts. I removed this port, the way it is developed & packaged upstream means that it doesn't work well with FreeBSD ports tree - too many dependencies that are too often out of date, or incompatible. I looked into a community-maintained fork but it is also not complete and has similar issues for packaging. Either continue to use it locally via pip, or consider misc/claude-code or devel/maki which don't have these problems.