New issue by virinci on void-packages repository https://github.com/void-linux/void-packages/issues/46613 Description: ### Is this a new report? Yes ### System Info Void 6.5.6_1 x86_64 ### Package(s) Affected anki-2.1.15_6 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? I made a PR (merged) to fix this issue in the `main` branch. Additionally, this error can be fixed by applying the following patch to the current version packaged by Void Linux. ```patch diff -Naurp0 a/anki/mpv.py b/anki/mpv.py --- a/anki/mpv.py 2023-10-11 17:27:45.701979037 +0000 +++ b/anki/mpv.py 2023-10-11 17:27:07.376263916 +0000 @@ -39 +39 @@ import inspect -from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module +from shutil import which @@ -68 +68 @@ class MPVBase: - executable = find_executable("mpv") + executable = which("mpv") ``` ### Expected behaviour `anki` command should open the Anki application. ### Actual behaviour The `anki` command fails because `distutils` Python module was deprecated in Python 3.10 and it was removed in Python 3.12. It fails with the following error: ``` $ anki Traceback (most recent call last): File "/usr/bin/anki", line 6, in import aqt File "/usr/share/anki/aqt/__init__.py", line 4, in from anki import version as _version File "/usr/share/anki/anki/__init__.py", line 14, in from anki.storage import Collection File "/usr/share/anki/anki/storage.py", line 13, in from anki.collection import _Collection File "/usr/share/anki/anki/collection.py", line 26, in from anki.sound import stripSounds File "/usr/share/anki/anki/sound.py", line 89, in from anki.mpv import MPV, MPVBase File "/usr/share/anki/anki/mpv.py", line 39, in from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'distutils' ``` ### Steps to reproduce 1. Execute the command `anki` in terminal.