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 _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32