Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Leopold-Fitz-AI opened this issue Nov 3, 2021 · 2 comments

Comments

@Leopold-Fitz-AI
Copy link

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 !

@HyunghoNa
Copy link

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

@JimReno
Copy link

JimReno commented Apr 22, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants