Colab: 'missing argument' error prevents executing the inpainting
CrimsonCuttle opened this issue · comments
CrimsonCutt;e commented
When attempting to execute the inpainting after going through the colab normally as one would, I get the following result:
Traceback (most recent call last):
File "main.py", line 29, in <module>
config = yaml.load(open(args.config, 'r'))
TypeError: load() missing 1 required positional argument: 'Loader'
How do I fix this? Is the colab just broken?
Cross commented
Happens to me too. Looks like its broken
Cross commented
Someone did say:
found a solution here: https://bobbyhadz.com/blog/python-typeerror-load-missing-1-required-positional-argument-loader
You have to edit "main.py" and change line 29 from "config = yaml.load(open(args.config, 'r'))" to "config = yaml.full_load(open(args.config, 'r'))"
The Python "TypeError: load() missing 1 required positional argument: 'Loader'" occurs when we use the yaml.load() method without specifying the Loader keyword argument. To solve the error, use the yaml.full_load() method instead or explicitly set the Loader keyword arg.
In another issue so maybe that can help
Satinder Grewal commented
Someone did say:
found a solution here: https://bobbyhadz.com/blog/python-typeerror-load-missing-1-required-positional-argument-loader You have to edit "main.py" and change line 29 from "config = yaml.load(open(args.config, 'r'))" to "config = yaml.full_load(open(args.config, 'r'))" The Python "TypeError: load() missing 1 required positional argument: 'Loader'" occurs when we use the yaml.load() method without specifying the Loader keyword argument. To solve the error, use the yaml.full_load() method instead or explicitly set the Loader keyword arg.
In another issue so maybe that can help
This definitely fixed it! 🖖