OpenOPC Gateway Running use Client in OsX or Linux

醉酒当歌 提交于 2021-02-08 05:43:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!