<p>Date: Fri, 14 Mar 2008 12:59:26 +0000<br>From: Tim Golden &lt;<a href="mailto:mail@timgolden.me.uk">mail@timgolden.me.uk</a>&gt;<br>Subject: Re: [python-win32] Library not Registered Error while running<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMI example script<br>
Cc: <a href="mailto:python-win32@python.org">python-win32@python.org</a><br>Message-ID: &lt;<a href="mailto:47DA76AE.2040809@timgolden.me.uk">47DA76AE.2040809@timgolden.me.uk</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed</p>

<p>siddhartha veedaluru wrote:<br>&gt; I have installed win32 extensions on my windows 2003 server<br>&gt; i&#39;m using python 2.5.1.<br>&gt;<br>&gt; downloaded the wmi module 1.3.2 to my machine<br>&gt; used<br>&gt;<br>
&gt; &quot;python setup.py install&quot;<br>&gt;<br>&gt; to install the module<br>&gt;<br>&gt; i tried run an example mentioned in the web page. it gave the following<br>&gt; error.<br>&gt;<br>&gt; File &quot;C:\Python25\Lib\site-packages\wmi.py&quot;, line 157, in __init__<br>
&gt; comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp()<br>&gt; pywintypes.com_error: (-2147319779, &#39;Library not registered.&#39;, None, None)<br>&gt; 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>&lt;code&gt;<br>import win32com.client<br>win32com.client.GetObject (&quot;winmgmts:&quot;)</p>
<p>&lt;/code&gt;</p>
<div>TJG</div>
<div>-------------------------------------------</div>
<div>Hi ,</div>
<div>&nbsp;</div>
<div>I have tried the snipped </div>
<div>The script just terminted with any output or error.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>Siddhartha.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>