Bug 290772 - misc/py-aider-chat: entering a prompt to py311-aider_chat-0.86.1 crashes Aider AI.
Summary: misc/py-aider-chat: entering a prompt to py311-aider_chat-0.86.1 crashes Aide...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dave Cottlehuber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-03 14:59 UTC by Jose Caceres
Modified: 2026-05-11 09:54 UTC (History)
3 users (show)

See Also:
linimon: maintainer-feedback? (dch)


Attachments
update to aider 0.86.2 (12.95 KB, patch)
2026-04-30 15:44 UTC, Volodymyr Kostyrko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Caceres 2025-11-03 14:59:12 UTC
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
```
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2025-11-17 00:13:34 UTC
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.
Comment 2 Volodymyr Kostyrko 2026-04-30 15:44:17 UTC
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).
Comment 3 Dave Cottlehuber freebsd_committer freebsd_triage 2026-05-11 09:54:44 UTC
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.