Traceback (most recent call last):


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


 "/Users/di/.pyenv/versions/2.7.12/lib/python2.7/xmlrpclib.py", line 1243, in __call__

return self.__send(self.__name, args)


 "/Users/di/.pyenv/versions/2.7.12/lib/python2.7/xmlrpclib.py", line 1602, in __request

verbose=self.__verbose


 "/Users/di/.pyenv/versions/2.7.12/lib/python2.7/xmlrpclib.py", line 1283, in request

return self.single_request(host, handler, request_body, verbose)


 "/Users/di/.pyenv/versions/2.7.12/lib/python2.7/xmlrpclib.py", line 1331, in single_request

response.msg,
xmlrpclib.ProtocolError: <ProtocolError for pypi.org/RPC2: 301 Moved Permanently>

Traceback (most recent call last):

 "main.py", line 1, in <module>
import hug

 "/usr/local/lib/python2.7/dist-packages/hug/__init__.py", line 32, in <module>
from hug import (authentication, directives, documentation, exceptions, format,

 "/usr/local/lib/python2.7/dist-packages/hug/test.py", line 26, in <module>
from unittest import mockImportError: cannot import name mock