At end of my program, I am generating word file then converting this file to .pdf file format as the following:
wdFormatPDF = 17 word = comtypes.client.CreateObj
I have same。I solved it Clear Gen's cache! I am deleting all the caches in this directory. The conversion is normal! ..\Python3.6\Lib\site-packages\comtypes\gen