I encountered this with Ray Train but I think it might be similar in Core.
In the docs, runtime_env is mentioned as an advanced feature somewhat obscurely. Advanced Usage — Ray v1.8.0.
I found that whenever I have more than a single python file and one of the files import functions or classes from the other, I need to include the directory in
ray.init(address=…,runtime_env={“working_dir”: “/code/my_project”})
Without it, the imports are not found. I’d think most applications have more than a single script file. Maybe there is a better way to deal with my case? If not, why is this considered advanced usage?