aider icon indicating copy to clipboard operation
aider copied to clipboard

Uncaught ImportError in llm.py line 56

Open ghost opened this issue 2 weeks ago • 0 comments

Aider version: 0.86.2.dev+less Python version: 3.12.12 Platform: macOS-26.1-arm64-arm-64bit Python implementation: CPython Virtual environment: Yes OS: Darwin 25.1.0 (64bit) Git version: git version 2.51.2

An uncaught exception occurred:

Traceback (most recent call last):
  File "aider", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 822, in main
    main_model = models.Model(
                 ^^^^^^^^^^^^^
  File "models.py", line 337, in __init__
    res = self.validate_environment()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "models.py", line 728, in validate_environment
    res = litellm.validate_environment(model)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "llm.py", line 28, in __getattr__
    return getattr(self._lazy_module, name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "llm.py", line 56, in __getattr__
    raise ImportError(
ImportError: litellm is not installed; functionality that requires it (e.g., pricing lookup or non‑Ollama providers) is disabled.

ghost avatar Nov 09 '25 01:11 ghost