Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpyc
>>> rpyc.__version__
(3, 2, 1)
>>> c = rpyc.classic.connect('localhost')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "(...)/lib/python2.6/site-packages/rpyc/utils/classic.py", line 67, in connect
return factory.connect(host, port, SlaveService, ipv6 = ipv6)
File "(...)/lib/python2.6/site-packages/rpyc/utils/factory.py", line 84, in connect
return connect_stream(s, service, config)
File "(...)/lib/python2.6/site-packages/rpyc/utils/factory.py", line 45, in connect_stream
return connect_channel(Channel(stream), service = service, config = config)
File "(...)/lib/python2.6/site-packages/rpyc/utils/factory.py", line 34, in connect_channel
return Connection(service, channel, config = config)
File "(...)/lib/python2.6/site-packages/rpyc/core/protocol.py", line 136, in __init__
self._init_service()
File "(...)/lib/python2.6/site-packages/rpyc/core/protocol.py", line 139, in _init_service
self._local_root.on_connect()
File "(...)/lib/python2.6/site-packages/rpyc/core/service.py", line 145, in on_connect
self._conn.builtin = self._conn.modules.__builtin__
File "(...)/lib/python2.6/site-packages/rpyc/core/service.py", line 114, in __getattr__
return self[name]
File "(...)/lib/python2.6/site-packages/rpyc/core/service.py", line 111, in __getitem__
self.__cache[name] = self.__getmodule(name)
File "(...)/lib/python2.6/site-packages/rpyc/core/netref.py", line 194, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
File "(...)/lib/python2.6/site-packages/rpyc/core/netref.py", line 69, in syncreq
return conn().sync_request(handler, oid, *args)
File "(...)/lib/python2.6/site-packages/rpyc/core/protocol.py", line 423, in sync_request
self.serve(0.1)
File "(...)/lib/python2.6/site-packages/rpyc/core/protocol.py", line 371, in serve
data = self._recv(timeout, wait_for_lock = True)
File "(...)/lib/python2.6/site-packages/rpyc/core/protocol.py", line 329, in _recv
data = self._channel.recv()
File "(...)/lib/python2.6/site-packages/rpyc/core/channel.py", line 50, in recv
header = self.stream.read(self.FRAME_HEADER.size)
File "(...)/lib/python2.6/site-packages/rpyc/core/stream.py", line 169, in read
raise EOFError("connection closed by peer")
EOFError: connection closed by peer
Hey
I'm pretty sure I wrote it somewhere... It's not possible to connect from python 2.x to 3.x and vice versa. that's because the object-model is too different between the two languages and it's impossible to map from one to the other automatically (i really did try)
I'll update the documentation when I get back and close the issue then.
Thanks for your quick response! Do you maybe have some more specific information on the problem of mapping objects, as I thought only mapping immutables should be possible to implement cross-python..
(sorry for the crappy blocks, this is the best I could get in markdown.... why does every site need its own parser? sigh :-) )
Paths have been slightly redacted.
From py3 to py2:
Client:
Server:
Other way around:
Client:
Server:
The text was updated successfully, but these errors were encountered: