timmerk / ipaddr-py

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

global name 'long' is not defined #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install python 3.1.1 
2. svn checkout http://ipaddr-py.googlecode.com/svn/trunk/ ipaddr-py-read-only
3. python3.1 setup.py install
4. on python3.1.1 cli
>>> from ipaddr import *
>>> IPv4Address('12.2.2.2')

What is the expected output? What do you see instead?
I get:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/python3.1.1/lib/python3.1/site-packages/ipaddr.py", line 1169,
in __init__
    if isinstance(address, (int, long)):

What version of the product are you using? On what operating system?
Svn rev 124/ubuntu 904/x86_64

Please provide any additional information below.
Bug applies to the 2.0.0 snapshot too.

Original issue reported on code.google.com by nepenthe...@gmail.com on 4 Nov 2009 at 10:40

GoogleCodeExporter commented 9 years ago
I've been putting off setting up a fully-py3k version of ipaddr just b/c I've 
been busy 
and haven't installed py3k anywhere.

I'll get this done.

Original comment by pmo...@google.com on 4 Nov 2009 at 4:18

GoogleCodeExporter commented 9 years ago

Original comment by pmo...@google.com on 4 Nov 2009 at 4:18

GoogleCodeExporter commented 9 years ago
Any schedule on this yet?
There are more py3 incompatibilities, and given the PEP notes 3.2 as target, it 
would be nice if at least the basics work on python3.

Original comment by nepenthe...@gmail.com on 15 Sep 2010 at 9:49

GoogleCodeExporter commented 9 years ago
no, no schedule, but yes, it's still planned. I've been busy with other work 
projects and generally a little bit (too) lazy.

If you have an enumerated list of py3k incompatibilities, it would certainly 
make my job of patching easier.

Cheers,
peter

Original comment by pmo...@google.com on 15 Sep 2010 at 8:59

GoogleCodeExporter commented 9 years ago
give this a shot.

http://code.google.com/p/ipaddr-py/downloads/detail?name=ipaddr-2.1.5-py3k.tar.g
z

Original comment by pmo...@google.com on 19 Sep 2010 at 1:50

GoogleCodeExporter commented 9 years ago

Original comment by pmo...@google.com on 20 Jan 2011 at 6:11