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