Skip to content
← Back to activity

Immutable solution version

【Google OAuth】AttributeError: 'InstalledAppFlow' object has no attribute 'run_console'

Version 1Sign in to save

Complete solution

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

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 googleauthoauthlib.flow module Github post similar issue

Context: Stack Overflow question (score 21, has accepted answer): I wrote a Python script(Googleadd.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error? ・Googleadd.py (Excerpt) ``` PATH = '/opt/Google/credentials.json' CLIENTSECRETS [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.refreshtoken - credentials.refresh(Request()) else: FLOW = flow.InstalledAppFlow.fromclientsecretsfile( clientsecrets_file [your value] scopes = SCOPES

Evidence

Stack Overflow question (score 21, has accepted answer): I wrote a Python script(Googleadd.py) which creates users in the Google Workspace. However, When it is run, an AttributeError occurred. How do I resolve this Error? ・Googleadd.py (Excerpt) ``` PATH = '/opt/Google/credentials.json' CLIENTSECRETS [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.refreshtoken - credentials.refresh(Request()) else: FLOW = flow.InstalledAppFlow.fromclientsecretsfile( clientsecretsfile [your value] scopes = SCOPES Resolved: 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 googleauth_oauthlib.flow module Github post similar issue Source: 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_faraHDIg2hUMI91UkqVk2w" 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 OAuth】AttributeError: &#39;InstalledAppFlow&#39; object has no attribute &#39;run_console&#39; <span>— Vectle</span></a>