<div>Hi Tim,</div>
<div>&nbsp;</div>
<div>I tried the snippet you sent to me.</div>
<div>Same error.</div>
<div>&nbsp;</div>
<div>i opened the python shell and gave &quot;import wmi&quot;</div>
<div>It give the same error.</div>
<div>&nbsp;</div>
<div>comobj._oleobj_.GetTypeInfo().GetContainingTypeLib()[0].GetTypeComp()<br>com_error: (-2147319779, &#39;Library not registered.&#39;, None, None)<br></div>
<div>Thanks&nbsp; for your responce.</div>
<div>Siddhartha<br></div>
<div class="gmail_quote">On Mon, Mar 17, 2008 at 4:30 PM, &lt;<a href="mailto:python-win32-request@python.org">python-win32-request@python.org</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send python-win32 mailing list submissions to<br>&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp; &nbsp; &nbsp; &nbsp;<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>or, via email, send a message with subject or body &#39;help&#39; to<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:python-win32-request@python.org">python-win32-request@python.org</a><br><br>You can reach the person managing the list at<br>&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:python-win32-owner@python.org">python-win32-owner@python.org</a><br>
<br>When replying, please edit your Subject line so it is more specific<br>than &quot;Re: Contents of python-win32 digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>&nbsp; 1. &nbsp;Library not Registered Error while running (siddhartha veedaluru)<br>
&nbsp; 2. Re: Library not Registered Error while running (Tim Golden)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 17 Mar 2008 12:07:55 +0530<br>From: &quot;siddhartha veedaluru&quot; &lt;<a href="mailto:siddhartha.veedaluru@gmail.com">siddhartha.veedaluru@gmail.com</a>&gt;<br>
Subject: [python-win32] &nbsp;Library not Registered Error while running<br>To: <a href="mailto:python-win32@python.org">python-win32@python.org</a><br>Message-ID:<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:424b71ec0803162337u54382ca1he7e1183141a373c2@mail.gmail.com">424b71ec0803162337u54382ca1he7e1183141a373c2@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br><br>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; 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<br>
<br>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.<br><br>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).<br><br>&lt;code&gt;<br>import win32com.client<br>win32com.client.GetObject (&quot;winmgmts:&quot;)<br><br>&lt;/code&gt;<br>TJG<br>-------------------------------------------<br>
Hi ,<br><br>I have tried the snipped<br>The script just terminted with any output or error.<br><br><br>Thanks<br>Siddhartha.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://mail.python.org/pipermail/python-win32/attachments/20080317/cf718808/attachment-0001.htm" target="_blank">http://mail.python.org/pipermail/python-win32/attachments/20080317/cf718808/attachment-0001.htm</a><br>
<br>------------------------------<br><br>Message: 2<br>Date: Mon, 17 Mar 2008 08:34:27 +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>
Cc: <a href="mailto:python-win32@python.org">python-win32@python.org</a><br>Message-ID: &lt;<a href="mailto:47DE2D13.5000802@timgolden.me.uk">47DE2D13.5000802@timgolden.me.uk</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>siddhartha veedaluru wrote:<br>&gt;&gt; From: Tim Golden &lt;<a href="mailto:mail@timgolden.me.uk">mail@timgolden.me.uk</a>&gt;<br>&gt;&gt; Just to test, could you run this code to see if it produces<br>&gt;&gt; the same result? (This is basically what the wmi module<br>
&gt;&gt; does behind the scenes).<br>&gt;&gt;<br>&gt;&gt; &lt;code&gt;<br>&gt;&gt; import win32com.client<br>&gt;&gt; win32com.client.GetObject (&quot;winmgmts:&quot;)<br>&gt;&gt;<br>&gt;&gt; &lt;/code&gt;<br>&gt;&gt; TJG<br>
<br>&gt; -------------------------------------------<br>&gt; Hi ,<br>&gt;<br>&gt; I have tried the snipped<br>&gt; The script just terminted with any output or error.<br><br>Well that&#39;s a shame (for me): it means that WMI is working<br>
ok on your machine in general... although I&#39;d have been<br>surprised if that weren&#39;t the case!<br><br>Just to narrow down, could you run these lines in the interpreter<br>to see if/where the error comes up:<br><br>
&lt;code&gt;<br>import wmi<br>c = wmi.WMI ()<br>c.Win32_OperatingSystem ()<br>&lt;/code&gt;<br><br>Thanks<br>TJG<br><br><br>------------------------------<br><br>_______________________________________________<br>python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br><br><br>End of python-win32 Digest, Vol 60, Issue 26<br>
********************************************<br></blockquote></div><br>