-
Notifications
You must be signed in to change notification settings - Fork 68
Description
Hi Kevin,
Thanks for this beautiful library.:+1: You've brought the elegance of the actor model to the Python workhorse. I've been trying to get it going under windows 10 Pro. Here are some problems that I thought you'd like to know about, and maybe have insight that could help me or others.
- I get the following error with multiprocTCPBase or multiprocUDPBase:
WARNING:root:Unable to get address info for address {my-computer-name}.Home (AddressFamily.AF_INET, SocketKind.SOCK_DGRAM, 17, 0): <class 'socket.gaierror'> [Errno 11001] getaddrinfo failed
I can work around it by adding127.0.0.1 {my-computer-name}.Hometo my Hosts file. Is there a more ideal way? - The following code:
main.py
a = ActorSystem(systemBase='multiprocTCPBase')
b = a.createActor(Foo)
a.ask(b,'How?')
foo.py
from thespian.initmsgs import initializing_messages
@initializing_messages(('bar',True))
class Foo(ActorTypeDispatcher):
pass
displays creating actorsystem twice (?), and a long string of errors, ending with ActorAddr-(T|:1900) is not a valid ActorSystem admin. thespian.log says, ERR Exception in callback:
When main.py is placed in a function rather than as top-level code, it errors differently. Interestingly, I don't get these errors when i put other code before the ActorSystem call.
3. I do not know how to have the user exit the script. Customarily he presses Ctrl-C, but that leaves python processes still running. They are still writing to the console and are visible in Task Manager. I've tried wrapping the code in a try except: a.shutDownActorSystem() block, a try except Exception block, or trapping signal.SIGINT, all to no avail.