Closed fatbringer closed 2 years ago
Hi i asked this question on stackoverflow and had gotten the answer.
Here is the linked, with solution quoted. Someone else had answered. I shall not take credit for this. https://stackoverflow.com/questions/69849870/typeerror-load-missing-1-required-positional-argument-loader/69923655#69923655
yaml.load(fo.read(), Loader=yaml.FullLoader)
Because It seems that pyyaml>=5.1 requires a Loader argument.
it works ,good comment @fatbringer
Hi i asked this question on stackoverflow and had gotten the answer.
Here is the linked, with solution quoted. Someone else had answered. I shall not take credit for this. https://stackoverflow.com/questions/69849870/typeerror-load-missing-1-required-positional-argument-loader/69923655#69923655
yaml.load(fo.read(), Loader=yaml.FullLoader)
Because It seems that pyyaml>=5.1 requires a Loader argument.
Good~! Thank you @fatbringer
Hello. I am trying to run your programme after installing pip install -r requirements.txt However, i have ran into an error "TypeError: load() missing 1 required positional argument: 'Loader'"
This is the full output:
I have found some suggestions on github, such as in here https://stackoverflow.com/questions/69564817/typeerror-load-missing-1-required-positional-argument-loader-in-google-col, which suggests to change yaml.load to yaml.safe_load
However, doing so leads me to this error instead
Has anyone encountered anything similar ? Thank you !