python-samples icon indicating copy to clipboard operation
python-samples copied to clipboard

ValueError: Client secrets must be for a web or installed app

Open matt-f-tsu opened this issue 4 years ago • 0 comments

Expected Behavior

program works, prints list of files in google drive

Actual Behavior

Traceback (most recent call last): File "/Users/mattf/googledocs-python/./quick2.py", line 65, in main() File "/Users/mattf/googledocs-python/./quick2.py", line 43, in main flow = InstalledAppFlow.from_client_secrets_file( File "/Users/mattf/googledocs-venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 206, in from_client_secrets_file return cls.from_client_config(client_config, scopes=scopes, **kwargs) File "/Users/mattf/googledocs-venv/lib/python3.9/site-packages/google_auth_oauthlib/flow.py", line 164, in from_client_config raise ValueError("Client secrets must be for a web or installed app.") ValueError: Client secrets must be for a web or installed app.

Steps to Reproduce the Problem

  1. Follow the quickstart guide (https://developers.google.com/drive/api/v3/quickstart/python)

Specifications

  • Python version (python --version)
  • OS (Mac/Linux/Windows)

matt-f-tsu avatar Jul 19 '21 19:07 matt-f-tsu