timmerk / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

Python 3 throws a syntax error at Line 1465 #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have Python 3 Installed. 
2. python setup.py install
3. Syntax Error

What is the expected output? What do you see instead?

Expected it to install

What version of the product are you using? On what operating system?

Using the latest release build of ipaddr-py

Windows 7 32 bit. Latest Release Build of Python (Fresh Install)

Please provide any additional information below.

I've created a patch that works around this issue, but I have not run ipaddr 
through it's paces on Python 3 yet to see if it works.

This syntax error happens because in Python 3, all ints are considered longs

Original issue reported on code.google.com by maty...@gmail.com on 9 Mar 2012 at 10:01

Attachments:

GoogleCodeExporter commented 9 years ago
Discovered there was an instance of long() in the file that would likely cause 
a problem on Python3, since there is no long function defined.

Reuploading the possible patch-fix as an attachment.

Original comment by maty...@gmail.com on 12 Mar 2012 at 9:11

Attachments:

GoogleCodeExporter commented 9 years ago
I ran into this same problem today while trying to run Python 3.4. Any word 
whether this patch (or some other variant) will be merged soon?

Original comment by sta...@gmail.com on 21 Mar 2014 at 11:45

GoogleCodeExporter commented 9 years ago
If you're using python3 (> 3.1 I think), you should be using ipaddress which is 
part of the stdlib.

Original comment by pmo...@google.com on 23 Apr 2014 at 3:35