uoe-agents / epymarl

An extension of the PyMARL codebase that includes additional algorithms and environment support
Apache License 2.0
507 stars 137 forks source link

mpe gym.error #28

Open Bruce-Lan-ZY opened 2 years ago

Bruce-Lan-ZY commented 2 years ago

When I was running the example of mpe python3 src/main.py --config=qmix --env-config=gymma with env_args.time_limit=25 env_args.key="mpe:SimpleSpeakerListener-v0" I met this issue: [ERROR 08:07:39] pymarl Failed after 0:00:00! Traceback (most recent calls WITHOUT Sacred internals): File "src/main.py", line 36, in my_main run(_run, config, _log) File "/root/code/epymarl/src/run.py", line 55, in run run_sequential(args=args, logger=logger) File "/root/code/epymarl/src/run.py", line 87, in run_sequential runner = r_REGISTRY[args.runner](args=args, logger=logger) File "/root/code/epymarl/src/runners/episode_runner.py", line 15, in init self.env = env_REGISTRYself.args.env File "/root/code/epymarl/src/envs/init.py", line 14, in env_fn return env(kwargs) File "/root/code/epymarl/src/envs/init.py", line 81, in init self._env = TimeLimit(gym.make(f"{key}"), max_episode_steps=time_limit) File "/root/anaconda3/envs/pymarl/lib/python3.6/site-packages/gym/envs/registration.py", line 235, in make return registry.make(id, kwargs) File "/root/anaconda3/envs/pymarl/lib/python3.6/site-packages/gym/envs/registration.py", line 128, in make spec = self.spec(path) File "/root/anaconda3/envs/pymarl/lib/python3.6/site-packages/gym/envs/registration.py", line 143, in spec mod_name gym.error.Error: A module (mpe) was specified for the environment but was not found, make sure the package is installed with pip install before calling gym.make()

Did anyone meet this issue?

semitable commented 2 years ago

Hello,

Have you installed MPE as per the readme? https://github.com/uoe-agents/epymarl#installing-lbf-rware-and-mpe

Bruce-Lan-ZY commented 2 years ago

Yes, I reinstall the mpe by the link in this repo.

minglou1984 commented 2 years ago

Hi, I have the same problem, have you solved it?

papoudakis commented 2 years ago

Hello, you have to install the MPE repo that we link in the README.

Tingz0 commented 1 year ago

Hi, I still have the same problem ( I did install the MPE repo link in the README ). Have you solved it ?

Tingz0 commented 1 year ago

I install seaborn and solve this problem.

9721zhang commented 1 year ago

When I was running the example of mpe python3 src/main.py --config=qmix --env-config=gymma with env_args.time_limit=25 env_args.key="mpe:SimpleSpeakerListener-v0" I meet: gym.error.Error: A module (mpe) was specified for the environment but was not found, make sure the package is installed with pip install before calling gym.make()?

I install seaborn but don't solve this problem.

Yuxin916 commented 1 year ago

When I was running the example of mpe python3 src/main.py --config=qmix --env-config=gymma with env_args.time_limit=25 env_args.key="mpe:SimpleSpeakerListener-v0" I meet: gym.error.Error: A module (mpe) was specified for the environment but was not found, make sure the package is installed with pip install before calling gym.make()?

I install seaborn but have the following new problem:

python3.8/site-packages/seaborn/utils.py", line 11, in import pandas as pd File "/home/xxxx/python3.8/site-packages/pandas/init.py", line 16, in raise ImportError( ImportError: Unable to import required dependencies: pytz: No module named 'zoneinfo'