First install dnspython (https://github.com/rthalley/dnspython) using the following pip: $ sudo pip install dnspython