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

quickstart.py fails on error: No such file or directory: 'credentials.json'

Open tenleftfingers opened this issue 6 years ago • 16 comments

Expected Behavior

Browser window should open requesting authorisation

Actual Behavior

No browser opens. Error logged to console: $ python quickstart.py Traceback (most recent call last): File "quickstart.py", line 52, in main() File "quickstart.py", line 29, in main 'credentials.json', SCOPES) File "/home/iarla/civetweb-instance-cal/cal/local/lib/python2.7/site-packages/google_auth_oauthlib/flow.py", line 196, in from_client_secrets_file with open(client_secrets_file, 'r') as json_file: IOError: [Errno 2] No such file or directory: 'credentials.json'

Steps to Reproduce the Problem

  1. run python quickstart.py as instructed in documentation https://developers.google.com/calendar/quickstart/python
  2. Observer no browser appears
  3. Observer error in terminal

Specifications

  • Python version: 2.7.12
  • OS : Linux
  • google-auth-oauthlib version: 0.4.1

tenleftfingers avatar Nov 28 '19 15:11 tenleftfingers