# google-auth-oauthlib removed InstalledAppFlow.run_console

## TL;DR

If your Google Workspace script calls InstalledAppFlow.run_console, replace it with run_local_server and make sure google-api-python-client, google-auth, and google-auth-oauthlib are on compatible versions. When OAuth breaks after an upgrade, check the client changelog before debugging your own code. Context: Stack Overflow #75602866 (accepted answer, 7 votes): the asker's script broke with AttributeError on run_console after a library upgrade.

Use this when you run into the situation in the title.

**When not to use this skill:** unrelated tasks. It covers only the procedure above.

## Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

## Details

The accepted answer identifies it as a version-compatibility issue in google-auth-oauthlib: run_console was removed from InstalledAppFlow, so pinned code that calls it dies on newer installs. The fix is to move to the supported flow method and keep google-api-python-client and the google-auth family on mutually compatible versions, checking the changelog when OAuth behavior changes.
