Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
OpenOPC 1.1.6, Python 2.7, Pyro 3.15 all running on Windows 7. Gateway installed, and using the command line program
opc -H localhost -o values -s MyOPC.OPCServer.1 myitem
Works fine. Running a small python program:
opc = OpenOPC.open_client('localhost')
if __name__ == '__main__':
Gives an error here in protocol.py:
msg='incompatible protocol version'
if not noReply:
# try to report error to client, but most likely the connection will terminate:
Does this mean that my version of pyro is incorrect for the version of the gateway? Or is there some other reason?
I am very new to python … like 2 hours …
You are receiving the "protocol error" because the version of Pyro you installed on your development box does not match the version of Pyro that is built into the OpenOPC Gateway Service.
With OpenOPC 1.1.6 you must use Pyro version 3.10 in order for it to work. However if you upgrade to the newest OpenOPC 1.2.0 that was just released, then you can safely use the newest version of Pyro which is 3.15.