Package: python-dnspython
Version: 1.8.0-1
Severity: normal

Trying to run this python program on squeeze fails:
---
import dns.query
import dns.tsigkeyring
import dns.update

keyring = dns.tsigkeyring.from_text({
    'updatekey': "randomkeyhere"
})

update = dns.update.Update('example.com', keyring=keyring)
update.replace('laserjet.example.com.', 600, 'cname', 'NPI8C21EF.example.com.')

response = dns.query.tcp(update, '127.0.0.1')
---

results in:
---
Traceback (most recent call last):
  File "dnsup.py", line 12, in <module>
    response = dns.query.tcp(update, '127.0.0.1')
  File "/usr/lib/pymodules/python2.6/dns/query.py", line 218, in tcp
    wire = q.to_wire()
  File "/usr/lib/pymodules/python2.6/dns/update.py", line 241, in to_wire
    return super(Update, self).to_wire(origin, max_size)
  File "/usr/lib/pymodules/python2.6/dns/message.py", line 418, in to_wire
    self.keyalgorithm)
  File "/usr/lib/pymodules/python2.6/dns/renderer.py", line 286, in add_tsig
    algorithm=algorithm)
  File "/usr/lib/pymodules/python2.6/dns/tsig.py", line 88, in sign
    time_mac = struct.pack('!HIH', upper_time, lower_time, fudge)
TypeError: unsupported operand type(s) for &: 'str' and 'long'
---

A patch is available for this problem on the dnspython mailing list, see
http://howl.play-bow.org/pipermail/dnspython-users/2010-August/000155.html


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-dnspython depends on:
ii  python                        2.6.5-11   interactive high-level object-orie
ii  python-support                1.0.9      automated rebuilding support for P

python-dnspython recommends no packages.

python-dnspython suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to