test_teleportation.py fails with python3.11
grozin opened this issue · 5 comments
rpyc-5.2.3, python-3.11, linux
EEEEEE
======================================================================
ERROR: test (__main__.TeleportationTest.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 69, in test
f2 = import_function(exp)
^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 96, in _import_codetup
consts2.append(_import_codetup(const[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
======================================================================
ERROR: test_compat (__main__.TeleportationTest.test_compat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 122, in test_compat
pow37_netref = self.conn.modules["rpyc.utils.teleportation"].import_function(schema37)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 13 must be str, not int
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
======================================================================
ERROR: test_def (__main__.TeleportationTest.test_def)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 88, in test_def
foo_ = teleport_function(self.conn, foo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 13 must be str, not int
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
======================================================================
ERROR: test_defaults (__main__.TeleportationTest.test_defaults)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 94, in test_defaults
defaults_ = teleport_function(self.conn, defaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 13 must be str, not int
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
======================================================================
ERROR: test_globals (__main__.TeleportationTest.test_globals)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 79, in test_globals
teleported = teleport_function(self.conn, the_answer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 13 must be str, not int
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
======================================================================
ERROR: test_kwdefaults (__main__.TeleportationTest.test_kwdefaults)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3/tests/test_teleportation.py", line 98, in test_kwdefaults
kwdefaults_ = teleport_function(self.conn, kwdefaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 13 must be str, not int
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/tmp/portage/dev-python/rpyc-5.2.3/work/rpyc-5.2.3-python3_10/install/usr/lib/python3.10/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 13 must be str, not int
----------------------------------------------------------------------
Ran 6 tests in 1.301s
FAILED (errors=6)
CodeType
signature has changed in 3.11, so _import_codetup
needs to be changed accordingly to support the new prototype conditionally (like it currently does for <3.8, >=3,8)
I've tried to accomodate 3.11 the save way as 3.8, see the patch (damn, github does not allow me to attach a patch, had to rename it to .patch.txt):
rpyc-5.2.3-python-3.11.patch.txt
But something still does npt work
EEEEEE
======================================================================
ERROR: test (__main__.TeleportationTest.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 69, in test
f2 = import_function(exp)
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
consts2.append(_import_codetup(const[1]))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 119, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 16 must be bytes, not tuple
======================================================================
ERROR: test_compat (__main__.TeleportationTest.test_compat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 122, in test_compat
pow37_netref = self.conn.modules["rpyc.utils.teleportation"].import_function(schema37)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: cannot access local variable 'qualname' where it is not associated with a value
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 112, in _import_codetup
filename, name, qualname, firstlineno, lnotab, freevars, cellvars)
^^^^^^^^
UnboundLocalError: cannot access local variable 'qualname' where it is not associated with a value
======================================================================
ERROR: test_def (__main__.TeleportationTest.test_def)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 88, in test_def
foo_ = teleport_function(self.conn, foo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 16 must be bytes, not tuple
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 119, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 16 must be bytes, not tuple
======================================================================
ERROR: test_defaults (__main__.TeleportationTest.test_defaults)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 94, in test_defaults
defaults_ = teleport_function(self.conn, defaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 16 must be bytes, not tuple
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 119, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 16 must be bytes, not tuple
======================================================================
ERROR: test_globals (__main__.TeleportationTest.test_globals)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 79, in test_globals
teleported = teleport_function(self.conn, the_answer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 16 must be bytes, not tuple
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 119, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 16 must be bytes, not tuple
======================================================================
ERROR: test_kwdefaults (__main__.TeleportationTest.test_kwdefaults)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/grozin/tmp/rpyc-5.2.3.new/tests/test_teleportation.py", line 98, in test_kwdefaults
kwdefaults_ = teleport_function(self.conn, kwdefaults)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/classic.py", line 403, in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 240, in __call__
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/netref.py", line 63, in syncreq
return conn.sync_request(handler, proxy, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 490, in sync_request
return _async_res.value
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/async_.py", line 108, in value
raise self._obj
_get_exception_class.<locals>.Derived: code() argument 16 must be bytes, not tuple
========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
return obj(*args, **dict(kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 135, in import_function
codeobj = _import_codetup(codetup)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 119, in _import_codetup
return CodeType(*codetup)
^^^^^^^^^^^^^^^^^^
TypeError: code() argument 16 must be bytes, not tuple
observing same issue on rpyc-5.2.3, python 3.11, windows:
..\venv\Lib\site-packages\rpyc\utils\classic.py:403: in teleport_function
return conn.modules["rpyc.utils.teleportation"].import_function(
..\venv\Lib\site-packages\rpyc\core\netref.py:240: in call
return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
..\venv\Lib\site-packages\rpyc\core\netref.py:63: in syncreq
return conn.sync_request(handler, proxy, *args)
..\venv\Lib\site-packages\rpyc\core\protocol.py:490: in sync_request
return _async_res.value
self = <AsyncResult object (ready) at 0x291183922a0>
@property
def value(self):
"""Returns the result of the operation. If the result has not yet
arrived, accessing this property will wait for it. If the result does
not arrive before the expiry time elapses, :class:`AsyncResultTimeout`
is raised. If the returned result is an exception, it will be raised
here. Otherwise, the result is returned directly.
"""
self.wait()
if self._is_exc:
raise self._obj
E _get_exception_class..Derived: code() argument 13 must be str, not int
E
E ========= Remote Traceback (1) =========
E Traceback (most recent call last):
E File "/opt/auto-inventory-PP/lib/python3.11/site-packages/rpyc/core/protocol.py", line 324, in _dispatch_request
E res = self._HANDLERS[handler](self, *args)
E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/opt/auto-inventory-PP/lib/python3.11/site-packages/rpyc/core/protocol.py", line 609, in _handle_call
E return obj(*args, **dict(kwargs))
E ^^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/opt/auto-inventory-PP/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 122, in import_function
E codeobj = _import_codetup(codetup)
E ^^^^^^^^^^^^^^^^^^^^^^^^
E File "/opt/auto-inventory-PP/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 96, in _import_codetup
E consts2.append(_import_codetup(const[1]))
E ^^^^^^^^^^^^^^^^^^^^^^^^^
E File "/opt/auto-inventory-PP/lib/python3.11/site-packages/rpyc/utils/teleportation.py", line 106, in _import_codetup
E return CodeType(*codetup)
E ^^^^^^^^^^^^^^^^^^
E TypeError: code() argument 13 must be str, not int
..\venv\Lib\site-packages\rpyc\core\async_.py:108: TypeError