Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiezhipeng-git opened this issue Dec 21, 2022 · 0 comments
Open

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

xiezhipeng-git opened this issue Dec 21, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@xiezhipeng-git
Copy link

xiezhipeng-git commented Dec 21, 2022

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

@xiezhipeng-git xiezhipeng-git added the bug Something isn't working label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants