python-samples icon indicating copy to clipboard operation
python-samples copied to clipboard

ImportError: cannot import name InstalledAppFlow

Open RenzoBertocchi opened this issue 6 years ago • 10 comments

Expected Behavior

run

Actual Behavior

Traceback (most recent call last): File "google.py", line 5, in from google_auth_oauthlib.flow import InstalledAppFlow File "/Library/Python/2.7/site-packages/google_auth_oauthlib/flow.py", line 62, in import google.oauth2.credentials File "/Library/Python/2.7/site-packages/google/oauth2/credentials.py", line 42, in from google.oauth2 import _client File "/Library/Python/2.7/site-packages/google/oauth2/_client.py", line 35, in from google.auth import jwt File "/Library/Python/2.7/site-packages/google/auth/jwt.py", line 53, in from google.auth import _service_account_info File "/Library/Python/2.7/site-packages/google/auth/_service_account_info.py", line 22, in from google.auth import crypt File "/Library/Python/2.7/site-packages/google/auth/crypt/init.py", line 39, in from google.auth.crypt import rsa File "/Library/Python/2.7/site-packages/google/auth/crypt/rsa.py", line 27, in from google.auth.crypt import _python_rsa File "/Users/mrcsvberto/google.py", line 5, in from google_auth_oauthlib.flow import InstalledAppFlow ImportError: cannot import name InstalledAppFlow

Steps to Reproduce the Problem

python quickstart.py

Specifications

  • Python version 2.7.14
  • OS Mac and Linux

RenzoBertocchi avatar Jun 07 '19 10:06 RenzoBertocchi