Hello,
I have these errors as the mpd-skill is loading in MyCroft cli console.
2020-12-21 05:41:15.039 | INFO | 556 | mpd | Calling MPD connect('192.168.0.57', '6600', timeout=None)
2020-12-21 05:41:15.054 | INFO | 556 | MPDSkill | Fetching stuff!!!
2020-12-21 05:41:15.054 | INFO | 556 | MPDSkill | Albums...
2020-12-21 05:41:15.119 | INFO | 556 | MPDSkill | Artists...
2020-12-21 05:41:15.178 | INFO | 556 | MPDSkill | Genres...
2020-12-21 05:41:15.199 | INFO | 556 | MPDSkill | Titles...
2020-12-21 05:41:15.339 | INFO | 556 | mpd | Calling MPD disconnect()
2020-12-21 05:41:15.340 | INFO | 556 | mpd | Calling MPD connect('192.168.0.57', '6600', timeout=None)
2020-12-21 05:41:15.483 | ERROR | 556 | MPDSkill | An error occured while collecting data
Traceback (most recent call last):
File "/opt/mycroft/skills/mycroft-mpd-skill.mycroftai/init.py", line 47, in list
return super().list(*args)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 629, in decorator
return wrapper(self, name, args, bound_decorator(self, returnValue))
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 254, in _execute
return retval()
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 623, in decorator
return function(self, *args, **kwargs)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 398, in _fetch_list
return self._wrap_iterator(self._read_list())
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 374, in _wrap_iterator
return list(iterator)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 318, in _read_list
for key, value in self._read_pairs():
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 314, in _read_pairs
pair = self._read_pair(separator)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 302, in _read_pair
line = self._read_line()
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 282, in _read_line
line = self._rfile.readline()
File "/home/emilot/.pyenv/versions/3.7.9/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 4543: invalid start byte
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/mycroft/skills/mycroft-mpd-skill.mycroftai/init.py", line 140, in _connect
self.titles = self.server.list('title')
File "/opt/mycroft/skills/mycroft-mpd-skill.mycroftai/init.py", line 50, in list
return super().list(*args)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 629, in decorator
return wrapper(self, name, args, bound_decorator(self, returnValue))
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 254, in _execute
return retval()
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 623, in decorator
return function(self, *args, **kwargs)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 398, in _fetch_list
return self._wrap_iterator(self._read_list())
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 374, in _wrap_iterator
return list(iterator)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 318, in _read_list
for key, value in self._read_pairs():
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 314, in _read_pairs
pair = self._read_pair(separator)
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 302, in _read_pair
line = self._read_line()
File "/home/emilot/programs/mycroft-core/.venv/lib/python3.7/site-packages/mpd.py", line 282, in _read_line
line = self._rfile.readline()
File "/home/emilot/.pyenv/versions/3.7.9/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 3110: invalid start byte
After that it won't found any song, artist, etc... and said "no playlists found"
I use latest Master branch of Mycroft and i tried with fuzzy and rapidfuzz.
I have generating "locale-gen" with en_US.UTF-8 in ArchlinuxARM
Thank you.