I have some code that works with ray.init(), but not with ray.init(“auto”).
For some reason with ray.init(“auto”), it complains that some code required for the initialization of the actor is not present. It’s probably similar to the following issue:
In this case there’s no way I can import the module in the class method, because the class method is in the module…
ray.exceptions.RayActorError: The actor died because of an error raised in its creation task, ray::ActorA.init() (pid=18665, ip=172.31.48.233)
RuntimeError: The actor with name ActorA failed to import on the worker. This may be because needed library dependencies are not installed in the worker environment:
ray::ActorA.init() (pid=18665, ip=172.31.48.233)
ModuleNotFoundError: No module named ‘file that defines ActorA’