Skip to content

Conversation

NeroBurner
Copy link
Contributor

@NeroBurner NeroBurner commented Jul 17, 2024

The yaml.load() function without a Loader keyword is deprecated since pyyaml 5.1 and removed with pyyaml 6.0.

Ubuntu 24.04 noble ships with pyyaml 6.0.1 breaking python-aptly and aptly-publisher.

Fix it by using the recommended yaml.safe_load() function.

Fixes: #32

Edit: tested against aptly 1.5.0+162+g8029305d on Ubuntu 20.04, 22.04, 24.04

Ubuntu 18.04 is broken since #30 (which fixed the newer Ubuntu versions), so for me this is ok

edit: just to be clear, the only thing not working on Ubuntu 18.04 with the newest master branch is publish --recreate, just publish still works

The `yaml.load()` function without a `Loader` keyword is deprecated
since `pyyaml 5.1` and removed with `pyyaml 6.0`.

Ubuntu 24.04 noble ships with `pyyaml 6.0.1` breaking `python-aptly` and
`aptly-publisher`.

Fix it by using the recommended `yaml.safe_load()` function.

Fixes: tcpcloud#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ubuntu 24.04 noble errors at loading yaml
1 participant