Skip to content

Yaml warning: loading can be potentially harmful #141

Description

@tsjayram

Describe the bug
The YAML loading can potentially be harmful, as seen in the run below. Applies to all scripts that use it.

/Users/jayram/Projects/mi-prometheus/miprometheus/utils/param_interface.py:283: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
params_from_yaml = yaml.load(stream)

Desktop (please complete the following information):

  • OS: both MacOS and Ubuntu Linux
  • Python version 3.7
  • PyTorch version 1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions