Skip to content

OpenAPT fails to load schema due to deprecated call to yaml.load without Loader argument #6

Description

@spirent-leetaylor

When working on Debian 12/bookworm with python3.11 I see the following error:

Traceback (most recent call last):
File "/home/ltaylor/.local/bin/openapt", line 8, in
sys.exit(main())
^^^^^^
File "/home/ltaylor/.local/lib/python3.11/site-packages/allocloud/openapt/main.py", line 64, in main
run(**args)
File "/home/ltaylor/.local/lib/python3.11/site-packages/allocloud/openapt/init.py", line 37, in run
_schema = yaml.load(f)
^^^^^^^^^^^^
TypeError: load() missing 1 required positional argument: 'Loader'

Please see https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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