[python-win32] Problem connecting to OPC server through COM interface
Marco Nawijn
nawijn at gmail.com
Wed Nov 16 15:45:32 CET 2011
Dear All,
I am running into a strange problem (for me). I use the openopc
(www.openopc.org) python package to connect to a OPC server through
COM. I have the following code:
import openopc
opc = openopc.client('OPC.Automation.1')
If I run this code from within PythonWin, it succeeds. However, when I
run the code from within a normal python shell, it fails with the
following error:
OPCError: Dispatch: Invalid access to memory location
My main questions are, what is the difference between the embedded
PythonWin shell and a normal python shell, and do you have any
suggestion on how to solve/debug the issue?
Kind regards,
Marco
More information about the python-win32
mailing list