[Pkg-xmpp-devel] Bug#921095: gajim: traceback when starting gajim: got an unexpected keyword argument 'lang'

Jamie McClelland jm at mayfirst.org
Fri Feb 1 14:01:32 GMT 2019


Package: gajim
Version: 1.1.2-1
Severity: grave
Justification: renders package unusable

Dear Maintainer,

After upgrading to gajim 1.1.2, I received a traceback when starting
gajim. Gajim started, but was unable to connect to any servers.

The problem went away with this change:

--- /usr/lib/python3/dist-packages/gajim/common/connection.py.orig	2019-02-01 08:54:36.407844099 -0500
+++ /usr/lib/python3/dist-packages/gajim/common/connection.py	2019-02-01 08:54:50.134528967 -0500
@@ -1038,8 +1038,7 @@
         con = nbxmpp.NonBlockingClient(
             domain=self._hostname,
             caller=self,
-            idlequeue=app.idlequeue,
-            lang=i18n.LANG)
+            idlequeue=app.idlequeue)

         # increase default timeout for server responses
         nbxmpp.dispatcher_nb.DEFAULT_TIMEOUT_SECONDS = \


Full traceback:

0 jamie at turkey:~$ gajim
Found default language: en
No translations found
Dirs searched: [PosixPath('/usr/local/share'), PosixPath('/usr/share')]
02/01/2019 08:52:52 (W) gajim.plugin_system Plugin chatstate not loaded, plugin incompatible with current version of gajim: 1.1.2 > 1.0.3
02/01/2019 08:52:52 (W) gajim.plugin_system Plugin without min/max version: gotr
02/01/2019 08:52:52 (W) gajim.c.resolver Could not resolve host: No DNS record of the requested type for “_xmppconnect.mayfirst.org”
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 116, in _on_ready_srv
    super()._on_ready(host, 'srv', result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 69, in _on_ready
    callback(host, result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 951, in _on_resolve_srv
    self._connect_to_next_host()
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 1042, in _connect_to_next_host
    lang=i18n.LANG)
TypeError: __init__() got an unexpected keyword argument 'lang'
02/01/2019 08:52:52 (W) gajim.c.resolver Could not resolve host: No DNS record of the requested type for “_xmppconnect.conversations.im”
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 116, in _on_ready_srv
    super()._on_ready(host, 'srv', result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 69, in _on_ready
    callback(host, result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 951, in _on_resolve_srv
    self._connect_to_next_host()
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 1042, in _connect_to_next_host
    lang=i18n.LANG)
TypeError: __init__() got an unexpected keyword argument 'lang'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 116, in _on_ready_srv
    super()._on_ready(host, 'srv', result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/resolver.py", line 69, in _on_ready
    callback(host, result_list)
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 951, in _on_resolve_srv
    self._connect_to_next_host()
  File "/usr/lib/python3/dist-packages/gajim/common/connection.py", line 1042, in _connect_to_next_host
    lang=i18n.LANG)
TypeError: __init__() got an unexpected keyword argument 'lang'

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gajim depends on:
ii  gir1.2-gtk-3.0       3.24.2-3
ii  python3              3.7.1-3
ii  python3-cssutils     1.0.2-1
ii  python3-gi           3.30.4-1
ii  python3-gi-cairo     3.30.4-1
ii  python3-idna         2.6-1
ii  python3-keyring      17.1.1-1
ii  python3-nbxmpp       0.6.8-1
ii  python3-openssl      18.0.0-1
ii  python3-precis-i18n  1.0.0-1

Versions of packages gajim recommends:
ii  aspell-en [aspell-dictionary]        2018.04.16-0-1
ii  ca-certificates                      20170717
ii  dbus                                 1.12.12-1
ii  fonts-noto-color-emoji               0~20180810-1
pn  gajim-omemo                          <none>
pn  gajim-pgp                            <none>
ii  gir1.2-farstream-0.2                 0.2.8-4
ii  gir1.2-geoclue-2.0                   2.5.1-1
ii  gir1.2-gspell-1                      1.6.1-2
ii  gir1.2-gst-plugins-base-1.0          1.14.4-1
ii  gir1.2-gstreamer-1.0                 1.14.4-1
ii  gir1.2-gupnpigd-1.0                  0.2.5-3
ii  gir1.2-secret-1                      0.18.6-3
pn  gstreamer0.10-plugins-ugly           <none>
ii  notification-daemon                  3.20.0-4
ii  pulseaudio-utils                     12.2-2
ii  python3-crypto                       2.6.1-9+b1
ii  python3-dbus                         1.2.8-2+b3
ii  python3-gnupg                        0.4.3-2
ii  python3-pil                          5.3.0-1
ii  sox                                  14.4.2-3
ii  xfce4-notifyd [notification-daemon]  0.4.3-1

Versions of packages gajim suggests:
ii  avahi-daemon      0.7-4+b1
ii  libxss1           1:1.2.3-1
pn  nautilus-sendto   <none>
pn  python3-gconf     <none>
pn  python3-gnome2    <none>
pn  python3-kerberos  <none>
ii  python3-pycurl    7.43.0.1-0.2+b1

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/python3/dist-packages/gajim/common/connection.py (from gajim package)


More information about the Pkg-xmpp-devel mailing list