[Zope] Python + COM (from external method)

Phil Harris phil.harris@zope.co.uk
Fri, 11 Aug 2000 13:06:04 +0100


Steinar,

Did you call pythoncom.CoInitialize()?

If not you need to.

hth

Phil
phil.harris@zope.co.uk


----- Original Message ----- 
From: "Steinar Rune Eriksen" <steinar@orion.no>
To: <zope@zope.org>
Sent: Friday, August 11, 2000 12:49 PM
Subject: [Zope] Python + COM (from external method)


> How come this fails...
> ------------------------------------------
> import win32com.client
> oOleObj = win32com.client.Dispatch("DSOleFile.PropertyReader")
> --------------------------------------------------
> 
> when run from Zope (within and External Method) when it works from Python
> standalone on the same machine ?
> 
> 
> SRE
> 
> 
> 
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> Admin
> Orion System AS
> **********************************************************************
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )