ray-project / ray

Ray is a unified framework for scaling AI and Python applications. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.
https://ray.io
Apache License 2.0
33.1k stars 5.6k forks source link

Running Unity Environment example codes, AttributeError: 'UnityEnvironment' object has no attribute 'get_behavior_names' #9156

Closed Jakedismo closed 4 years ago

Jakedismo commented 4 years ago

I keep getting this error when I start an example scene in Unity editor AttributeError: 'UnityEnvironment' object has no attribute 'get_behavior_names'. I've tried with several different unity versions. Some of them prompted about the API not being compatible but now I'm getting that error. Installed mlagents with pip install -e from the latest master.

Python 3.7.7, ray 0.9.0, newest Unity tf 2.2.2

Jakedismo commented 4 years ago

To answer myself the mlagents-envs. 0.17 has replaced the get_behavior_names with behavior_specs function.