mplayer not found

arthur's Avatar

arthur

22 Jan, 2020 01:11 PM

Hi

I just installed beta3, directly from the beta download page.
I was trying to review a card with sound
I had the following error

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.20 (95b497cc) Python 3.8.1 Qt 5.14.0 PyQt 5.13.2
Platform: Linux
Flags: frz=True ao=False sv=1

Caught exception:
Traceback (most recent call last):
File "aqt/taskman.py", line 65, in on_closures_pending File "aqt/taskman.py", line 53, in File "aqt/sound.py", line 233, in File "aqt/sound.py", line 271, in _on_done File "concurrent/futures/_base.py", line 432, in result File "concurrent/futures/_base.py", line 388, in __get_result File "concurrent/futures/thread.py", line 57, in run File "aqt/sound.py", line 233, in File "aqt/sound.py", line 398, in _play File "subprocess.py", line 854, in __init_ File "subprocess.py", line 1702, in _execute_child FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: 'mplayer'

Last line means : no file or folder of this type "mplayer"
With previous version of anki, sounds worked correctly.

I'm on ubuntu.

Once this occur, the app becomes extremely slow. It takes more than 15 seconds before I can leave the reviewer or before it loads another card/the answer

  1. Support Staff 1 Posted by Damien Elmes on 23 Jan, 2020 06:46 AM

    Damien Elmes's Avatar

    Is mplayer on your path? What does the following in the debug console show?

    from aqt.sound import _packagedCmd
    pp(_packagedCmd(["mplayer"])[0])

  2. 2 Posted by arthur on 23 Jan, 2020 11:11 AM

    arthur's Avatar

    It's not on my path.

    I didn't see any thing in the packaged beta stating I should install it

    It answers

     >>> from aqt.sound import _packagedCmd

    ... pp(_packagedCmd(["mplayer"])[0])

    ['mplayer']

    I can install mplayer and test. I won't do it until you tell me what
    other informations you need

    Le 22/01/2020 à 22:46, Damien Elmes a écrit :

  3. Support Staff 3 Posted by Damien Elmes on 23 Jan, 2020 11:37 AM

    Damien Elmes's Avatar

    From the readme file that is included in the package:

    To play and record audio, mpv and lame must be installed. If mpv is not
    installed or too old, Anki will try to fall back on using mplayer.

    Do you have mpv installed? What does it say when running Anki in a terminal?

  4. 4 Posted by arthur on 23 Jan, 2020 12:36 PM

    arthur's Avatar

    I did follow the instruction from https://apps.ankiweb.net/index.html and did not thought that I had to follow more instruction

    /usr/bin/mpv: /usr/local/share/anki/bin/liblzma.so.5: version `XZ_5.2' not found (required by /lib/x86_64-linux-gnu/libarchive.so.13) mpv too old, reverting to mplayer

    I then installed mplayer, and got the same message (makes sens, since I didn't change mpv)

    mpv version is :
    mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects

  5. Support Staff 5 Posted by Damien Elmes on 24 Jan, 2020 07:58 AM

    Damien Elmes's Avatar

    Thanks Arthur, please let me know if the next beta doesn't fix it.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac