File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 3434try :
3535 import urllib3 # type: ignore
3636 import urllib3 .exceptions # type: ignore
37+ from packaging import version # type: ignore
3738except ImportError as caught_exc : # pragma: NO COVER
3839 raise ImportError (
39- "The urllib3 library is not installed from please install the "
40- "urllib3 package to use the urllib3 transport."
40+ "Error: Missing 'urllib3' dependency for 'google-auth'."
41+ " The 'google-auth' library requires 'urllib3' for its default network transport."
42+ "\n "
43+ "Please install the necessary dependency using pip:\n "
44+ " pip install google-auth[urllib3]\n "
45+ "\n "
46+ "(Note: Using 'google-auth[urllib3]' ensures all dependencies are installed. We recommend running this in your virtual environment.)"
4147 ) from caught_exc
4248
43- from packaging import version # type: ignore
4449
4550from google .auth import environment_vars
4651from google .auth import exceptions
You can’t perform that action at this time.
0 commit comments