{"record":{"id":"d69133e135e202f5","repo":"BerriAI/litellm","slug":"cryptography-package-is-required-for-oci-authentic","errorCode":null,"errorMessage":"cryptography package is required for OCI authentication. Please install it with: pip install cryptography","messagePattern":"cryptography package is required for OCI authentication\\. Please install it with: pip install cryptography","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"litellm/llms/oci/common_utils.py","lineNumber":35,"sourceCode":"    from cryptography.hazmat.primitives.asymmetric import padding, rsa\n\n    _CRYPTOGRAPHY_AVAILABLE = True\nexcept ImportError:\n    _CRYPTOGRAPHY_AVAILABLE = False\n\ntry:\n    from litellm._version import version as _litellm_version\nexcept ImportError:\n    _litellm_version = \"0.0.0\"\n\n\n# OCI GenAI REST API version — stable since service launch, unlikely to change\nOCI_API_VERSION: Final = \"20231130\"\n\n\ndef _require_cryptography() -> None:\n    if not _CRYPTOGRAPHY_AVAILABLE:\n        raise ImportError(\n            \"cryptography package is required for OCI authentication. Please install it with: pip install cryptography\"\n        )\n\n\nclass OCIError(BaseLLMException):\n    def __init__(\n        self,\n        status_code: int,\n        message: str,\n        headers: httpx.Headers | None = None,\n    ):\n        super().__init__(\n            status_code=status_code,\n            message=message,\n            headers=headers,\n        )\n\n","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/oci/common_utils.py#L17-L53","documentation":"Error \"cryptography package is required for OCI authentication. Please install it with: pip install cryptography\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/oci/common_utils.py:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the cryptography package: pip install cryptography."],"exampleFix":null,"handlingStrategy":null,"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"}