Yaml is installed and the old code runs as soon as the error is reported
YAMLLoadWarning: calling yaml.load() without Loader=… is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details .
solve
You don’t need to change a lot of code and add a sentence. Just yaml.load(list, Loader=yaml.FullLoader)
add Loader=yaml.FullLoader. But there are more usages. See below
Then no more errors