Pisound-config crashes when choosing update

Hello folks,

Happy new Year everyone, stay healthy, get wealthy and be blessed!

Raspberry Pi 4B w/PiSound module and patchbox sw.
sudo pisound-config -> Update PiSound results in a crash and the following traceback.
Help would be appreciated.

Best wishes, cw

Traceback (most recent call last):
  File "/usr/local/pisound/pisound-config/main.py", line 177, in <module>
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 286, in run
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 384, in _run
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 788, in run
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 825, in _loop
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 404, in <lambda>
    event_loop, callback, self.get_available_raw_input())
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 502, in parse_input
    callback(processed, processed_codes)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 411, in _update
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 511, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 840, in keypress
    return self._original_widget.keypress((maxcol,maxrow-top-bottom), key)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 622, in keypress
    return self._original_widget.keypress(maxvals, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1131, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/lib/python3/dist-packages/urwid/listbox.py", line 999, in keypress
    key = focus_widget.keypress((maxcol,),key)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 540, in keypress
  File "/usr/lib/python3/dist-packages/urwid/widget.py", line 460, in _emit
    signals.emit_signal(self, name, self, *args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 265, in emit
    result |= self._call_callback(callback, user_arg, user_args, args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 295, in _call_callback
    return bool(callback(*args_to_pass))
  File "/usr/local/pisound/pisound-config/main.py", line 171, in run_sh
    view = views.run_sh(loop, selection, selection['title'], selection['path'], parent=install_menu)
  File "/usr/local/pisound/pisound-config/views.py", line 115, in run_sh
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 587, in draw_screen
    self.screen.draw_screen(self.screen_size, canvas)
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 850, in draw_screen
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 279, in write
UnicodeEncodeError: 'latin-1' codec can't encode character '\ufffd' in position 3: ordinal not in range(256)

Hi, thank you for reporting this, we’ll look into it.

Btw, are you using some non-default locale or language on the system?

Hi Giedrius,

thank you for taking care of this issue.

No, I stuck to the defaults …

Greetings, cw


Hmm, it worked without any errors on our device. Could you please post the output of these commands here:

cd /usr/local/pisound
git status


patch@Jakobus:/usr/local/pisound $ git status

Auf Branch patchbox

Ihr Branch ist auf demselben Stand wie ‘origin/patchbox’.

nichts zu committen, Arbeitsverzeichnis unver▒ndert

Hm. This is german with destroyed special character (a with : above)…

The user interface is in English.

Any idea how you got it to be in German? :slight_smile: I think if I change the system config in the same way, I’d be able to reproduce the issue in pisound-config.

My only guess is the activation of the xServer (I do access the system via Remote Desktop). I also installed jOrgan which uses german as default language, but this should noch change the system settings …

Should I try and change the language setting back to English by sudo raspi-config?