[python-win32] Library not Registered Error while running

siddhartha veedaluru siddhartha.veedaluru at gmail.com
Mon Mar 17 12:27:34 CET 2008


 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, <python-win32-request at python.org> wrote:

> Send python-win32 mailing list submissions to
>        python-win32 at 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
>        python-win32-request at python.org
>
> You can reach the person managing the list at
>        python-win32-owner at python.org
>
> 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" <siddhartha.veedaluru at gmail.com>
> Subject: [python-win32]  Library not Registered Error while running
> To: python-win32 at python.org
> Message-ID:
>        <424b71ec0803162337u54382ca1he7e1183141a373c2 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Date: Fri, 14 Mar 2008 12:59:26 +0000
> From: Tim Golden <mail at timgolden.me.uk>
> Subject: Re: [python-win32] Library not Registered Error while running
>       WMI example script
> Cc: python-win32 at python.org
> Message-ID: <47DA76AE.2040809 at timgolden.me.uk>
> 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 <mail at timgolden.me.uk>
> Subject: Re: [python-win32] Library not Registered Error while running
> Cc: python-win32 at python.org
> Message-ID: <47DE2D13.5000802 at timgolden.me.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> siddhartha veedaluru wrote:
> >> From: Tim Golden <mail at timgolden.me.uk>
> >> 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 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
>
> End of python-win32 Digest, Vol 60, Issue 26
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080317/7926d8d5/attachment-0001.htm 


More information about the python-win32 mailing list