[python-win32] python-win32 Digest, Vol 60, Issue 26
Tim Golden
mail at timgolden.me.uk
Mon Mar 17 12:51:01 CET 2008
siddhartha veedaluru wrote:
> Hi Tim,
>
> I tried the snippet you sent to me.
> Same error.
>
> i opened the python shell and gave "import wmi"
> It give the same error.
>
> comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp()
> com_error: (-2147319779, 'Library not registered.', None, None)
Aha. That's what I wanted to know. (In fact, now I look
at your original post, the same information's shown there.
Shame on me for not checking).
It *looks* as though one (or more) of the WMI DLLs which in
my system are in c:\windows\system32\wbem need to be reregistered.
It might be something else, however. Can you try running
regsvr32.exe against the DLLs in (your equivalent of)
c:\windows\system32\wbem?
I'm sorry this is so involved: I've never encountered someone
with this error before when running WMI.
TJG
More information about the python-win32
mailing list