{"record":{"id":"c29220d6851495a0","repo":"BerriAI/litellm","slug":"backoff-is-not-installed-please-install-it-via-p","errorCode":null,"errorMessage":"backoff is not installed. Please install it via 'pip install backoff'","messagePattern":"backoff is not installed\\. Please install it via 'pip install backoff'","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"litellm/proxy/utils.py","lineNumber":67,"sourceCode":"    from litellm_enterprise.enterprise_callbacks.send_emails.resend_email import (\n        ResendEmailLogger,\n    )\n    from litellm_enterprise.enterprise_callbacks.send_emails.sendgrid_email import (\n        SendGridEmailLogger,\n    )\n    from litellm_enterprise.enterprise_callbacks.send_emails.smtp_email import (\n        SMTPEmailLogger,\n    )\nexcept ImportError:\n    BaseEmailLogger = None\n    SendGridEmailLogger = None\n    SMTPEmailLogger = None\n    ResendEmailLogger = None\n\ntry:\n    import backoff\nexcept ImportError:\n    raise ImportError(\"backoff is not installed. Please install it via 'pip install backoff'\")\n\nfrom fastapi import HTTPException, status\n\nimport litellm\nimport litellm.litellm_core_utils\nimport litellm.litellm_core_utils.litellm_logging\nfrom litellm import (\n    EmbeddingResponse,\n    ImageResponse,\n    ModelResponse,\n    ModelResponseStream,\n    Router,\n)\nfrom litellm._logging import _redact_string, verbose_proxy_logger\nfrom litellm._service_logger import ServiceLogging, ServiceTypes\nfrom litellm.caching.caching import DualCache, RedisCache\nfrom litellm.caching.dual_cache import LimitedSizeOrderedDict\nfrom litellm.exceptions import RejectedRequestError, SensitiveDataRouteException","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/utils.py#L49-L85","documentation":"Module-level import guard in litellm/proxy/utils.py: the optional 'backoff' dependency is not installed in the environment. Email-sending callbacks rely on it for retry/backoff, so the proxy module refuses to load at import time until 'pip install backoff' is run.","triggerScenarios":"Thrown at litellm/proxy/utils.py:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the backoff package: pip install backoff."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}