Kinds-of-Intelligence-CFI / animal-ai

Animal-AI supports interdisciplinary research to help better understand human, animal, and artificial cognition.
https://sites.google.com/csah.cam.ac.uk/animalai/
Apache License 2.0
55 stars 9 forks source link

Unity Environment Exception / API Incompatibility #22

Closed wschella closed 1 year ago

wschella commented 1 year ago

Hi

I got the following error with a clean install of the latest version. It happens at the end of the episode. I think I heard something about this before, but just wanted to check if this is expected.

Traceback (most recent call last):
  File "/media/Data/PhD/Code/dreamerv3-animalai/aaitest.py", line 48, in <module>
    load_config_and_play(configuration_file=config)
  File "/media/Data/PhD/Code/dreamerv3-animalai/aaitest.py", line 19, in load_config_and_play
    environment = AnimalAIEnvironment(
  File "/media/Data/PhD/Code/dreamerv3-animalai/.env/lib/python3.10/site-packages/animalai/envs/environment.py", line 56, in __init__
    super().__init__(
  File "/media/Data/PhD/Code/dreamerv3-animalai/.env/lib/python3.10/site-packages/mlagents_envs/environment.py", line 151, in __init__
    raise UnityEnvironmentException(
mlagents_envs.exception.UnityEnvironmentException: The communication API version is not compatible between Unity and python. Python API: 0.15.0, Unity API: 1.5.0.
 Please go to https://github.com/Unity-Technologies/ml-agents/releases/tag/latest_release to download the latest version of ML-Agents.

Versions

animalai=2.0.0
animalai-environment=3.0.2
wschella commented 1 year ago

The problem is of course using animalai 2.0.0. Please ignore.