{"id":398,"library":"google-auth-httplib2","title":"Google Auth Library for httplib2","description":"A transport for Google Authentication Library using httplib2. The current version is 0.3.0, released on 2025-12-12. The library has a regular release cadence with updates to support new Python versions.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/googleapis/google-auth-library-python-httplib2","tags":["google","authentication","httplib2","http"],"install":[{"cmd":"pip install google-auth-httplib2","lang":"bash","label":"Install google-auth-httplib2"}],"dependencies":[{"reason":"Required for authentication functionalities","package":"google-auth","optional":false},{"reason":"Required for HTTP functionalities","package":"httplib2","optional":false}],"imports":[{"note":"Ensure to use google_auth_httplib2 instead of older versions.","symbol":"AuthorizedHttp","correct":"from google_auth_httplib2 import AuthorizedHttp"}],"quickstart":{"code":"import os\nfrom google.auth.transport.requests import Request\nfrom google_auth_httplib2 import AuthorizedHttp\n\ncredentials = ... # Obtain your credentials here\nhttp = AuthorizedHttp(credentials)\n","lang":"python","description":"This quickstart shows you how to use AuthorizedHttp with Google Authentication Library."},"warnings":[{"fix":"Upgrade httplib2 to a compatible version.","message":"Requires httplib2 >= 0.19.0 and < 1.0.0 from version 0.2.1.","severity":"breaking","affected_versions":"<= 0.2.0"},{"fix":"Use the updated import paths.","message":"Older versions of this library may use deprecated imports.","severity":"deprecated","affected_versions":"<0.3.0"},{"fix":"Ensure the `requests` package is installed (e.g., `pip install requests`). If this library uses `google-auth` and its requests transport, confirm that `requests` is included in your project's dependencies or install `google-auth[requests]`.","message":"The `requests` library, a dependency for Google authentication transport, is missing, leading to `ImportError: No module named 'requests'`.","severity":"breaking","affected_versions":"*"},{"fix":"Ensure the 'requests' library is installed in the environment (e.g., 'pip install requests').","message":"The library failed with a ModuleNotFoundError for 'requests', indicating that the 'requests' package, a required dependency for 'google.auth.transport.requests', is not installed.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"search_vec":"'-12':22,23 '0.3.0':18 '2025':21 'auth':2 'authent':10,39 'cadenc':30 'current':15 'googl':1,9,38 'http':41 'httplib2':5,13,40 'librari':3,11,25 'new':35 'python':36 'regular':28 'releas':19,29 'support':34 'transport':7 'updat':32 'use':12 'version':16,37","created_at":"2026-03-28T11:14:55.017740+00:00","updated_at":"2026-04-16T15:18:52.331825+00:00","problems":[{"fix":"Ensure the package is installed using pip: `pip install google-auth-httplib2`. If on App Engine, ensure correct vendoring or environment configuration to resolve module path conflicts.","cause":"This error occurs when the 'google-auth-httplib2' package is not installed in the Python environment, or if there's an environment conflict (e.g., with Google App Engine's bundled 'google' module).","error":"ModuleNotFoundError: No module named 'google_auth_httplib2'"},{"fix":"Install the required transport library: `pip install google-auth-httplib2`.","cause":"The `google-api-python-client` library requires `google-auth-httplib2` to be installed when authenticating with `google-auth` credentials, as it provides the necessary HTTP transport.","error":"ValueError: Credentials from google.auth specified, but google-api-python-client is unable to use these credentials unless google-auth-httplib2 is installed. Please install google-auth-httplib2."},{"fix":"Ensure `google-auth-httplib2` is installed: `pip install google-auth-httplib2`. Also, verify `google-api-python-client` is up-to-date: `pip install --upgrade google-api-python-client`.","cause":"This error typically arises when using `google-auth` credentials with an older version of `google-api-python-client` or code expecting `oauth2client` style credentials, which had an `authorize` method. `google-auth-httplib2` acts as a bridge for `google-auth` credentials to work with `google-api-python-client`'s expectations.","error":"AttributeError: 'Credentials' object has no attribute 'authorize'"},{"fix":"When initializing `httplib2.Http`, pass the timeout argument, for example: `http = httplib2.Http(timeout=30)`. Then use this `http` instance when creating `google.auth.transport.httplib2.AuthorizedHttp`.","cause":"This message, often a warning, indicates that a per-request timeout was attempted with a version of `google-auth` that doesn't propagate it correctly to the `httplib2` transport. The timeout needs to be set directly on the `httplib2.Http` instance used by `google-auth-httplib2`.","error":"httplib2 transport does not support per-request timeout. Set the timeout when constructing the httplib2.Http instance."}],"ecosystem":"pypi","meta_description":null,"install_score":100,"quickstart_score":0,"quickstart_tag":"stale","pypi_latest":"0.4.2","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/googleapis/google-cloud-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/google-auth-httplib2/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["gcp","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-28","last_verified":"2026-08-27","next_check":"2026-07-28","install_tag":"verified"}}