Package: python-xmpp Version: 0.4.1-cvs20080505.4 Severity: important Tags: patch
-- System Information: Debian Release: 8.8 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-xmpp depends on: ii python 2.7.9-1 Versions of packages python-xmpp recommends: ii python-dnspython 1.12.0-1 python-xmpp suggests no packages. -- no debconf information When connecting to a xmpp server the library prints out a dns exception error which can be tracked down to a wrong, maybe old, useage of the API. The following patch fixes the issue: --- transports.py 2015-03-21 15:36:01.000000000 +0100 +++ transports.py.fix 2017-07-27 16:00:04.913835081 +0200 @@ -77,7 +77,7 @@ for query in possible_queries: try: if HAVE_DNSPYTHON: - answers = [x for x in dns.resolver.query(query, 'SRV')] + answers = [x for x in dns.resolver.query(query, rdtype=dns.rdatatype.SRV)] if answers: host = str(answers[0].target) port = int(answers[0].port) Kind Regards, Markus Wigge