Hi, I followed the instruction downloading credential file and rename it as "client_secret.json" before putting it into ~/.credentials/ directory. However, Still met a problem when initialize a object from GmailAPIReadWrapper(). Any idea to solve the problem? Thanks.
(Ubuntu 16.0.4)
Python 3.7.0 (default, Jun 28 2018, 13:15:42)
[GCC 7.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
from gmail_api_wrapper.crud.read import GmailAPIReadWrapper
gmail_api = GmailAPIReadWrapper()
Traceback (most recent call last):
File "", line 1, in
File "/home/Tai-chunWei/workspace/gmail-api-wrapper/gmail_api_wrapper/crud/read.py", line 75, in init
self.gmail_api = GmailAPIConnection().gmail_api_connect()
File "/home/Tai-chunWei/workspace/gmail-api-wrapper/gmail_api_wrapper/connection.py", line 115, in gmail_api_connect
service = google_api.get_service()
File "/home/Tai-chunWei/workspace/gmail-api-wrapper/gmail_api_wrapper/connection.py", line 97, in get_service
creds = self._get_credentials()
File "/home/Tai-chunWei/workspace/gmail-api-wrapper/gmail_api_wrapper/connection.py", line 83, in _get_credentials
credentials = store.get()
File "/home/Tai-chunWei/anaconda3/lib/python3.7/site-packages/oauth2client/client.py", line 407, in get
return self.locked_get()
File "/home/Tai-chunWei/anaconda3/lib/python3.7/site-packages/oauth2client/file.py", line 54, in locked_get
credentials = client.Credentials.new_from_json(content)
File "/home/Tai-chunWei/anaconda3/lib/python3.7/site-packages/oauth2client/client.py", line 302, in new_from_json
module_name = data['_module']
KeyError: '_module'
Hi, I followed the instruction downloading credential file and rename it as "client_secret.json" before putting it into ~/.credentials/ directory. However, Still met a problem when initialize a object from GmailAPIReadWrapper(). Any idea to solve the problem? Thanks. (Ubuntu 16.0.4)
Python 3.7.0 (default, Jun 28 2018, 13:15:42) [GCC 7.2.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information.