DongChen06 / MARL_CAVs

MARL for Autonomous Vehicles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gym.error.UnregisteredEnv: No registered env with id: merge-multi-agent-v0

KumudaBG opened this issue · comments

Hi @Derekabc ,

I have followed the steps mentioned in git repo, also made the MARL and highway-env as directory root. But still have the below error while running the program in PyCharm 2018.3.5 (Community Edition)

Screen Shot 2021-10-31 at 9 51 41 PM

Could you please help.

Thanks in advance

Hi, Kumuda, thanks for your interest. Could you please check whether this file exists?
image
Or you can add the following code in the run_mappo.py.

import sys
sys.path.append("../highway-env")

Thank you for your reply @Derekabc . Please note, this error occurs when I try to run he run_mappo.py from terminal. And both of your suggestions are implemented but still the error appears.

Also when I execute the run_mappo.py using run options (highlighted in white marker) :
Screen Shot 2021-11-01 at 4 42 50 PM

I get the error: "/Users/suhas/venv/bin/python: can't find 'main' module in '/Users/suhas/opt/anaconda3/envs/marl_cav/lib/python3.6'"

You can see the error too in the screenshot provided.

@KumudaBG Could you reach me out via email and we can have a quick chat to find the issues if you want

Hi @Derekabc ,

报错
I have almost the same problem. I have the below error while running the program in a server within a virtualenv created by conda,the version of python is 3.7.
I wonder if I got the right version of gym?

@KumudaBG @qiangyuchuan I just tested the code on a new Ubuntu20.04 machine, it seems it can run successfully without any issues. I made some small changes to the code, thus we do not need to make any directories as the source directory. The main steps are:

  1. download the code.
  2. create the environment and install the libs
  3. click run_xx.py

The issues may come from the different platforms. Following is the libs I have:
image

@KumudaBG It seems the image is broken and I cannot see it.

@KumudaBG It seems the image is broken and I cannot see it.

image

Here is the error @Derekabc

@KumudaBG actually, it's not an error and just tells you that there is no pretrained model to load. You will see the evaluation videos soon.

@Derekabc will wait for it and let you know, thank you.
After the evaluation, will there be a model saved in that folder?

@Derekabc will wait for it and let you know, thank you. After the evaluation, will there be a model saved in that folder?

yes, there should be videos and models saved in the folder.