Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid data or unsupported protocol version #9

Open
zhangjiechina001 opened this issue Nov 15, 2019 · 0 comments
Open

invalid data or unsupported protocol version #9

zhangjiechina001 opened this issue Nov 15, 2019 · 0 comments

Comments

@zhangjiechina001
Copy link

import OpenOPC
opc=OpenOPC.open_client(host='127.0.0.1',port=7766)
print(opc.servers())

F:\Anaconda\envs\PyQt5\python.exe C:/Users/Administrator/PycharmProjects/-/opc/sample01.py
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/-/opc/sample01.py", line 2, in
opc=OpenOPC.open_client(host='127.0.0.1',port=7766)
File "F:\Anaconda\envs\PyQt5\lib\site-packages\OpenOPC.py", line 131, in open_client
return server_obj.create_client()
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\core.py", line 275, in getattr
self._pyroGetMetadata()
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\core.py", line 615, in _pyroGetMetadata
self.__pyroCreateConnection()
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\core.py", line 596, in __pyroCreateConnection
connect_and_handshake(conn)
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\core.py", line 535, in connect_and_handshake
msg = message.Message.recv(conn, [message.MSG_CONNECTOK, message.MSG_CONNECTFAIL], hmac_key=self._pyroHmacKey)
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\message.py", line 168, in recv
msg = cls.from_header(connection.recv(cls.header_size))
File "F:\Anaconda\envs\PyQt5\lib\site-packages\Pyro4\message.py", line 152, in from_header
raise errors.ProtocolError("invalid data or unsupported protocol version")
Pyro4.errors.ProtocolError: invalid data or unsupported protocol version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant