{"record":{"id":"c5f8f4e439e1655b","repo":"BerriAI/litellm","slug":"missing-boto3-to-call-s3-run-pip-install-boto3","errorCode":null,"errorMessage":"Missing boto3 to call S3. Run 'pip install boto3'.","messagePattern":"Missing boto3 to call S3\\. Run 'pip install boto3'\\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"litellm/integrations/s3_v2.py","lineNumber":589,"sourceCode":"\n    async def _download_object_from_s3(self, s3_object_key: str) -> dict | None:\n        \"\"\"\n        Download and parse JSON object from S3.\n\n        Args:\n            s3_object_key: The S3 object key to download\n\n        Returns:\n            Optional[dict]: The parsed JSON object or None if not found/error\n        \"\"\"\n        try:\n            import hashlib\n\n            import requests\n            from botocore.auth import S3SigV4Auth\n            from botocore.awsrequest import AWSRequest\n        except ImportError:\n            raise ImportError(\"Missing boto3 to call S3. Run 'pip install boto3'.\")\n\n        try:\n            from litellm.litellm_core_utils.asyncify import asyncify\n\n            # Get AWS credentials\n            asyncified_get_credentials: Final = asyncify(self.get_credentials)\n            credentials: Final = await asyncified_get_credentials(\n                aws_access_key_id=self.s3_aws_access_key_id,\n                aws_secret_access_key=self.s3_aws_secret_access_key,\n                aws_session_token=self.s3_aws_session_token,\n                aws_region_name=self.s3_region_name,\n                aws_session_name=self.s3_aws_session_name,\n                aws_profile_name=self.s3_aws_profile_name,\n                aws_role_name=self.s3_aws_role_name,\n                aws_web_identity_token=self.s3_aws_web_identity_token,\n                aws_sts_endpoint=self.s3_aws_sts_endpoint,\n            )\n","sourceCodeStart":571,"sourceCodeEnd":607,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/integrations/s3_v2.py#L571-L607","documentation":"Dependency guard in the S3 v2 integration: importing botocore (shipped with boto3) failed, so the SigV4-signed S3 download path is unavailable; the message points at 'pip install boto3'.","triggerScenarios":"Enabling S3 (v2) logging without boto3 installed.","commonSituations":"Optional dependency missing in the container/venv running litellm.","solutions":["Install boto3 with: pip install boto3."],"exampleFix":"pip install boto3","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-23T08:17:48.524Z"}