diff --git a/python/unityagents/rpc_communicator.py b/python/unityagents/rpc_communicator.py index 95303bffe2..985cadd904 100755 --- a/python/unityagents/rpc_communicator.py +++ b/python/unityagents/rpc_communicator.py @@ -15,7 +15,8 @@ class UnityToExternalServicerImplementation(UnityToExternalServicer): - parent_conn, child_conn = Pipe() + def __init__(self): + self.parent_conn, self.child_conn = Pipe() def Initialize(self, request, context): self.child_conn.send(request)