win32com.client.Dispatch("WScript.Shell")

Bala blk at srasys.co.in
Fri Jul 16 18:13:19 CEST 2004


Hi,
    iam creating an instance for shell..while doing sometimes iam getting an error called 
pywintypes.com_error (-2147221008, 'CoInitialize has not been called.', None, None) 
    import win32com
    import win32com.client
    shell =  win32com.client.Dispatch("WScript.Shell")

what could be the problem...how to overcome this problem..

Kindlygive some solution for this problem

Regards
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040716/98473868/attachment.html>


More information about the Python-list mailing list