Open rzoun opened 4 years ago
It might be that you have lost makepy support - try using win32com.client.EnsureDispatch(). If that still doesn't work, try a 32bit python/pywin32
Thanks for your reply, Mark. Assuming you meant win32com.client.gencache.EnsureDispatch(): tried it but I get the same error. Also tried 32-bit versions of Python 3.7.6 with pywin32: same error.
@rzoun Did you ever find a solution to this? I'm trying to parse some outlook msg files and running into the exact same error code. Running Python 3.6, pywin32 228. Thanks!
@cstarbird No I never found a proper solution. I eventually used a work-around. My goal was to send an Outlook meeting invitation to my colleagues directly using Python. I now do that by using Python to create an .ics file according to specs, and then have Python open that .ics file (with os.startfile()). This just opens the meeting invitation with Outlook on my system, which I can then manually send. So, it's an extra step for me, but it gets the job done.
I have the excact same problem. may it be due to OS/Office version (bits)?
Solution: meeting.RequiredAttendees="abc@abc.com"
The code below, for making a meeting with Outlook 2016 in Windows 10, results in an error. The code did work before, but that was with Outlook 2010 in Windows 7. I am using 64-bit version for everything. Have tried Python 3.6.8, 3.7 and 3.8.1 with the same result.
I get the error at the line with
meeting.Recipients.Add("name@name.nl")
(but then using a valid email address). It reads: