I am trying to use python to create an event in google calendars. The error lies with how part way through there seems to be an issue with using .get(). I am not extremely experienced with the google calendar api as this is my first program so I can't narrow it down anymore, so can someone help me with this?
I recreated the code suggested on the video at https://developers.google.com/calendar/create-events and I changed storage.json to credentials.json
The line that triggers the error is this,
store = file.Storage('credentials.json')
creds = store.get()
The file just can't run and spits out a bunch of errors.
These are the errors:
Traceback (most recent call last):
File "goal_insert.py", line 9, in module>
creds = store.get()
File "/Users/name/Library/Python/2.7/lib/python/site-packages/oauth2client/client.py", line 407, in get
return self.locked_get()
File "/Users/name/Library/Python/2.7/lib/python/site-packages/oauth2client/file.py", line 54, in locked_get
credentials = client.Credentials.new_from_json(content)
File "/Users/name/Library/Python/2.7/lib/python/site-packages/oauth2client/client.py", line 302, in new_from_json
module_name = data['_module']
KeyError: '_module'