aider
aider copied to clipboard
Uncaught ImportError in utils.py line 43
Aider version: 0.86.2 Python version: 3.10.11 Platform: macOS-26.3-arm64-arm-64bit Python implementation: CPython Virtual environment: No OS: Darwin 25.3.0 (64bit) Git version: git version 2.50.1 (Apple Git-155)
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 60, in __init__
self._load()
File "exceptions.py", line 63, in _load
import litellm
File "__init__.py", line 1100, in <module>
from .utils import client
File "utils.py", line 43, in <module>
from openai.lib import _parsing, _pydantic
ImportError: cannot import name '_parsing' from 'openai.lib' (unknown location)
Thanks for trying aider and filing this issue.
This looks like a duplicate of #4904. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.
Note: A bot script made these updates to the issue.