GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pip install google-auth did not install requests dependency · Issue #1069 · googleapis/google-auth-library-python

This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

pip install google-auth did not install requests dependency #1069

Copy link
Copy link
Closed
Closed
pip install google-auth did not install requests dependency#1069
Copy link
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@sterlinb
sterlinb
opened on Jun 28, 2022
Issue body actions

Once recognized, this was trivially mitigated by running pip install requests, so no support is needed.

Environment details

  • OS: Linux experimental-1 5.10.0-14-cloud-amd64 Internal transport discussion #1 SMP Debian 5.10.113-1 (2022-04-29) x86_64 (Cloud Compute Engine instance)
  • Python version: Python 3.9.2
  • pip version: pip 20.3.4
  • google-auth version: 2.8.0

Steps to reproduce

  1. Setup new clean python environment:
sudo apt update
sudo apt install python3 python3-dev python3-venv
sudo apt-get install wget
wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
python3 -m venv env
source env/bin/activate
pip install --upgrade google-auth
  1. Run python and try to import;
python3
>>> import google.oauth2.id_token
  1. Exception results:
Traceback (most recent call last):
  File "/home/bramsterling/tokenexpt/env/lib/python3.9/site-packages/google/auth/transport/requests.py", line 26, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bramsterling/tokenexpt/env/lib/python3.9/site-packages/google/oauth2/id_token.py", line 67, in <module>
    import google.auth.transport.requests
  File "/home/bramsterling/tokenexpt/env/lib/python3.9/site-packages/google/auth/transport/requests.py", line 30, in <module>
    six.raise_from(
  File "<string>", line 3, in raise_from
ImportError: The requests library is not installed, please install the requests package to use the requests transport.

Activity

  1. yoshi-automation
    added
    triage meI really want to be triaged.
    on Jun 29, 2022
  2. sai-sunder-s
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    triage meI really want to be triaged.
    on Jul 14, 2022
  3. sai-sunder-s commented on Jul 14, 2022

    @sai-sunder-s
    sai-sunder-s
    on Jul 14, 2022
    Contributor
    More actions

    Thank you for raising the issue. We will check if requests was not added by default for some reason and add to dependencies list if it was just missed.

  4. clundin25 commented on Jul 21, 2022

    @clundin25
    clundin25
    on Jul 21, 2022
    Contributor
    More actions

    It seems reasonable to me to add requests to the default setup.py dependencies. Alternatively we could add it as an extra similar to aiohttp.

  5. clundin25
    added a commit that references this issue on Sep 1, 2022

    chore: Add requests as an extra dependency.

    7838ff7
  6. clundin25
    added a commit that references this issue on Sep 20, 2022

    chore: Add requests as an extra dependency.

    09a00ff
  7. clundin25
    added a commit that references this issue on Oct 14, 2022

    chore: Add requests as an extra dependency.

    650e203
  8. clundin25
    added a commit that references this issue on Dec 2, 2022

    chore: Add requests as an extra dependency.

    fdbe7ce
  9. clundin25
    closed this as completedin e728176on Dec 2, 2022
  10. ktdreyer
    added a commit that references this issue on Feb 21, 2024

    chore: Add requests as an extra dependency. (googleapis#1137)

    e728176
  11. parthea
    added a commit that references this issue on Nov 26, 2025

    chore: Add requests as an extra dependency. (#1137)

    ee0ce8d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.