问题
I use the OpenOPC
library for python
https://sourceforge.net/projects/openopc/
in gateway mode... Gateway runs on Windows and the client should run on Linux
.
This usecase is also forseen by the Library in its documetation.
But... The library uses the pythoncom
library in pyhton
which is a Windows package.. how do I get around that since i cant install Pywin32
in macosx
?
the Error Message:
pythoncom.CoInitialize()
NameError: global name 'pythoncom' is not defined
回答1:
The problem is fixed... It was just a programming mistake:
I ran:
opc.client('ipaddress')
but in to use the gateway service it has to be:
opc.open_client('ipaddress')
来源:https://stackoverflow.com/questions/38334505/openopc-gateway-running-use-client-in-osx-or-linux