I have comtypes 0.6.2 installed on Python 2.6. If I try this:
import comtypes.gen
I get:
Traceback (most recent call last): File "<pyshell#2>", line 1, in <module> import comtypes.gen ImportError: No module named gen
Other imports, such as import comtypes and import comtypes.client , however, work fine.
What am I doing wrong?
comtypes.gen code seem to comtypes.gen generated on behalf of comtypes.gen ? If so, do I need certain preparatory steps before importing? I am not registered as an administrator. Could this lead to code failure?
Edit: The above problem is solved with reload(comtypes.gen) (I don't understand how, though). However, now from comtypes.gen import IWshRuntimeLibrary does not work. This character must be part of the generated code. So how can I get this code?
source share