[Zope] COMObject How-To

Chui Tey teyc@start.com.au
Tue, 9 Nov 99 4:16:00 PM


Has anyone had any luck with using COMObject with Zope 2.0?

I installed Zope, then win32all.
Next I changed the start.bat to
  "C:\Program Files\Python\python.exe" ...
Trying connect to the COM object gives this:

Error Type: com_error
Error Value: (-2147221008, 'CoInitialize has not been called.', None,
None)

Last bits of the traceback reads:
  File C:\Program
Files\WebGalah\lib\python\Products\COMObject\COMObject.py, line 211,
in getObject
    (Object: FDFApp)
  File C:\Program Files\Python\win32com\client\__init__.py, line 13,
in Dispatch
  File C:\Program Files\Python\win32com\client\dynamic.py, line 68, in
_GetGoodDispatchAndUserName
  File C:\Program Files\Python\win32com\client\dynamic.py, line 58, in
_GetGoodDispatch

From Python interpreter I was able to win32com.client.Dispatch com
objects with no problems.

Thanks

Chui





__________________________________________________________________
Get your free Australian email account at http://www.start.com.au/