BerriAI/litellm · error · ImportError
Missing botocore to use AWS SigV4 authentication. Run 'pip…
Error message
Missing botocore to use AWS SigV4 authentication. Run 'pip install boto3'.
What it means
The MCP client's AWS SigV4 auth hook could not import botocore.credentials; the sentinel ImportError (chained from the original) tells the user to install boto3, since SigV4 request signing is impossible without it.
Solutions
- Install boto3: pip install boto3.
- Alternatively, avoid AWS SigV4 authentication for this MCP server connection.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at litellm/experimental_mcp_client/client.py:122 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Authentication and authorization failures — expired tokens, bad credentials, and missing scopes.
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/d524df11f625a571.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/experimental_mcp_client/client.py:122
for every outgoing request, enabling per-request signature computation.
"""
requires_request_body = True
def __init__(
self,
aws_access_key_id: str | None = None,
aws_secret_access_key: str | None = None,
aws_session_token: str | None = None,
aws_region_name: str | None = None,
aws_service_name: str | None = None,
aws_role_name: str | None = None,
aws_session_name: str | None = None,
):
try:
from botocore.credentials import Credentials
except ImportError:
raise ImportError("Missing botocore to use AWS SigV4 authentication. Run 'pip install boto3'.")
self.service_name = aws_service_name or "bedrock-agentcore"
self.region_name = aws_region_name or "us-east-1"
# Note: os.environ/ prefixed values are already resolved by
# ProxyConfig._check_for_os_environ_vars() at config load time.
# Values arrive here as plain strings.
if aws_role_name:
self.credentials = self._assume_role(
aws_role_name=aws_role_name,
aws_session_name=aws_session_name,
aws_access_key_id=aws_access_key_id,
aws_secret_access_key=aws_secret_access_key,
aws_session_token=aws_session_token,
aws_region_name=self.region_name,
)
elif aws_access_key_id and aws_secret_access_key:
self.credentials = Credentials(
access_key=aws_access_key_id,
secret_key=aws_secret_access_key,View on GitHub (pinned to 77b7c6c40c)