Skip to content

Uncaught ImportError in llm.py line 56 #4632

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions