antosart / mopidy-cd

A plugin for mopidy for playing music from CD
Apache License 2.0
16 stars 12 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character u'\u0151' #10

Open torzsok opened 6 years ago

torzsok commented 6 years ago

I managed to install to a 2010 mac mini with macos High Sierra, and it reads the disc info well. When I try to play a song, it does not start, and these are the messages I could collect from the terminal:

WARNING Setting GStreamer state to GST_STATE_PLAYING failed WARNING Track is not playable: cd:/9 Traceback (most recent call last): File "/usr/local/Cellar/mopidy/2.1.0_1/libexec/lib/python2.7/site-packages/mopidy/internal/log.py", line 175, in emit message = self.format(record) File "/usr/local/Cellar/mopidy/2.1.0_1/libexec/lib/python2.7/site-packages/mopidy/internal/log.py", line 183, in format message = logging.StreamHandler.format(self, record) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/init.py", line 741, in format return fmt.format(record) File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/init.py", line 465, in format record.message = record.getMessage() File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/init.py", line 329, in getMessage msg = msg % self.args UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128) Logged from file actor.py, line 355 Traceback (most recent call last): File "/usr/local/Cellar/mopidy/2.1.0_1/libexec/lib/python2.7/site-packages/mopidy/internal/log.py", line 176, in emit self.stream.write(message) UnicodeEncodeError: 'ascii' codec can't encode character u'\u0151' in position 68: ordinal not in range(128) Logged from file actor.py, line 314

Thanks in advance for any help.

antosart commented 6 years ago

Seems some problem with the logging. Can you try to comment out the line https://github.com/forscher21/mopidy-cd/blob/5d36f744f419c601b1a991c51b5e80609edcc1c3/mopidy_cd/backend.py#L40 ?

torzsok commented 6 years ago

Thanks for the answer, it still does not play, though. Now it also ejects the disc for some reason. Edit: there is some other reason for ejecting the disc uncommenting the line does not help. Now it says: Error identifying disc: no disc in drive number: 1 OK. So the reason for ejecting the disc was that I shared it. Once I unchecked sharing, it reads the disc properly. Still does not play through mopidy-cd, even when commenting that line out. The error messages are exactly the same with and without the logger line.

torzsok commented 6 years ago

I got one more error message that showed up before. It was a completely fresh macOS install and until I started iTunes once to play a cd and i clicked OK on some permission thing, this line came right after the UniCode stuff: ERROR GStreamer error: gst-core-error-quark: No URI handler implemented for: „cdda”. (12)

I got rid of iTunes this evening completely, and now the same error message is back. I don't know if this is any helpful.

torzsok commented 6 years ago

Sorry, closed by accident.

antosart commented 6 years ago

I don't have a macOS machine, so unfortunately I can't test it there. Could it be related to some missing gstreamer plugin? I am just guessing...

torzsok commented 6 years ago

Any suggestions on how to get more info and get closer to fixing it? What would you do if you had one?