Package: python-netaddr
Version: 0.7.5-2
Severity: normal
Tags: patch

Pickling works fine. Unpickling throws the exception:

/usr/lib/python2.6/dist-packages/netaddr/ip/sets.pyc in __setstate__(self, 
state)
     91 
     92             if version == 4:
---> 93                 module = _ipv4
     94             elif version == 6:
     95                 module = _ipv6

NameError: global name '_ipv4' is not defined
> /usr/lib/python2.6/dist-packages/netaddr/ip/sets.py(93)__setstate__()
     92             if version == 4:
---> 93                 module = _ipv4
     94             elif version == 6:


This bug has been reported upstream to the developer but I haven't seen the fix
commited yet. Please see
https://github.com/drkjam/netaddr/issues/7

Patch
++++++++++++++
--- sets.py     2011-04-20 12:12:15.656643150 +0400
+++ /usr/lib/python2.6/dist-packages/netaddr/ip/sets.py 2011-04-20 
12:12:07.000000000 +0400
@@ -8,6 +8,7 @@
 import sys as _sys
 import itertools as _itertools

+from netaddr.strategy import ipv4 as _ipv4, ipv6 as _ipv6
 from netaddr.ip.intset import IntSet as _IntSet

 from netaddr.ip import IPNetwork, IPAddress, cidr_merge, cidr_exclude, \
+++++++++++++++


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

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

Versions of packages python-netaddr depends on:
ii  python                        2.6.6-14   interactive high-level object-orie
ii  python2.6                     2.6.6-10   An interactive high-level object-o

python-netaddr recommends no packages.

Versions of packages python-netaddr suggests:
ii  ipython                       0.10.2-1   enhanced interactive Python shell

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to