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) Thanks for your responce. Siddhartha On Mon, Mar 17, 2008 at 4:30 PM, <[EMAIL PROTECTED]> wrote: > Send python-win32 mailing list submissions to > python-win32@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-win32 > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of python-win32 digest..." > > > Today's Topics: > > 1. Library not Registered Error while running (siddhartha veedaluru) > 2. Re: Library not Registered Error while running (Tim Golden) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 17 Mar 2008 12:07:55 +0530 > From: "siddhartha veedaluru" <[EMAIL PROTECTED]> > Subject: [python-win32] Library not Registered Error while running > To: python-win32@python.org > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Date: Fri, 14 Mar 2008 12:59:26 +0000 > From: Tim Golden <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Library not Registered Error while running > WMI example script > Cc: python-win32@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > 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 > ------------------------------------------- > Hi , > > I have tried the snipped > The script just terminted with any output or error. > > > Thanks > Siddhartha. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://mail.python.org/pipermail/python-win32/attachments/20080317/cf718808/attachment-0001.htm > > ------------------------------ > > Message: 2 > Date: Mon, 17 Mar 2008 08:34:27 +0000 > From: Tim Golden <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Library not Registered Error while running > Cc: python-win32@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > siddhartha veedaluru wrote: > >> From: Tim Golden <[EMAIL PROTECTED]> > >> 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 > > > ------------------------------------------- > > Hi , > > > > I have tried the snipped > > The script just terminted with any output or error. > > Well that's a shame (for me): it means that WMI is working > ok on your machine in general... although I'd have been > surprised if that weren't the case! > > Just to narrow down, could you run these lines in the interpreter > to see if/where the error comes up: > > <code> > import wmi > c = wmi.WMI () > c.Win32_OperatingSystem () > </code> > > Thanks > TJG > > > ------------------------------ > > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 > > > End of python-win32 Digest, Vol 60, Issue 26 > ******************************************** >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32