[Python-apps-team] Bug#975639: beets: mpdstats plugin needs updating to work with python-mpd2 2.0.0

Simon McVittie smcv at debian.org
Tue Nov 24 12:49:05 GMT 2020


Package: beets
Version: 1.4.9-7
Severity: normal
Tags: upstream
Forwarded: https://github.com/beetbox/beets/issues/3798

https://github.com/Mic92/python-mpd2 version 2.0.0 dropped support for the
use_unicode parameter to the MPDClient constructor. This parameter doesn't
do anything in Python 3, which always behaves like use_unicode=True. It
was important in Python 2.

In Debian's python3-mpd package I've added back
compatibility with the use_unicode parameter for now (see
https://github.com/Mic92/python-mpd2/pull/142) but I don't know whether
that will be accepted upstream.

If beets only supports Python 3, dropping the parameter should be a
sufficient fix: replace MPDClient(use_unicode=True) with MPDClient().

If it still supports Python 2, something similar to
https://github.com/multani/sonata/pull/116 should work.

Thanks,
    smcv



More information about the Python-apps-team mailing list