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: Open
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: 2025-11-17 00:13 UTC (History)
2 users (show)

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


Attachments

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.