ying-wen / malib_deprecated

A Multi-agent Learning Framework
MIT License
61 stars 16 forks source link

ModuleNotFoundError: No module named 'gym_hiway' #27

Open rsuwa opened 3 years ago

rsuwa commented 3 years ago

When I run run run_smarts.py, I get the following error How can I fix this?

Traceback (most recent call last):
  File "examples/run_smarts.py", line 16, in <module>
    from gym_hiway.env.list_hiway_env import ListHiWayEnv
ModuleNotFoundError: No module named 'gym_hiway'

https://github.com/ying-wen/malib/blob/7cd2a4af55cf1f56da8854e26ea7a4f3782ceea2/examples/run_smarts.py#L16

ying-wen commented 3 years ago

Hi @rsuwa , since the SMARTS environment (gym_hiway) has changed a lot, this 'gym_hiway.env.list_hiway_env' interface is not working anymore. Please ref https://github.com/ying-wen/pymarl/blob/master/src/envs/smarts_env.py and https://github.com/huawei-noah/SMARTS for the new SMARTS environment interface.

zyzhang1130 commented 1 year ago

https://github.com/ying-wen/pymarl/blob/master/src/envs/smarts_env.py also has issue because AgentPolicy is deprecated (- Removed deprecated class AgentPolicy from agent.py.)