Is it possible to implement communication between a server in Pyro3 and a client in Pyro4?
The server is implemented in Python 2.7 and uses Pyro3.
The client is implemented in Python 3.7 and uses Pyro4 as there is no way to install Pyro3 on Python3.
Server code example:
import Pyro.core as pyro
class MyObject(pyro.ObjBase):
def __init__():
self.data = []
daemon = pyro.Daemon(host='123.123.123.123', port=3000)
daemon.setTimeout(60)
obj = MyObject()
uri = daemon.connect(obj, "obj")
daemon.requestLoop()
For a client I tried the following code
import Pyro4
RemotePLCObjectProxy = Pyro4.Proxy('PYRO:obj@123.123.123.123:3000')
Pyro4.errors.ProtocolError: invalid data or unsupported protocol version
or
import Pyro4
RemotePLCObjectProxy = Pyro4.Proxy('PYRONAME:obj@123.123.123.123:3000')
Pyro4.errors.NamingError: Failed to locate the nameserver
Is it possible to solve this problem?