oxwhirl/pymarl

TypeError: load() missing 1 required positional argument: 'Loader'

Leopold-Fitz-AI opened this issue · 2 comments

When I first use the smac for pymarl . I use this program "python src/main.py --config=qmix --env-config=sc2 with env_args.map_name=2s3z", then has some wrong message .
Traceback (most recent call last):
File "src/main.py", line 79, in
config_dict = yaml.load(f)
TypeError: load() missing 1 required positional argument: 'Loader'
I don't know the Loader should be what parameter, so I need some help! Thank you !

You may already solved the problem, anyway for those who have the same problem. Install corresponding program first:
ex) pip install PyYAML==3.13

I have encounterd the same issue. For you installed a newer version of pyyaml. Alternatively, you can modify the load() function's parameters:
yaml.load(fo.read(), Loader=yaml.FullLoader)