I had read this and installed pywin32 from this place, both Python27 and Python36.
However I got the error. I don't know why. I tried both Python27 and Python36. The errors are identical.
To be more detailed, I put my sample code below:
import win32com.client
from win32com.client import constants, DispatchBaseClass, CastTo, VARIANT
import sys
mode = win32com.client.VARIANT(pythoncom.VT_BSTR | pythoncom.VT_BYREF, "")
Result after delete the old Python, reinstalled both ActivePython 3.6 and pywin32com package. Screen shot like below:
Is there any workaround which needn't use the pythoncom?