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 after updating mpd: ascii codec can't encode \xe4 #72

Open
carstenhag opened this issue Feb 3, 2015 · 4 comments
Open

Comments

@carstenhag
Copy link

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

Possibly related to #25 ?

@multani
Copy link
Owner

multani commented Feb 3, 2015

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 [email protected] wrote:

Possibly related to #25 ?


Reply to this email directly or view it on GitHub:
#72 (comment)

@carstenhag
Copy link
Author

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

multani commented Feb 4, 2015

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 [email protected] 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:
#72 (comment)

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