Upstream, this software supports Python 3 [0]. Please provide a Python 3 package for Fedora. According to the Python packaging guidelines [1], software must be packaged for Python 3 if upstream supports it. The guidelines give detailed information on how to do this, and even provide an example spec file [2]. Since users aren't expected to import this tool from Python code, you can just switch to /usr/bin/python3. Alternatively, if you want or need to keep a Python 2 version, the current best practice is to provide subpackages -- this is called "Common SRPM" in the guidelines. It's OK to do this in Rawhide only, however, it would be greatly appreciated if you could push it to Fedora 25 as well. If you need more instructions, a guide for porting Python-based RPMs is available at [3]. If anything is unclear, or if you need any kind of assistance with the porting, you can ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy to help! [0] https://github.com/eonpatapon/mpDris2/blob/master/NEWS#L34 [1] https://fedoraproject.org/wiki/Packaging:Python [2] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file [3] http://python-rpm-porting.readthedocs.io/
Thanks for the bug report. Looking into it.
Created attachment 1233379 [details] Switch to python 3 mpDris2 is fully compatible with python3 (don't forget to change shebang). But python3-mpd is not. mpDris 2 can use python-mpd2 instead (see #1368911) which is python 3 compatible. Playing, pausing, prev/next seem to work.
Thanks for the patch. Applying it now. If we're going to switch to py3 and depend on python-mpd2, though, we're going to have to wait until the package is reviewed and accepted in Fedora. Otherwise mpdris ceases to function. :/
Everything is ready here: http://pkgs.fedoraproject.org/cgit/rpms/mpdris2.git/log/?h=python-mpd2 But I won't merge it to master until python-mpd2 is in Fedora :)
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle. Changing version to '26'.
As I mentioned in bug 1368911, comment 5 this is no longer merely a nice-to-have, because (at least for me) mpDris2 is not functional using python-mpd in current python releases under Fedora 25. It breaks inside the mpd module code. Running /usr/bin/mpDris2 from mpdris2-0.7-2.20160422gita3af302.fc25.noarch under python3, with python3-mpd2 installed (from a locally-built package), functions perfectly with no changes. So, if there's any way to accelerate the acceptance of python-mpd2 into the repo, and then get mpDris2 updated to use python3, it would really be a help.
Here's an F27 scratch build with python-mpd2 if anyone wants to test it out. Seems to work OK here :)
https://koji.fedoraproject.org/koji/taskinfo?taskID=22761698
here's a build for rawhide, now that python-mpd2 is available there: https://koji.fedoraproject.org/koji/buildinfo?buildID=992980 Testers welcome. I'll push updates to stable releases in a bit too. Cheers!
mpdris2-0.7-5.20171028git3c3fe12.fc27 python-mpd2-0.5.5-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7cbd10475c
mpdris2-0.7-5.20171028git3c3fe12.fc27, python-mpd2-0.5.5-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7cbd10475c
mpdris2-0.7-5.20171028git3c3fe12.fc27 python-mpd2-0.5.5-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7cbd10475c
mpdris2-0.7-5.20171028git3c3fe12.fc26 python-mpd2-0.5.5-4.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-865887c093
mpdris2-0.7-5.20171028git3c3fe12.fc26, python-mpd2-0.5.5-4.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-865887c093
mpdris2-0.7-5.20171028git3c3fe12.fc27, python-mpd2-0.5.5-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-7cbd10475c
mpdris2-0.7-5.20171028git3c3fe12.fc27, python-mpd2-0.5.5-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
mpdris2-0.7-5.20171028git3c3fe12.fc26, python-mpd2-0.5.5-4.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.