<p>Date: Fri, 14 Mar 2008 12:59:26 +0000<br>From: Tim Golden <<a href="mailto:mail@timgolden.me.uk">mail@timgolden.me.uk</a>><br>Subject: Re: [python-win32] Library not Registered Error while running<br> WMI example script<br>
Cc: <a href="mailto:python-win32@python.org">python-win32@python.org</a><br>Message-ID: <<a href="mailto:47DA76AE.2040809@timgolden.me.uk">47DA76AE.2040809@timgolden.me.uk</a>><br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed</p>
<p>siddhartha veedaluru wrote:<br>> I have installed win32 extensions on my windows 2003 server<br>> i'm using python 2.5.1.<br>><br>> downloaded the wmi module 1.3.2 to my machine<br>> used<br>><br>
> "python setup.py install"<br>><br>> to install the module<br>><br>> i tried run an example mentioned in the web page. it gave the following<br>> error.<br>><br>> File "C:\Python25\Lib\site-packages\wmi.py", line 157, in __init__<br>
> comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp()<br>> pywintypes.com_error: (-2147319779, 'Library not registered.', None, None)<br>> Script terminated.</p>
<p>Just to test, could you run this code to see if it produces<br>the same result? (This is basically what the wmi module<br>does behind the scenes).</p>
<p><code><br>import win32com.client<br>win32com.client.GetObject ("winmgmts:")</p>
<p></code></p>
<div>TJG</div>
<div>-------------------------------------------</div>
<div>Hi ,</div>
<div> </div>
<div>I have tried the snipped </div>
<div>The script just terminted with any output or error.</div>
<div> </div>
<div> </div>
<div>Thanks</div>
<div>Siddhartha.</div>
<div> </div>
<div> </div>