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:
ycast.service - YCast internet radio service
Loaded: loaded (/etc/systemd/system/ycast.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-12-21 13:17:07 CET; 9h ago
Main PID: 467 (python3)
Tasks: 1 (limit: 1601)
CGroup: /system.slice/ycast.service
`-467 /usr/bin/python3 -m ycast -l 127.0.0.1 -p 8010 -c /etc/ycast/stations.yml
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)
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?