Traceback (most recent call last):


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

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


 "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 489, 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 2793, in load_entry_point

return ep.load()


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

return self.resolve()


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

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


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

from pip._vendor.urllib3.exceptions import DependencyWarning


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

from .connectionpool import (


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

from .connection import (


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

from .util.ssl_ import (


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

from .ssl_ import (


 "/usr/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py", line 8, in <module>

from hashlib import md5, sha1, sha256
ImportError: cannot import name md5

Traceback (most recent call last):


 "/root/.local/bin/mitmdump", line 11, in <module>

load_entry_point('mitmproxy==2.0.2', 'console_scripts', 'mitmdump')()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 572, in load_entry_point

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


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2752, in load_entry_point

return ep.load()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2405, in load

return self.resolve()


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2411, in resolve

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


 "/usr/lib/python3/dist-packages/mitmproxy/tools/main.py", line 12, in <module>

from mitmproxy.tools import cmdline
# noqa


 "/usr/lib/python3/dist-packages/mitmproxy/tools/cmdline.py", line 10, in <module>

from mitmproxy.addons import view


 "/usr/lib/python3/dist-packages/mitmproxy/addons/__init__.py", line 7, in <module>

from mitmproxy.addons import onboarding


 "/usr/lib/python3/dist-packages/mitmproxy/addons/onboarding.py", line 2, in <module>

from mitmproxy.addons.onboardingapp import app


 "/usr/lib/python3/dist-packages/mitmproxy/addons/onboardingapp/app.py", line 8, in <module>

from mitmproxy.proxy import config


 "/usr/lib/python3/dist-packages/mitmproxy/proxy/__init__.py", line 2, in <module>

from .root_context import RootContext


 "/usr/lib/python3/dist-packages/mitmproxy/proxy/root_context.py", line 3, in <module>

from mitmproxy.proxy import protocol


 "/usr/lib/python3/dist-packages/mitmproxy/proxy/protocol/__init__.py", line 39, in <module>

from .tls import TlsClientHello


 "/usr/lib/python3/dist-packages/mitmproxy/proxy/protocol/tls.py", line 7, in <module>

from mitmproxy.contrib import tls_parser


 "/usr/lib/python3/dist-packages/mitmproxy/contrib/tls_parser.py", line 9, in <module>

from construct import (
ImportError: cannot import name 'VarInt'
