Error when installing on Python 3 via pip3

665 views
Skip to first unread message

Rasmus Nielsen

unread,
Apr 23, 2014, 9:38:10 AM4/23/14
to ipaddr...@googlegroups.com
Not sure if this has been reported before, but I get this error when installing via pip3 on OS X 10.9:

sudo pip3 install ipaddr
Downloading/unpacking ipaddr
  Downloading ipaddr-2.1.11.tar.gz
  Running setup.py (path:/private/tmp/pip_build_root/ipaddr/setup.py) egg_info for package ipaddr
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/tmp/pip_build_root/ipaddr/setup.py", line 19, in <module>
        import ipaddr
      File "/private/tmp/pip_build_root/ipaddr/ipaddr.py", line 1450
        ip_int = 0L
                  ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/ipaddr/setup.py", line 19, in <module>

    import ipaddr

  File "/private/tmp/pip_build_root/ipaddr/ipaddr.py", line 1450

    ip_int = 0L

              ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/ipaddr

Stan Hu

unread,
Apr 23, 2014, 9:55:16 AM4/23/14
to Rasmus Nielsen, ipaddr...@googlegroups.com
That issue was reported here:


Would like to see the patch merged, too.


--

---
You received this message because you are subscribed to the Google Groups "ipaddr-py-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipaddr-py-de...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Moody

unread,
Apr 23, 2014, 11:37:54 AM4/23/14
to Rasmus Nielsen, ipaddr...@googlegroups.com

If you're using python3 (>= 3.1 I think, definitely >= 3.2), you should be using the ipaddress module which is part of the stdlib.
Reply all
Reply to author
Forward
0 new messages