This repository was archived by the owner on Mar 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717from __future__ import absolute_import
1818
19- import grpc
19+ try :
20+ import grpc
21+ except ImportError : # pragma: NO COVER
22+ raise ImportError (
23+ 'gRPC is not installed, please install the grpcio package to use the '
24+ 'gRPC transport.' )
2025import six
2126
2227
Original file line number Diff line number Diff line change 1818
1919import logging
2020
21-
22- import requests
21+ try :
22+ import requests
23+ except ImportError : # pragma: NO COVER
24+ raise ImportError (
25+ 'The requests library is not installed, please install the requests '
26+ 'package to use the requests transport.' )
2327import requests .exceptions
2428
2529from google .auth import exceptions
Original file line number Diff line number Diff line change 3030except ImportError : # pragma: NO COVER
3131 certifi = None
3232
33- import urllib3
33+ try :
34+ import urllib3
35+ except ImportError : # pragma: NO COVER
36+ raise ImportError (
37+ 'The urllib3 library is not installed, please install the urllib3 '
38+ 'package to use the urllib3 transport.' )
3439import urllib3 .exceptions
3540
3641from google .auth import exceptions
Original file line number Diff line number Diff line change 2727
2828import json
2929
30- import requests_oauthlib
30+ try :
31+ import requests_oauthlib
32+ except ImportError : # pragma: NO COVER
33+ raise ImportError (
34+ 'The requests-oauthlib library is not installed, please install the '
35+ 'requests-oauthlib package to use google.oauth2.oauthlib.' )
3136
3237import google .oauth2 .credentials
3338
You can’t perform that action at this time.
0 commit comments