milaq / YCast

Self hosted vTuner internet radio service emulation
Other
240 stars 93 forks source link

radiobrowser error #80

Closed 74Michael closed 3 years ago

74Michael commented 3 years ago

Got ycast working on a Raspberry PI 3 with stations.yml. However, when trying to use the radiobrowser I get the following error (taken from the Raspberry PI terminal:

Dec 21 22:41:36 raspberry-pi python3[467]: raise value Dec 21 22:41:36 raspberry-pi python3[467]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request Dec 21 22:41:36 raspberry-pi python3[467]: rv = self.dispatch_request() Dec 21 22:41:36 raspberry-pi python3[467]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request Dec 21 22:41:36 raspberry-pi python3[467]: return self.view_functionsrule.endpoint Dec 21 22:41:36 raspberry-pi python3[467]: File "/usr/local/lib/python3.7/dist-packages/ycast/server.py", line 183, in radiobrowser_landing Dec 21 22:41:36 raspberry-pi python3[467]: len(radiobrowser.get_stations_by_votes()))) Dec 21 22:41:36 raspberry-pi python3[467]: File "/usr/local/lib/python3.7/dist-packages/ycast/radiobrowser.py", line 155, in get_stations_by_votes Dec 21 22:41:36 raspberry-pi python3[467]: print(station_json) Dec 21 22:41:36 raspberry-pi python3[467]: UnicodeEncodeError: 'latin-1' codec can't encode characters in position 131-135: ordinal not in range(256)

Have you seen this before? And is there a fix?

74Michael commented 3 years ago

Problem has been solved. A print statement was in the code of radiobrowser.py on line 155, this code was picked up via sudo pip3 install ycast.

Removing the print statement all works.