-
Notifications
You must be signed in to change notification settings - Fork 56
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
Runtime error when using send_remote #42
Comments
Not sure how to interpret the error, but I think you should be using send not
P.S. Do you accidentally have 2 Node's running on 1 python? This is not tested at all and could even be the problem which you observe. |
Hey kvakvs, I tried The issue maybe arises because of |
can you post a minimal setup code to reproduce this? and i can have a look today. |
1 similar comment
can you post a minimal setup code to reproduce this? and i can have a look today. |
Will do in an hour |
Here is the minimal example. 2 files: a receiver that is a registered process that prints all messages it receives and a sender which sends a message to the receiver every once in a while |
Ok i just had a look. You've caught me here with creating Process with Why this is not done yet? Main effort was on driving Pyrlang from Erlang, so your infinite loop would be running in Python, and incoming messages over the network would wake your processes up and they would do some work. Now a scenario with Python being active and counting time and doing something, this is where I am not prepared. Essentially there should be a model for running your process loops, like you have now, but it is not I have no information whether there are gevent users of this library and how many, might make it work nicely with asyncio though. There is some fear and uncertainty and doubt here. |
Hey @kvakvs great explanation. For now I believe I can make do with an erlang node that acts as a router in between pyrlang nodes since I can send and receive via erlang just fine. Thanks for the quick reply as always and keep up the good work! |
I have set up a scenario with 2 python processes that run as separate (remote) instances to test communication between two python Pyrlang processes registered as
sender
andreceiver
From
controller
, I am executingself.node.send_remote(sender=self.pid_, dst_node="receiver@127.0.0.1", receiver="receiver", message=Atom("try"))
Whenever I execute this command, I get the following traceback on
sender
:and the following error in
receiver
:Any feedback would be greatly appreciated!
The text was updated successfully, but these errors were encountered: