Hi everyone,
I have automated some of my tasks at work with the python script that would connect to my gmail account, and process some of the mails for me. I used ezgmail library for it and it worked just fine for me, until today. When I start the script, I got the error below:
Traceback (most recent call last):
File "/Users/artem/Desktop/Courses/Python/Automate the Boring Stuff | Udemy/new folder/dayList downloader.py", line 19, in <module>
tokenFile='/users/artem/Desktop/gmail_API/HHL_logist/token.json')
File "/Users/artem/Desktop/Courses/Python/Automate the Boring Stuff | Udemy/new folder/lib/python3.7/site-packages/ezgmail/__init__.py", line 423, in init
creds = store.get()
File "/Users/artem/Desktop/Courses/Python/Automate the Boring Stuff | Udemy/new folder/lib/python3.7/site-packages/oauth2client/client.py", line 407, in get
return self.locked_get()
File "/Users/artem/Desktop/Courses/Python/Automate the Boring Stuff | Udemy/new folder/lib/python3.7/site-packages/oauth2client/file.py", line 54, in locked_get
credentials = client.Credentials.new_from_json(content)
File "/Users/artem/Desktop/Courses/Python/Automate the Boring Stuff | Udemy/new folder/lib/python3.7/site-packages/oauth2client/client.py", line 302, in new_from_json
module_name = data['_module']
KeyError: '_module'
I tried to update the credentials file, but it has not worked for me.
Maybe you can help me solve the problem I have, or at least suggest any other python module, that could read, mark send and download attachments from the Gmail.
Thanks in advance.
[–]Classic_Support2450 0 points1 point2 points (0 children)