-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'Proxy' object is not callable #95
Comments
Not entirely sure. What happens if you try |
Unfortunately I am using a library, which uses |
I've also ran into this issue, and I made a minimal example that shows the problem. I'm running python 3.11.3 and Pyro5 version 5.15. server.py:
client.py:
If I do
I've tried to explicitly wrap the
The documentation indicates that However, there is a comment on that same page that "There is a short list of dunder methods that will never be remoted though (because they are essential to let the Pyro proxy function correctly)." It would be very helpful in my use case to be able to expose the |
following up on this, I looked through code in https://github.com/irmen/Pyro5/blob/master/Pyro5/server.py to find the source of the I think |
I want to Proxy an object using Pyro5, which has a
__call__
method defined. Therefore, I can doobject()
but when I then use Pyro5 and havethe code crashes with the error message
TypeError: 'Proxy' object is not callable
Is it possible to use Pyro5 with callable objects?
The text was updated successfully, but these errors were encountered: