Skip to content

AttributeError: module 'json' has no attribute 'load'  #92

@ktprezes

Description

@ktprezes

Expected Behavior

successful run of calednar-quickstart.py example

Actual Behavior

prompt> python gcal-quick-start.py
Traceback (most recent call last):
File "quickstart.py", line 53, in
main()
File "quickstart.py", line 30, in main
SCOPES)
File "D:\Program Files2\Python\lib\site-packages\google_auth_oauthlib\flow.py", line 172, in from_client_secrets_file
client_config = json.load(json_file)
AttributeError: module 'json' has no attribute 'load'

Steps to Reproduce the Problem

  1. Make all the steps from site:
    https://developers.google.com/calendar/quickstart/python
  2. get an error :(
  3. I've deleted (ok, renamed) all *.pyc files - according to some stackoverflow answers to similar problems, but this error persists :(
  4. It doesn't matter if I'm trying to run this example in 'normal' or 'virtual' environment

Specifications

  • Python version (python --version): Python 3.7.2
  • OS (Mac/Linux/Windows): Windows 8.1 64-bit

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions