Public bug reported:
Binary package hint: python-dnspython
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
ii python-dnspython 1.8.0-1
DNS toolkit for Python
Using the dnspython module causes the following error:
Traceback (most recent call last):
File "/usr/sbin/dyndns-update.py", line 116, in <module>
update_entry(hostname,ipaddr,ns)
File "/usr/sbin/dyndns-update.py", line 62, in update_entry
response = dns.query.tcp(update, server)
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'
I've found the following solution which solved the problem for me:
http://blog.gmane.org/gmane.comp.python.dnspython.bugs -> bug in update.py -
dnspython 1.8.0
"I changed line 59 in update.py this way:
self.use_tsig(keyring=keyring, keyname=keyname, algorithm=keyalgorithm)"
** Affects: dnspython (Ubuntu)
Importance: Undecided
Status: New
--
python-dnspython: TypeError: unsupported operand type(s) for &: 'str' and 'long'
https://bugs.launchpad.net/bugs/662826
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs