win32com.client <unknown>.Cells
Irmen de Jong
irmen.NOSPAM at xs4all.nl
Fri Oct 9 19:54:23 EDT 2015
On 9-10-2015 20:45, gall.pavgal.gall at gmail.com wrote:
> Hi Guys,
>
> i wrote small function :
>
> Excel = win32com.client.Dispatch("Excel.Application")
[...]
> com_error: (-2147221008, 'CoInitialize has not been called.', None, None)
>
> Please, help me! :)
>
First hit on google when searching for "CoInitialize has not been called python":
http://stackoverflow.com/questions/26745617/win32com-client-dispatch-cherrypy-coinitialize-has-not-been-called
I.e. do what the error says, call CoInitialize from your threads.
Irmen
More information about the Python-list
mailing list