ncmpcpp crashes instead of connecting to lollypop
Created by: bretter
ncmpcpp is unable to connect to lollypop's mpd remote control interface. Two modes of failure have been observed depending on lollypop's state.
Condition 1) lollypop is loaded and no music is playing then ncmpcpp is launched.
- ncmpcpp stays open but fails to connect to lollypop remote control interface and displays the status: "Connection refused"
- The CLI output from lollypop:
No module named 'pylast'
- Scrobbler disabled
- Auto cover download disabled
- Artist informations disabled
$ sudo pip3 install pylast
['status'] <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
b'volume: 100\nrepeat: 1\nrandom: 0\nsingle: 1\nconsume: 1\nplaylist: 0\nplaylistlength: 0\nstate: stop\nbitrate: 0\naudio: 44100:24:2\nmixrampdb: 0.000000\nOK\n' <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
['plchanges "0"'] <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
b'OK\n' <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
['outputs'] <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
b'outputid: 0\noutputname: null\noutputenabled: 1\nOK\n' <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
['decoders'] <lollypop.mpd.MpdHandler object at 0x7f070c053b70>
MpdHandler::handle(): ['decoders'] 'MpdHandler' object has no attribute '_decoders'
Condition 2) lollypop is loaded and music is playing then ncmpcpp is launched.
- ncmpcpp crahses with the following output:
ncmpcpp: menu_impl.h:332: void NC::Menu<ItemT>::highlight(size_t) [with ItemT = MPD::Song; size_t = long unsigned int]: Assertion 'pos < m_items.size()' failed.
- The CLI output from lollypop is as follows:
No module named 'pylast'
- Scrobbler disabled
- Auto cover download disabled
- Artist informations disabled
$ sudo pip3 install pylast
['status'] <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
b'volume: 100\nrepeat: 1\nrandom: 0\nsingle: 1\nconsume: 1\nplaylist: 0\nplaylistlength: 0\nstate: play\nbitrate: 0\naudio: 44100:24:2\nmixrampdb: 0.000000\nsong: 0\nsongid: 8737\ntime: 7:234\nelapsed: 7\nOK\n' <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
['plchanges "0"'] <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
b'OK\n' <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
['currentsong'] <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
b'file: /home/brettski/Music/Little People/We Are But Hunks of Wood/01. Marzipan Children.flac\nArtist: Little People\nAlbum: We Are But Hunks of Wood\nAlbumArtist: Little People\nTitle: Marzipan Children\nDate: 2012\nGenre: Electronic\nTime: 234\nId: 8737\nPos: 0\nTrack: 1\nOK\n' <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
['outputs'] <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>
b'outputid: 0\noutputname: null\noutputenabled: 1\nOK\n' <lollypop.mpd.MpdHandler object at 0x7f94b0039da0>