Closed nitro322 closed 2 months ago
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing instructions.
This seems related: https://github.com/whipper-team/whipper/pull/543
It is unclear to me from the documentation what to replace dump with. The basic usage guide and examples still advertise load/dump etc.
Edit: Calling load/dump methods on the YAML object does not look deprecated.
the functions scan, parse, compose, load, emit, serialize, dump and their variants (all, safe, roundtrip, etc) have been deprecated (the same named methods on YAML() instances are, of course, still there.
To me it looks like the AttributeError itself tells us how to change the code:
AttributeError:
"dump()" has been removed, use
yaml = YAML(typ='unsafe', pure=True)
yaml.dump(...)
instead of file "/usr/lib/python3.11/site-packages/whipper/result/logger.py", line 151
riplog = yaml.dump(
I'm happy to make that change in the develop
branch now.
Actually, it looks like this has already been merged to develop
in commit e0942417a1c267781a8b676789730457dcb2e6fa - so I think we can close this issue.
Oh, that is what confused me. I was comparing it to my change.
Can we get a new release? I know at least NixOS and Arch are using that patch, and soon also Gentoo.
Yeah, I think it's about time for another release. Maybe we should make a ticket for a new release, and see if there's any outstanding minor or major issues that need to be fixed before we make a new release.
I haven't seen @JoeLametta here for a while and he has (busy) after his name, so I don't think he'll mind if I work on a new release.
(If you know of any other patches that gentoo and others are carrying, please do let me know and we can try to integrate them)
As of 0.18.0, ruamel.yaml has deprecated dump(), among other functions. With at least 0.18.5, it's not completely broken, resulting in a whipper crash:
Details about this change can be found here: https://yaml.readthedocs.io/en/latest/
Downgrading to ruamel.yaml 0.17.40 "fixed" the issue for me so I was able to continue ripping CDs, but it'd be great to get this updated so whipper works with newer versions of the library.