kakaoenterprise / JORLDY

Repository for Open Source Reinforcement Learning Framework JORLDY
Apache License 2.0
362 stars 49 forks source link

Unavailable moduels ['mlagent', 'mujoco', 'nes', 'procgen'] #217

Open xiezhipeng-git opened 1 year ago

xiezhipeng-git commented 1 year ago

Describe the bug Unavailable moduels ['mlagent', 'mujoco', 'nes', 'procgen'] module: mlagent error: Traceback (most recent call last): File "e:\study\machineStudy\project\Jorldy\JORLDY\jorldy\core\env__init.py", line 21, in module = import__(module_path, fromlist=[None]) File "e:\study\machineStudy\project\Jorldy\JORLDY\jorldy\core\env\mlagent.py", line 1, in from mlagents_envs.environment import UnityEnvironment, ActionTuple ModuleNotFoundError: No module named 'mlagents_envs'

and ModuleNotFoundError: No module named 'mujoco_py' ModuleNotFoundError: No module named 'nes_py'

and ImportError: cannot import name 'ProcgenEnv' from partially initialized module 'procgen' (most likely due to a circular import) (e:\study\machineStudy\project\Jorldy\JORLDY\jorldy\core\env\procgen.py)

To Reproduce Steps to reproduce the behavior: main.py default_config_path = "config.ppo.pong_mlagent" and run

when i pip install mlagents-envs Couldn't launch the ./core/env/mlagents/Pong/Windows/Pong environment. Provided filename does not match any environments. File "E:\study\machineStudy\project\Jorldy\JORLDY\jorldy\core\env\mlagent.py", line 37, in init self.env = UnityEnvironment(

I change the mlagent code

    rootPath = os.path.abspath(os.path.dirname(__file__))+"/../../"
    env_path =rootPath+ f"./core/env/mlagents/{env_name}/{match_build()}/{env_name}"

and it is run

when it is run end program is no end when use async_distributed_train mlagent

the last log: Interact process done.

Expected behavior no error and run train success,and end success

Development Env. (OS, version, libraries): windows 10