oxwhirl / pymarl

Python Multi-Agent Reinforcement Learning framework
Apache License 2.0
1.89k stars 387 forks source link

how can I debug the code,there is the problem #43

Closed Gezx closed 4 years ago

Gezx commented 4 years ago

I debug it by pycharm, and I put the parameters "--config=qmix --env-config=sc2 with env_args.map_name=2s3z save_model=True save_model_interval=20000" in Edit Configurations. there is: FileNotFoundError: [Errno 2] No such file or directory: '/home/gezhixin/pymarl-master/src/3rdparty/StarCraftII/Versions' I know the path is false, but how can I fix it.

xiaoxuh commented 4 years ago

I also meet this problem. how did you fixed?

hieunq95 commented 4 years ago

I debug it by pycharm, and I put the parameters "--config=qmix --env-config=sc2 with env_args.map_name=2s3z save_model=True save_model_interval=20000" in Edit Configurations. there is: FileNotFoundError: [Errno 2] No such file or directory: '/home/gezhixin/pymarl-master/src/3rdparty/StarCraftII/Versions' I know the path is false, but how can I fix it.

I got the same problem. How did you solve it?

Gezx commented 4 years ago

I debug it by pycharm, and I put the parameters "--config=qmix --env-config=sc2 with env_args.map_name=2s3z save_model=True save_model_interval=20000" in Edit Configurations. there is: FileNotFoundError: [Errno 2] No such file or directory: '/home/gezhixin/pymarl-master/src/3rdparty/StarCraftII/Versions' I know the path is false, but how can I fix it.

I got the same problem. How did you solve it?

You should copy the " 3rdparty" into the src directory.

Gezx commented 4 years ago

I also meet this problem. how did you fixed?

You should copy the " 3rdparty" into the src directory.

hieunq95 commented 4 years ago

I debug it by pycharm, and I put the parameters "--config=qmix --env-config=sc2 with env_args.map_name=2s3z save_model=True save_model_interval=20000" in Edit Configurations. there is: FileNotFoundError: [Errno 2] No such file or directory: '/home/gezhixin/pymarl-master/src/3rdparty/StarCraftII/Versions' I know the path is false, but how can I fix it.

I got the same problem. How did you solve it?

You should copy the " 3rdparty" into the src directory.

Thank you, problem solved!

yangqingsong-victor commented 1 year ago

You can also replace os.environ.setdefault("SC2PATH", os.path.join(os.getcwd(), "3rdparty", "StarCraftII")) with os.environ.setdefault("~/StarCraftII", os.path.join(os.getcwd(), "3rdparty", "StarCraftII")) in "src/envs/init.py", if your platform is Linux. The "~/StarCraftII" is path of your StarCraftII environment.