Traceback (most recent call last):


 "/usr/local/bin/pip", line 11, in <module>

load_entry_point('pip==10.0.1', 'console_scripts', 'pip')()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point

return get_distribution(dist).load_entry_point(group, name)


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point

return ep.load()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2318, in load

return self.resolve()


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2324, in resolve

module = __import__(self.module_name, fromlist=['__name__'], level=0)


 "/usr/local/lib/python2.7/site-packages/pip/_internal/__init__.py", line 42, in <module>

from pip._internal import cmdoptions


 "/usr/local/lib/python2.7/site-packages/pip/_internal/cmdoptions.py", line 16, in <module>

from pip._internal.index import (


 "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 15, in <module>

from pip._vendor import html5lib, requests, six


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/__init__.py", line 86, in <module>

from pip._vendor.urllib3.contrib import pyopenssl


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/contrib/pyopenssl.py", line 46, in <module>

import OpenSSL.SSL


 "/usr/local/lib/python2.7/site-packages/pyOpenSSL-18.0.0-py2.7.egg/OpenSSL/__init__.py", line 8, in <module>

from OpenSSL import crypto, SSL


 "/usr/local/lib/python2.7/site-packages/pyOpenSSL-18.0.0-py2.7.egg/OpenSSL/crypto.py", line 16, in <module>

from OpenSSL._util import (


 "/usr/local/lib/python2.7/site-packages/pyOpenSSL-18.0.0-py2.7.egg/OpenSSL/_util.py", line 18, in <module>

no_zero_allocator = ffi.new_allocator(should_clear_after_alloc=False)
AttributeError: 'CompiledFFI' object has no attribute 'new_allocator'`

Traceback (most recent call last):


 "<console>", line 1, in <module>


 "/Library/Python/2.7/site-packages/scapy/sendrecv.py", line 336, in sr

s = conf.L3socket(filter=filter, iface=iface, nofilter=nofilter)


 "/Library/Python/2.7/site-packages/scapy/supersocket.py", line 69, in __init__

self.ins = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(type))
AttributeError: 'module' object has no attribute 'AF_PACKET'
