Hello,
I am trying to run the following code using Python 3.7.3:
-------------------------------
from thespian.actors import *
class A(Actor):
def receiveMessage(self, message, sender):
if isinstance(message, ActorExitRequest):
print("EXIT A")
class B(Actor):
def __init__(self):
self.A = self.createActor(A)
def receiveMessage(self, message, sender):
if isinstance(message, ActorExitRequest):
print("EXIT B")
asys = ActorSystem('multiprocQueueBase')
bActor = asys.createActor(B)
asys.tell(bActor, ActorExitRequest)
------------------------------------
I get the following error:
AttributeError: 'B' object has no attribute '_myRef'
The error pertains to the call to self.createActor in the class B.
Could anyone tell me how to alleviate this error?
Thanks,
Justin