Re: [python-win32] Python COM server throws 'module' object has no attribute 'VARIANT'

2012-08-05 Thread Paul Hemans
Hi Mark, Installed pywin32-217.win32-py2.6.exe and then the problem was resolved. Thanks again. On Mon, Aug 6, 2012 at 3:58 PM, Paul Hemans wrote: > Hi Mark, > Thanks for the response. > > Here is what I am using to instantiate the server through python > >>> from comtypes.client import CreateO

Re: [python-win32] Python COM server throws 'module' object has no attribute 'VARIANT'

2012-08-05 Thread Mark Hammond
On 6/08/2012 3:58 PM, Paul Hemans wrote: Hi Mark, Thanks for the response. Here is what I am using to instantiate the server through python >>> from comtypes.client import CreateObject >>> cc= CreateObject("Compy.Connect") >>> cc.Status() The com server also fails when being accessed fro

Re: [python-win32] Python COM server throws 'module' object has no attribute 'VARIANT'

2012-08-05 Thread Paul Hemans
Hi Mark, Thanks for the response. Here is what I am using to instantiate the server through python >>> from comtypes.client import CreateObject >>> cc= CreateObject("Compy.Connect") >>> cc.Status() The com server also fails when being accessed from vbscript. I have verified that both machines

Re: [python-win32] Python COM server throws 'module' object has no attribute 'VARIANT'

2012-08-05 Thread Mark Hammond
I don't quite understand this code. The server is using win32com (ie, not comtypes), but the client code seems to be using comtypes rather than win32com (but it's hard to tell as the client code is missing the imports etc). But at face value it appears one of the machines might have an older

[python-win32] Python COM server throws 'module' object has no attribute 'VARIANT'

2012-08-05 Thread Paul Hemans
Can someone tell me what is going wrong. The following works on one machine but not on another. Here is a COM server implemented in Python: from win32com.server.exception import COMException import pythoncom import sys import os from string import Template import logging import logging.config cl