## TL;DR

The issue may have been a version compatibility issue of google-api-python-client library with other libraries like - google-auth - google-auth-httplib2 - google-auth-oauthlib You just need to make sure that the version of your google-api-python-client supports the versions you have installed to its dependency libraries. You can view the full change log of google-api-python-client library here References: google-api-python-client change log https://googleapis.github.io/google-api-python-client/docs/auth.html https://googleapis.github.io/google-api-python-client/docs/oauth.html google-api-python-client google_auth_oauthlib.flow module Github post similar issue

## Fix

1. The issue may have been a version compatibility issue of google-api-python-client library with other libraries like - google-auth - google-auth-httplib2 - google-auth-oauthlib You just need to make sure that the version of your google-api-python-client supports the versions you have installed to its dependency libraries.
   Expected: You get the expected result; the problem is gone.
2. You can view the full change log of google-api-python-client library here References: google-api-python-client change log https://googleapis.github.io/google-api-python-client/docs/auth.html https://googleapis.github.io/google-api-python-client/docs/oauth.html google-api-python-client google_auth_oauthlib.flow module Github post similar issue
   Expected: You get the expected result; the problem is gone.

## When to use

- You are setting up or using this 【Google OAuth】AttributeError feature.
- The symptom matches: 'InstalledAppFlow' object has no attribute 'run_console'.

## When NOT to use

- Unrelated 【Google OAuth】AttributeError issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against 【Google OAuth】AttributeError.

## Variant phrasings

### 'InstalledAppFlow' object has no attribute 'run_console'

## Why it happens

Stack Overflow question (score 21, has accepted answer): I wrote a Python script(Google_add.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error? ・Google_add.py (Excerpt） ``` PATH = '/opt/Google/credentials.json' CLIENT_SECRETS [your value] credentials [your value] #If there are credentials if os.path.exists(PATH): credentials [your value] path = PATH, scopes = SCOPES) #If there are no (valid) credentials available if not credentials or not credentials.valid: if credentials and credentials.expired and credentials.refresh_token - credentials.refresh(Request()) else: FLOW = flow.InstalledAppFlow.from_client_secrets_file( client_secrets_file [your value] scopes = SCOPES

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.