-
Notifications
You must be signed in to change notification settings - Fork 242
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
numpy TypeError and obtain/deliver usability #350
Comments
There is potential for supporting this use case in the future---per line 313 of
client.py
Remote should probably be ran in a hypervisor or docker container and started from a clean state on a regular interval when pickling or changing attribute access settings. If the time was taken to write a class factory around numpy and your service could be locked down since it would no longer require |
Hi, unfortunately we are trying to use rpyc transparently from client side where my/the code isnt allowed to know about rpyc so I cannot import/get a remote ref to the numpy module as you do ; I have to import from the local/client numpy module. Do your in progress status means that it would be doable/fixable ? as I don't quite get the end of your reply. Thanks anyway. |
In progress does mean that I believe it is fixable, but it is not trivial. There are also workarounds in the interim, but this also depends on the requirements/restrictions. The end of my reply stemmed from the belief that since pickled objects have security risks and portability issues it's probably worthwhile to avoid pickling, but that is just my opinion---in many use cases So there are limitations in complete "transparency". For example, the client always has to establish a connection to the service or how the built-in type is implemented in C to use one of PyObject's pointers thereby breaking promises of transparency. Another possible implementation of the client is
Of course, the best approach depends on the end goal and technical requirements. Does this client example work until a proper enhancement is complete? Another related improvement would be adding a decorator to remove the requirement of using |
No we can not use Thanks again. |
Sorry about the slow turn around. As suggested by #310 and here, the usability of RPyC would benefit from a improving the return by-netref and by-value. Approaches/considerations
|
Environment
Minimal example
Server:
Client:
traceback obtained:
was expecting statement to succeed.
Is there anything I'm doing wrong ?
The text was updated successfully, but these errors were encountered: