MARLlib icon indicating copy to clipboard operation
MARLlib copied to clipboard

MARLLIB Conda Installation Error

Open Wangyuxuan-xuan opened this issue 8 months ago • 7 comments

Hello,

I am new to MARLLIB and trying to install it by following official documentation installation guide

However, it always fails on installing requirement step, specifically failing on installing gym

pip install -r requirements.txt
Collecting gym==0.20.0 (from -r requirements.txt (line 15))
  Using cached gym-0.20.0.tar.gz (1.6 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      \anaconda3\envs\marllib\lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
        warnings.warn(msg)
      error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I am using a new conda env and did exactly as it is on MARLlib Installation guide. Is it because the gym is outdated?

Would appreciate your help!

Thanks

Wangyuxuan-xuan avatar Apr 07 '25 09:04 Wangyuxuan-xuan

I think marllib is difficult to use now. marllib contains many important components that appear to have conflicting versions. example: I tried marllib==1.0.3 requires numpy==1.20.3, but gymnasium==1.0.0 requires numpy>=1.21.0. There are so many similar version conflicts that I feel that marllib is no longer suitable for people who have not used it before. (T_T)

Fhy0720 avatar May 19 '25 09:05 Fhy0720

Hi !

I got the installation of the requirement.txt to work following this Stack Overflow answer : https://stackoverflow.com/a/77205046

axnj2 avatar Jul 07 '25 16:07 axnj2

Hi !

I got the installation of the requirement.txt to work following this Stack Overflow answer : https://stackoverflow.com/a/77205046

Hi! Have you successfully configured the environment and run it? I just want to make sure that MARLlib could still be used now. Also, I found "from marllib import marl" raise an error after I complete the installation following official documentation installation guide with some struggle, what else should I do?

SpikeW726 avatar Jul 31 '25 09:07 SpikeW726

I found MARLlib a bit too difficult to set up for my use case, so I opted to not use it sorry I can't help you.

axnj2 avatar Aug 02 '25 16:08 axnj2

I found MARLlib a bit too difficult to set up for my use case, so I opted to not use it sorry I can't help you.

what did you use instead?

ParuyrGevorgyan avatar Aug 16 '25 00:08 ParuyrGevorgyan

I found MARLlib a bit too difficult to set up for my use case, so I opted to not use it sorry I can't help you.

what did you use instead?

I am currently using CleanR. https://github.com/vwxyzjn/cleanrl Because in my case, I didn't need multiple Marl algorithms. I just wanted to use Mappo with my own PettingZoo-based environment. Therefore, I chose to imitate the coding style in CleanRL, and write my own Mappo algorithm. It might be a bit crude, but it seems to be working well so far : )

Fhy0720 avatar Aug 18 '25 02:08 Fhy0720

I found MARLlib a bit too difficult to set up for my use case, so I opted to not use it sorry I can't help you.

what did you use instead?

Or maybe you can try this https://github.com/Replicable-MARL/MARLlib/issues/253#issuecomment-2883224364. Maybe follow this reply you can use marllib. I didn't try it cause i don't know how to use docker.

Fhy0720 avatar Aug 18 '25 02:08 Fhy0720