multani / sonata

GTK 3 client for the Music Player Daemon - I'm looking for new maintainers!
GNU General Public License v3.0
124 stars 41 forks source link

UnicodeEncodeError after updating mpd: ascii codec can't encode \xe4 #72

Open carstenhag opened 9 years ago

carstenhag commented 9 years ago

Today I ran mpd, ncmpcpp and sonata and everything worked fine. Then, after running pacman -Syu and it updating mpd, I tried to start sonata again. I'm now getting this error. I haven't run pacman -Syu for some weeks.

carstenh@arch-moteer8 ~> sonata
(sonata:8600): Gtk-WARNING **: Content added to the action area of a dialog using header bars
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/sonata/launcher.py", line 191, in on_application_activate
    sonata = main.Base(args)
  File "/usr/lib/python3.4/site-packages/sonata/main.py", line 759, in __init__
    self.iterate_now()
  File "/usr/lib/python3.4/site-packages/sonata/main.py", line 1065, in iterate_now
    self.iterate()
  File "/usr/lib/python3.4/site-packages/sonata/main.py", line 1026, in iterate
    self.handle_change_status()
  File "/usr/lib/python3.4/site-packages/sonata/main.py", line 1367, in handle_change_status
    self.info_update(True)
  File "/usr/lib/python3.4/site-packages/sonata/main.py", line 1169, in info_update
    update_all)
  File "/usr/lib/python3.4/site-packages/sonata/info.py", line 261, in update
    getattr(self, "_update_%s" % func)(songinfo)
  File "/usr/lib/python3.4/site-packages/sonata/info.py", line 278, in _update_song
    if os.path.exists(path):
  File "/usr/lib/python3.4/genericpath.py", line 19, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4' in position 52: ordinal not in range(128)

mpd.conf

mpd 0.19.8-1
sonata-git v1.7a2.r62.gace5e33-1
Kernel: Linux 3.17.6-1-ARCH x86_64
carstenhag commented 9 years ago

Possibly related to #25 ?

multani commented 9 years ago

I can't do anything until beginning of March, but you might want to try the following to help me fix the bug:

I don't have a working computer for this, so no patch from me before beginning of March, feel free to ping me if I didn't show up by then!

On February 4, 2015 12:22:09 AM GMT+08:00, Carsten H notifications@github.com wrote:

Possibly related to #25 ?


Reply to this email directly or view it on GitHub: https://github.com/multani/sonata/issues/72#issuecomment-72680936

carstenhag commented 9 years ago

Hey, some nice user on #archlinux helped me fix this by executing env LANG='de_DE.utf8' sonata.

locale -ashowed that my LANG wasn't set at all (because I'm using fish-shell etc...)

Not sure why this didn't happen before though, but it seems solved now as sonata starts again.

multani commented 9 years ago

OK cool! I'll this open though, to see if there's no weird thing lying around that I missed in the last patch.

On February 4, 2015 1:07:26 AM GMT+08:00, Carsten H notifications@github.com wrote:

Hey, some nice user on #archlinux helped me fix this by executing env LANG='de_DE.utf8' sonata.

locale -ashowed that my LANG wasn't set at all (because I'm using fish-shell etc...)

Not sure why this didn't happen before though, but it seems solved now as sonata starts again.


Reply to this email directly or view it on GitHub: https://github.com/multani/sonata/issues/72#issuecomment-72690438