Package: gajim Version: 1.0.0~alpha2-1 Severity: normal Hi.
Trying to use gajim-remote, I get the following output: $ gajim-remote prefs_put sounds_on=True Traceback (most recent call last): File "/usr/bin/gajim-remote", line 31, in <module> g.GajimRemote() File "/usr/lib/python3/dist-packages/gajim/gajim_remote.py", line 289, in __init__ res = self.call_remote_method() File "/usr/lib/python3/dist-packages/gajim/gajim_remote.py", line 494, in call_remote_method args = [i.decode(PREFERRED_ENCODING) for i in self.arguments] File "/usr/lib/python3/dist-packages/gajim/gajim_remote.py", line 494, in <listcomp> args = [i.decode(PREFERRED_ENCODING) for i in self.arguments] AttributeError: 'str' object has no attribute 'decode' zsh: exit 1 gajim-remote prefs_put sounds_on=True Apparently, it is related to a change in strings API between python 2 and 3. The following trivial patch seems to fix things: --- /usr/lib/python3/dist-packages/gajim/gajim_remote.py0 2018-01-06 20:25:36.282119870 +0100 +++ /usr/lib/python3/dist-packages/gajim/gajim_remote.py 2018-01-06 20:25:47.014296174 +0100 @@ -491,7 +491,7 @@ """ Calls self.method with arguments from sys.argv[2:] """ - args = [i.decode(PREFERRED_ENCODING) for i in self.arguments] + args = [i for i in self.arguments] args = [dbus.String(i) for i in args] try: res = self.method(*args) I do not know how encoding is treated now by python; there are other uses of PREFERRED_ENCODING that may need updating too. Regards, -- Nicolas George -- System Information: Debian Release: buster/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (50, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.14.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gajim depends on: ii gir1.2-gtk-3.0 3.22.26-2 ii python3 3.6.4-1 ii python3-gi 3.26.1-2 ii python3-gi-cairo 3.26.1-2 ii python3-idna 2.5-1 ii python3-nbxmpp 0.6.2-1 ii python3-openssl 17.5.0-1 ii python3-pyasn1 0.1.9-2 Versions of packages gajim recommends: ii alsa-utils 1.1.3-1 ii aspell-en [aspell-dictionary] 2017.08.24-0-0.1 ii aspell-fr [aspell-dictionary] 0.50-3-8 ii ca-certificates 20170717 ii dbus 1.12.2-1 pn fonts-noto-color-emoji <none> ii gajim-omemo 2.5.4-1 pn gajim-pgp <none> pn gir1.2-farstream-0.2 <none> pn gir1.2-geoclue-2.0 <none> pn gir1.2-gspell-1 <none> pn gir1.2-gst-plugins-base-1.0 <none> pn gir1.2-gstreamer-1.0 <none> pn gir1.2-gupnpigd-1.0 <none> pn gir1.2-networkmanager-1.0 <none> ii gir1.2-secret-1 0.18.5-5 pn gstreamer0.10-plugins-ugly <none> pn notification-daemon <none> ii python3-crypto 2.6.1-8 ii python3-dbus 1.2.4-1+b4 pn python3-gnupg <none> ii python3-pil 4.3.0-2 pn python3-precis-i18n <none> ii sox 14.4.2-3 Versions of packages gajim suggests: pn avahi-daemon <none> ii libxss1 1:1.2.2-1+b2 pn nautilus-sendto <none> pn python3-avahi <none> pn python3-gconf <none> pn python3-gnome2 <none> pn python3-kerberos <none> ii python3-pycurl 7.43.0-2+b1 -- no debconf information
signature.asc
Description: Digital signature