New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'utf8' codec can't decode ... mopidy/m3u/playlists.py #1209

Closed
r0k opened this Issue Jul 4, 2015 · 3 comments

Comments

2 participants
@r0k

r0k commented Jul 4, 2015

After apt-get updating my debian jessie and updating all pip's on a beaglebone black recently mopidy didnt started up anymore. The console showed an exception like UnicodeDecodeError: 'utf8' codec can't decode ... mopidy/m3u/playlists.py during loading the modules configured in mopidy.conf

Research showed that my local stored playlist filename contained a "special char" (the german "ö") in a wrong coding which caused mopidy startup to fail (filename, not file content).

The playlist has been written with the previous configuration, worked fine, and was broken after the last update.

Best Regards,
Oliver

@jodal jodal added C-bug A-m3u labels Jul 5, 2015

@jodal

This comment has been minimized.

Member

jodal commented Jul 5, 2015

This is probably enough info to go on to fix this, but do you have the complete stack trace too?

@jodal jodal added this to the v1.0.8 milestone Jul 5, 2015

@jodal

This comment has been minimized.

Member

jodal commented Jul 5, 2015

What version of Mopidy are you running? #1175 is a similar error fixed in Mopidy 1.0.5.

@r0k

This comment has been minimized.

r0k commented Jul 11, 2015

Jodal,

sorry for the delay. Its 1.0.7 i am running and the bug #1175 seems to cover unicode titles inside a playlist. My described bug is caused by a "wrong" character / character encoding in the file name of the playlist itself.

The playlist has been written previously by mopidy (mopidy-mobile frontend) and crashed on startup after updating. UnicodeDecodeError: 'utf8' codec can't decode ... mopidy/m3u/playlists.py
Renaming the playlist file fixed the bug and made mopidy to come up again.

I have tried to reproduce the bug by renaming a playlist file in several ways to force the mentioned exception and a stack trace... nothing worked. It seems when using the command line the file / filename encoding is always right. Tried: ö, ö, �.

@jodal jodal self-assigned this Jul 21, 2015

@jodal jodal closed this in fb859a9 Jul 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment