[python-win32] Library not Registered Error while running WMI example script

Tim Golden mail at timgolden.me.uk
Fri Mar 14 13:59:26 CET 2008


siddhartha veedaluru wrote:
> I have installed win32 extensions on my windows 2003 server
> i'm using python 2.5.1.
> 
> downloaded the wmi module 1.3.2 to my machine
> used
> 
> "python setup.py install"
> 
> to install the module
> 
> i tried run an example mentioned in the web page. it gave the following
> error.
> 
> File "C:\Python25\Lib\site-packages\wmi.py", line 157, in __init__
> comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp()
> pywintypes.com_error: (-2147319779, 'Library not registered.', None, None)
> Script terminated.

Just to test, could you run this code to see if it produces
the same result? (This is basically what the wmi module
does behind the scenes).

<code>
import win32com.client
win32com.client.GetObject ("winmgmts:")

</code>

TJG


More information about the python-win32 mailing list