Skip to content

RPYC not working as a service #741

@ajjack50n

Description

@ajjack50n

4.14.117-ev3dev-2.3.5-ev3

ii micropython-ev 2.1.0 all Python language bindings for ev3d
ii python3-ev3dev 1.2.0 all Python language bindings for ev3d
ii python3-ev3dev 2.1.0 all Python language bindings for ev3d

I am trying to follow instructions here for starting the RPYC service.
https://ev3dev-lang.readthedocs.io/projects/python-ev3dev/en/stable/rpyc.html

.. but I get the following error...

Exception has occurred: builtins.KeyError
('3047791664', u'SlaveService', u'rpyc.core.service')

========= Remote Traceback (1) =========
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/rpyc/core/protocol.py", line 305, in _dispatch_request
    res = self._HANDLERS[handler](self, *args)
  File "/usr/lib/python3/dist-packages/rpyc/core/protocol.py", line 539, in _handle_inspect
    return tuple(netref.inspect_methods(self._local_objects[oid]))
  File "/usr/lib/python3/dist-packages/rpyc/lib/colls.py", line 86, in __getitem__
    return self._dict[key][0]
KeyError: (b'3047791664', 'SlaveService', 'rpyc.core.service')
  File "/Users/andy/Documents/Python/non ev3 python scripts/myfirstRPyC.py", line 3, in <module>
    conn = rpyc.classic.connect('192.168.2.2')

If I manually start using...

python rpyc_classic.py all is fine:)

I suspect I am doing something wrong but unsure what?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions