Syncplay / syncplay

Client/server to synchronize media playback on mpv/VLC/MPC-HC/MPC-BE on many computers
http://syncplay.pl/
Apache License 2.0
2.15k stars 214 forks source link

Linux ~> Decode Error #131

Closed DarkNikGr closed 7 years ago

DarkNikGr commented 7 years ago

Hello i get this error after push button run syncplay

my distro is Neon KDE

Traceback (most recent call last): File "/usr/bin/syncplay", line 19, in <module> SyncplayClientManager().run() File "/usr/lib/syncplay/syncplay/clientManager.py", line 12, in run interface.addClient(syncplayClient) File "/usr/lib/syncplay/syncplay/ui/gui.py", line 323, in addClient self.showErrorMessage("Failed to load some settings.") File "/usr/lib/syncplay/syncplay/ui/gui.py", line 663, in showErrorMessage self.newMessage(time.strftime(constants.UI_TIME_FORMAT, time.localtime()) + message + u"<br />") UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position 10: ordinal not in range(128) [1] 22560 segmentation fault syncplay

Can anyone help me?

Et0h commented 7 years ago

What is your system locale? Does it work fine in --no-gui mode?

Et0h commented 7 years ago

Change line 663 of /usr/lib/syncplay/syncplay/ui/gui.py from:

   self.newMessage(time.strftime(constants.UI_TIME_FORMAT, time.localtime()) + message + u"<br />")

To:

   self.newMessage(time.strftime(constants.UI_TIME_FORMAT, time.localtime()).decode('utf-8') + message + u"<br />")

And let me know what happens.

DarkNikGr commented 7 years ago

ok thnx its work but add decode and on line 339 on same file.

Et0h commented 7 years ago

Is eb22f5d1c80fa6a06f29a47735a222f92305d04a an appropriate fix?