Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.12k stars 4.15k forks source link

Couldn't connect to trainer on port 5004 using API version 1.5.0. Will perform inference instead. #5697

Closed yachty66 closed 2 years ago

yachty66 commented 2 years ago

Describe the bug

when I play 3Dball example, has error -> Couldn't connect to trainer on port 5004 using API version 1.5.0. Will perform inference instead.

To Reproduce

mlagents-learn config/trainer_config.yaml --run-id=exampleID click play button

Console logs / stack traces

Screen Shot 2022-02-02 at 10 48 19 AM

Environment:

Unity Version: Unity 2021.2.8f1 OS + version: Mac 11.3.1 ML-Agents version: ml-agents-release_18 Environment: Anaconda virtual environment, installed all necessary package -python version: 3.8.6

Note:

This issue appeared similar here and the person was able to solve the issue with the Mac specific configurations for the bundle file. I don't see the alert so I cannot just follow his advice.

miguelalonsojr commented 2 years ago

Hi @yachty66, are you on an M1 mac by any chance?

yachty66 commented 2 years ago

I build with the following environment and everything worked fine now:

macOS Big Sur 11.3.1 Unity Editor = 2020.3.15f2 Unity-Hub = 3.0.1 Python = 3.8 ML-Agents Release 19

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.