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