Skip to content

yaml.load() without Loader=... is deprecated #5

@inregards2pluto

Description

@inregards2pluto

Hi! When running tic.settings,load_config(), I kept running into an error message that stated something to the effect of "yml.load(ymlfile) is missing required argument Loader". I determined that the most recent version of PyYAML requires the loader argument and was able to get it working by reverting to version 5.4.1 of PyYAML where the loader argument was optional. Could you either specify the version of PyYAML needed in the readme or update the script so that the loader argument is included in the cfg = yaml.load(ymlfile)? It might be worthwhile to update the script since the following warning popped up when I was running the script:

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions