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

Đang mở
#134 18 bình luận 13 reaction 1 người được giao Xem trên GitHub

@sqrrrl đang làm issue này rồi.

Từ ngày 3/12/2019.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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
Ngôn ngữ chính
Python
Star
1.4k
Fork
917
Merge trung bình
3 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googleworkspace/python-samples

Tất cả issue của googleworkspace/python-samples

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.