Unable to install mopidy and mopidy-ytmusic plugin

Hi,

I’ve install mopidy and its ytmusic plugin as a service with the following definition:

    mopidy = {
      enable = true;
      extensionPackages = [ pkgs.mopidy-mpd pkgs.mopidy-ytmusic ];
      configuration = "
[mpd]
hostname = ::
      ";
    };

If I start the service I get the following error ModuleNotFoundError: No module named 'ytmusicapi.parsers.utils' even if the python library is correctly installed by the mopidy-ytmusic package.

Any idea about what’s wrong here ?

Found this solution here: