Public bug reported: Ubuntu 14.04 (beta2) currently ships with python3-netaddr 0.7.10:
$ lsb_release -rd Description: Ubuntu 14.04 LTS Release: 14.04 $ apt-cache policy python3-netaddr python3-netaddr: Installed: 0.7.10-1build1 Candidate: 0.7.10-1build1 Version table: *** 0.7.10-1build1 0 500 http://de.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages 100 /var/lib/dpkg/status This release is over 18 months old. In the current release there are a lot of bugfixes. During my development I got some nasty errors which are fixed in the current relese 0.7.11. See [1]. Especially the bug about the len() in IPSet makes the library not really useful in python3. $ python3 Python 3.4.0 (default, Apr 11 2014, 13:05:11) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from netaddr import IPSet >>> len(IPSet(["192.168.0.0/24"])) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/netaddr/ip/sets.py", line 518, in __len__ if size > _sys.maxint: AttributeError: 'module' object has no attribute 'maxint' >>> This is because in python3 sys.maxint not exists and is replaced by sys.maxsize It seems this version was not completely ported to python3. This bug[2] (and others) are fixed in the current stable version 0.7.11 I would suggest to give this library a version bumb to 0.7.11. If I can support you somehow, let it me know. [1] http://pythonhosted.org//netaddr/changes.html [2] https://github.com/drkjam/netaddr/issues/46 ** Affects: python-netaddr (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to python-netaddr in Ubuntu. https://bugs.launchpad.net/bugs/1307733 Title: python3-netaddr 0.7.10 with poor python3 support To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-netaddr/+bug/1307733/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs