Skip to content
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

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

Open
torzsok opened this issue Aug 4, 2018 · 6 comments
Open

Comments

@torzsok
Copy link

torzsok commented Aug 4, 2018

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
Copy link
Owner

antosart commented Aug 6, 2018

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
Copy link
Author

torzsok commented Aug 6, 2018

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
Copy link
Author

torzsok commented Aug 6, 2018

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 torzsok closed this as completed Aug 6, 2018
@torzsok torzsok reopened this Aug 6, 2018
@torzsok
Copy link
Author

torzsok commented Aug 6, 2018

Sorry, closed by accident.

@antosart
Copy link
Owner

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
Copy link
Author

torzsok commented Aug 19, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants