Your MultiAgentEnv <MyMultiAgentEnv instance> does not have some or all of the needed base-class attributes!

How severe does this issue affect your experience of using Ray?

  • Medium: It contributes to significant difficulty to complete my task, but I can work around it.

Hello, I am wondering if these logs are something I have to worry about? If yes, please guide me on how I can start to fix them?

  1. (RolloutWorker pid=21417) 2023-12-20 19:41:35,005 WARNING env.py:286 -- Your MultiAgentEnv <MyMultiAgentEnv instance> does not have some or all of the needed base-class attributes! Make sure you call super().init() from within your MutiAgentEnv's constructor. This will raise an error in the future.

Relevant code:

...
class MyMultiAgentEnv(MultiAgentEnv):
    def __init__(self, config: EnvContext):
        super().__init__()
...

Couldn’t figure out the problem for 1.

  1. 2023-12-20 19:41:36,153 INFO worker_set.py:313 -- Inferred observation/action spaces from remote worker (local worker has no env): ...

Does this matter? How do I make sure local worker has an env?