Hello,
I have a simple Callback Service:
class CallbackService (rpyc.Service):
def exposed_func (obj, string):
obj.func(string)
My configuration / connect statement looks like this:
con = rpyc.connect("localhost", port=18812, config={"allow_all_attrs":
True})
With this basic setup, I have the following problem:
1. When calling the exposed_func() from the client, the callback gets
called correctly, but I get the following server error.
Note the configuration is set to allow access to all attributes.
Traceback (most recent call last):
File "C:\Program Files
(x86)\Python27\lib\site-packages\rpyc\core\protocol.py", line 305, in
_dispatch_request
res = self._HANDLERS[handler](self, *args)
File "C:\Program Files
(x86)\Python27\lib\site-packages\rpyc\core\protocol.py", line 541, in
_handle_getattr
return self._access_attr(oid, name, (), "_rpyc_getattr",
"allow_getattr", getattr)
File "C:\Program Files
(x86)\Python27\lib\site-packages\rpyc\core\protocol.py", line 504, in
_access_attr
raise AttributeError("cannot access %r" % (name,))
AttributeError: cannot access '__class__'
So why can't the callback service access the __class__ attribute?
Thanks,
Rico
--
---
You received this message because you are subscribed to the Google Groups
"rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.