AttributeError when attempting to access _sys.maxint
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python-netaddr (Ubuntu) |
Undecided
|
Unassigned | ||
| | Trusty |
High
|
Unassigned | ||
Bug Description
[Impact]
Anyone on Trusty wishing to utilize IPSets for gathering ranges of IPs.
[Test Case]
Code to reproduce:
from netaddr import IPSet
def get_ip_set(cidr):
""" Returns a list of ip's in cidr for use in juju's no-proxy setting
"""
ips = list(IPSet([cidr]))
return ",".join(str(x) for x in ips)
get_ip_
[Regression Potentional]
None
[Other Info]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/share/
ips = list(IPSet([cidr]))
File "/usr/lib/
if size > _sys.maxint:
AttributeError: 'module' object has no attribute 'maxint'
Related branches
| Adam Stokes (adam-stokes) wrote : | #2 |
| Changed in python-netaddr (Ubuntu Trusty): | |
| importance: | Undecided → High |
| milestone: | none → ubuntu-14.04.2 |
| tags: | added: cloud-installer |
| Changed in python-netaddr (Ubuntu): | |
| status: | New → Fix Released |
| Chris J Arges (arges) wrote : | #3 |
Hello Adam, or anyone else affected,
Accepted python-netaddr into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in python-netaddr (Ubuntu Trusty): | |
| status: | New → Fix Committed |
| tags: | added: verification-needed |
| Adam Stokes (adam-stokes) wrote : | #5 |
Tested with python3-netaddr 0.7.10-1ubuntu1.1
code:
In[2]:from netaddr import IPSet
In [3]: ",".join(str(x) for x in list(IPSet(
Out[3]: '10.0.4.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #6 |
This bug was fixed in the package python-netaddr - 0.7.10-1ubuntu1.1
---------------
python-netaddr (0.7.10-1ubuntu1.1) trusty-proposed; urgency=medium
* netaddr/ip/sets.py:
Fixes typo when accessing _sys_maxint (LP: #1421375)
-- Adam Stokes <email address hidden> Thu, 12 Feb 2015 14:03:02 -0600
| Changed in python-netaddr (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Adam Conrad (adconrad) wrote : Update Released | #7 |
The verification of the Stable Release Update for python-netaddr has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.


sponsored for trusty