5

Here is the output:

Traceback (most recent call last):
File "/usr/bin/anki", line 6, in <module>
import aqt
File "/usr/share/anki/aqt/__init__.py", line 4, in <module>
from anki import version as _version
File "/usr/share/anki/anki/__init__.py", line 14, in <module>
from anki.storage import Collection
File "/usr/share/anki/anki/storage.py", line 11, in <module>
from anki.collection import _Collection
File "/usr/share/anki/anki/collection.py", line 25, in <module>
from anki.sound import stripSounds
File "/usr/share/anki/anki/sound.py", line 87, in <module>
from anki.mpv import MPV, MPVBase
File "/usr/share/anki/anki/mpv.py", line 39, in <module>
from distutils.spawn import find_executable
ModuleNotFoundError: No module named 'distutils.spawn'
  • 1
    How did you install Anki? Has it ever worked for you? – Melebius May 23 '18 at 8:49
  • I used the software manager. I have installed and used it fine on my main computer (running Ubuntu Budgie 18.04, the same as my laptop). On my laptop however I get that message, so something must be different on my laptop somehow. – Glass Wizzard May 23 '18 at 9:28
  • I am sorry, if something is working on one of your machines and not on another, you must find the difference. We cannot do it for you unless you provide enough details. – Melebius Jun 4 '18 at 13:32
11

After installing python3-distutils, it should launch. I had the same issue.

sudo apt-get install python3-distutils
| improve this answer | |
  • This is the right solution and should be the accepted answer. @Glass Wizard, can you mark it as such? – ralien May 23 '19 at 10:10
0

Although it works for me as well to install the python3 disutils as well, it is probably better to remove the old version you are probably using and downloadind the latest version from https://apps.ankiweb.net/#linux There are specific instructions in that page, how to proceed to install anki.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.