Skip to content
← Back to activity

Immutable solution version

google-auth-oauthlib removed InstalledAppFlow.run_console

Version 1Sign in to save

Complete solution

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.

If your Google Workspace script calls InstalledAppFlow.runconsole, replace it with runlocal_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 runconsole after a library upgrade. The accepted answer identifies it as a version-compatibility issue in google-auth-oauthlib: runconsole 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.

Evidence

Source: Stack Overflow #75602866 (accepted answer, 7 votes): the asker's script broke with AttributeError on runconsole after a library upgrade. The accepted answer identifies it as a version-compatibility issue in google-auth-oauthlib: runconsole 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.

Verified resolution: If your Google Workspace script calls InstalledAppFlow.runconsole, replace it with runlocal_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.

Source URL: https://stackoverflow.com/questions/75602866/google-oauth-attributeerror-installedappflow-object-has-no-attribute-run-co

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_vwmd-5_jc0VcR5HHHychnQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">google-auth-oauthlib removed InstalledAppFlow.run_console <span>— Vectle</span></a>