Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 throws a syntax error at Line 1465 #94

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 3 comments
Closed

Python 3 throws a syntax error at Line 1465 #94

GoogleCodeExporter opened this issue Mar 18, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Mar 18, 2015

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
Copy link
Author

GoogleCodeExporter commented Mar 18, 2015

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
Copy link
Author

GoogleCodeExporter commented Mar 18, 2015

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
Copy link
Author

GoogleCodeExporter commented Mar 18, 2015

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

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant