You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Silent dependency on urllib3 in _aiohttp_requests #707
Before aiohttp_requests we didn't have urllib3 or requests as hard dependencies and assumed that folks would install one or both as needed after seeing one of these error messages:
"The urllib3 library is not installed, please install the "
"urllib3 package to use the urllib3 transport."
),
caught_exc,
)
Since _aiohttp_requests has a hard dependency on both I think we should just add it to the aiohttp extra to reduce friction. I'll open a PR adjusting the extras. After that change if you do pip install google-auth[aiohttp] it should pull in all the required dependencies.
Activity
asafflesch commentedon Feb 17, 2021
(I see there's also a silent dependency there on
requests- maybe you just intend for the exception on requests not being installed to go off first?)busunkim96 commentedon Feb 18, 2021
Hey @FaQA,
Before aiohttp_requests we didn't have
urllib3orrequestsas hard dependencies and assumed that folks would install one or both as needed after seeing one of these error messages:google-auth-library-python/google/auth/transport/requests.py
Lines 25 to 35 in 65074d3
google-auth-library-python/google/auth/transport/urllib3.py
Lines 34 to 45 in 65074d3
Since
_aiohttp_requestshas a hard dependency on both I think we should just add it to theaiohttpextra to reduce friction. I'll open a PR adjusting the extras. After that change if you dopip install google-auth[aiohttp]it should pull in all the required dependencies.google-auth-library-python/setup.py
Lines 32 to 35 in 65074d3
parthea commentedon May 19, 2021
@busunkim96 Please can you take a look?
fix(dependencies): add urllib3 and requests to aiohttp extra (#755)