Need help with COMObject for Zope

deepak_marda at deepak_marda at
Wed Apr 26 16:34:06 EDT 2000

I am trying to use COMObject with Zope. I have the latest versions of
Python and Zope installed on my Windows NT machine and have the Python
COM extensions installed as well. The following works fine from a
vanilla Python environment: -

>>>import win32com.client
>>>o.Visible = 1
and so on...

However, when I created a COMObject in Zope with id = word and Dispatch
= Word.Application it raises the following exception: -
Error Type: com_error
Error Value: (-2147221008, 'CoInitialize has not been called.', None,

I have replaced the Python installation that comes with Zope to the
latest version of Python with the COM extensions and I have also tried
restarting Zope.

Please help,

Sent via
Before you buy.

More information about the Python-list mailing list