【Google OAuth】AttributeError: 'InstalledAppFlow' object has no attribute 'run_console'
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
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.