Jiwonjeon9603 / MASER

This repository is an implementation of "MASER: Multi-Agent Reinforcement Learning with Subgoals Generated from Experience Replay Buffer" accepted to ICML 2022.
20 stars 7 forks source link

The modules package and requirements.txt are missing #1

Closed tt1207tt closed 1 year ago

tt1207tt commented 2 years ago

hello! Running error, missing something The modules package and requirements.txt are missing Can you supplement the full version of the code? Thank you very much!!!

Jiwonjeon9603 commented 2 years ago

Hello! Thanks for your interest.

I uploaded requirements.txt, so please check it.

If you have any questions, please let me know.

bbqp0313 commented 2 years ago

Thanks for uploading requirements.txt but there are still missing files in modules package(ie. agent and mixer) Can you supplement these files?

Isaac009 commented 1 year ago

When it's about to install the following package cffi @ file:///tmp/build/80754af9/cffi_1625814693446/work

I get the error below: ERROR: Exception: Traceback (most recent call last): File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3101, in init super(Requirement, self).init(requirement_string) File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/_vendor/packaging/requirements.py", line 101, in init raise InvalidRequirement("Invalid URL given") pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL given

Could you please help us to resolve this issue? We will appreciate it.

Jiwonjeon9603 commented 1 year ago

Thanks for uploading requirements.txt but there are still missing files in modules package(ie. agent and mixer) Can you supplement these files?

Hello, sorry for late answer. I uploaded modules package!

Thanks

Jiwonjeon9603 commented 1 year ago

When it's about to install the following package cffi @ file:///tmp/build/80754af9/cffi_1625814693446/work

I get the error below: ERROR: Exception: Traceback (most recent call last): File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3101, in init super(Requirement, self).init(requirement_string) File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/_vendor/packaging/requirements.py", line 101, in init raise InvalidRequirement("Invalid URL given") pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL given

Could you please help us to resolve this issue? We will appreciate it.

Hi,

I think you should install the package following with this webpage.

If you have more question, please reply to me :)

Isaac009 commented 1 year ago

When it's about to install the following package cffi @ file:///tmp/build/80754af9/cffi_1625814693446/work I get the error below: ERROR: Exception: Traceback (most recent call last): File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/init.py", line 3101, in init super(Requirement, self).init(requirement_string) File "/usr/share/python-wheels/pkg_resources-0.0.0-py2.py3-none-any.whl/pkg_resources/_vendor/packaging/requirements.py", line 101, in init raise InvalidRequirement("Invalid URL given") pkg_resources.extern.packaging.requirements.InvalidRequirement: Invalid URL given Could you please help us to resolve this issue? We will appreciate it.

Hi,

I think you should install the package following with this webpage.

If you have more question, please reply to me :)

Thank you!! It seems to go somewhere, but I hit this error again,

[ERROR 17:27:12] pymarl Failed after 0:00:00! Traceback (most recent call last): File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/sacred/experiment.py", line 312, in run_commandline return self.run( File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/sacred/experiment.py", line 276, in run run() File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/sacred/run.py", line 238, in call self.result = self.main_function(args) File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/sacred/config/captured_function.py", line 42, in captured_function result = wrapped(args, **kwargs) File "main.py", line 36, in my_main run(_run, config, _log) File "user_home/Documents/research/MARL/MASER/run.py", line 52, in run run_sequential(args=args, logger=logger) File "user_home/Documents/research/MARL/MASER/run.py", line 86, in run_sequential env_info = runner.get_env_info() File "user_home/Documents/research/MARL/MASER/runners/episode_runner.py", line 38, in get_env_info return self.env.get_env_info() File "user_home/Documents/research/MARL/MASER/envs/multiagentenv.py", line 73, in get_env_info "units_type_id": self.get_units_type_id(), File "user_home/Documents/research/MARL/MASER/envs/starcraft2/starcraft2.py", line 824, in get_units_type_id self.reset() File "user_home/Documents/research/MARL/MASER/envs/starcraft2/starcraft2.py", line 348, in reset self._launch() File "user_home/Documents/research/MARL/MASER/envs/starcraft2/starcraft2.py", line 293, in _launch self._run_config = run_configs.get() File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/init.py", line 36, in get return max(configs.values(), key=lambda c: c.priority())(version=version) File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/platforms.py", line 175, in init super(Linux, self).init(base_dir, "SC2_x64", version=version, env=env) File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/platforms.py", line 57, in init super(LocalBase, self).init( File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/lib.py", line 128, in init self.version = self._get_version(version) File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/lib.py", line 236, in _get_version versions = self.get_versions(containing=game_version) File "user_home/python_envs/MASER_ENV/lib/python3.8/site-packages/pysc2/run_configs/platforms.py", line 90, in get_versions for v in os.listdir(versions_dir) FileNotFoundError: [Errno 2] No such file or directory: 'user_home/Documents/research/MARL/MASER/3rdparty/StarCraftII/Versions'

Having issues when MASER tries to locate 3rdparty/StarCraftII/Versions

Following instructions on smac installation the packages were install here: user_home/StarCraftII and the version could easily located here: user_home/StarCraftII/Versions/Base75689/SC2_x64

Do I have to install StarCraftII to MASER/3rdparty for it to work properly or Could you suggest how to configure the path or installation in such a way that the sacred can easily locate the required file/directory?

Jiwonjeon9603 commented 1 year ago

Hello!

You need to move StarCraft2 folder which you installed in user_home/StarCraftII to 'user_home/Documents/research/MARL/MASER/3rdparty/StarCraftII/' this location.

If you have more issues, please contact to my e-mail address. I will share a full code.

Thanks :)

Isaac009 commented 1 year ago

Hello!

You need to move StarCraft2 folder which you installed in user_home/StarCraftII to 'user_home/Documents/research/MARL/MASER/3rdparty/StarCraftII/' this location.

If you have more issues, please contact to my e-mail address. I will share a full code.

Thanks :)

This solution solved the problem. Thanks a lot. Everything works fine now.