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. 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.