{"action":"closed","issue":{"url":"https://api.github.com/repos/pyca/cryptography/issues/2803","repository_url":"https://api.github.com/repos/pyca/cryptography","labels_url":"https://api.github.com/repos/pyca/cryptography/issues/2803/labels{/name}","comments_url":"https://api.github.com/repos/pyca/cryptography/issues/2803/comments","events_url":"https://api.github.com/repos/pyca/cryptography/issues/2803/events","html_url":"https://github.com/pyca/cryptography/issues/2803","id":140065372,"number":2803,"title":"I found this error when i use Mitmproxy on Ubuntu15.04","user":{"login":"gagaxiaolong","id":8436021,"avatar_url":"https://avatars.githubusercontent.com/u/8436021?v=3","gravatar_id":"","url":"https://api.github.com/users/gagaxiaolong","html_url":"https://github.com/gagaxiaolong","followers_url":"https://api.github.com/users/gagaxiaolong/followers","following_url":"https://api.github.com/users/gagaxiaolong/following{/other_user}","gists_url":"https://api.github.com/users/gagaxiaolong/gists{/gist_id}","starred_url":"https://api.github.com/users/gagaxiaolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagaxiaolong/subscriptions","organizations_url":"https://api.github.com/users/gagaxiaolong/orgs","repos_url":"https://api.github.com/users/gagaxiaolong/repos","events_url":"https://api.github.com/users/gagaxiaolong/events{/privacy}","received_events_url":"https://api.github.com/users/gagaxiaolong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-11T02:12:19Z","updated_at":"2016-03-11T02:13:40Z","closed_at":"2016-03-11T02:13:39Z","body":"When I type `sudo pip install mitmproxy`,everything is OK:\r\n\r\n```\r\nwechat@ubuntu:~$ sudo pip install mitmproxy\r\n[sudo] password for wechat:\r\nRequirement already satisfied (use --upgrade to upgrade): mitmproxy in /usr/local/lib/python2.7/dist-packages\r\nRequirement already satisfied (use --upgrade to upgrade): backports.ssl-match-hostname<3.6,>=3.5.0.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): blinker<1.5,>=1.4 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): click<7.0,>=6.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): certifi>=2015.11.20.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): configargparse<0.11,>=0.10 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): construct<2.6,>=2.5.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): cryptography<1.3,>=1.2.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): Flask<0.11,>=0.10.1 in ./.local/lib/python2.7/site-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): h2<3.0,>=2.1.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): hpack<3.0,>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): html2text==2016.1.8 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): hyperframe<4.0,>=3.2.0 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): Pillow<3.2,>=3.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): passlib<1.7,>=1.6.5 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pyasn1<0.2,>=0.1.9 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pyOpenSSL<0.16,>=0.15.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pyparsing<2.2,>=2.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pyperclip<1.6,>=1.5.22 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): requests<2.10,>=2.9.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): six<1.11,>=1.10 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): tornado<4.4,>=4.3 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): urwid<1.4,>=1.3.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): watchdog<0.9,>=0.8.3 in /usr/local/lib/python2.7/dist-packages (from mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): setuptools>=1.0 in /usr/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): singledispatch in /usr/local/lib/python2.7/dist-packages (from tornado<4.4,>=4.3->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): backports-abc>=0.4 in /usr/local/lib/python2.7/dist-packages (from tornado<4.4,>=4.3->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): PyYAML>=3.10 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): argh>=0.24.1 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pathtools>=0.1.1 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy)\r\nRequirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography<1.3,>=1.2.2->mitmproxy)\r\nCleaning up...\r\n``` \r\nBut when I use Mitmproxy, something is wrong:\r\n```\r\nwechat@ubuntu:~$ mitmproxy\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mitmproxy\", line 9, in <module>\r\n    load_entry_point('mitmproxy==0.17', 'console_scripts', 'mitmproxy')()\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 521, in load_entry_point\r\n    return get_distribution(dist).load_entry_point(group, name)\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 2632, in load_entry_point\r\n    return ep.load()\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 2312, in load\r\n    return self.resolve()\r\n  File \"/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py\", line 2318, in resolve\r\n    module = __import__(self.module_name, fromlist=['__name__'], level=0)\r\n  File \"/usr/local/lib/python2.7/dist-packages/mitmproxy/main.py\", line 6, in <module>\r\n    from netlib.version_check import check_pyopenssl_version, check_mitmproxy_version\r\nImportError: No module named netlib.version_check\r\n```\r\n\r\nThe error is can't find the module named 'netlib.version_check',but in my system,netlib is already installed:\r\n\r\n```\r\nwechat@ubuntu:~$ sudo pip2 install git+https://github.com/mitmproxy/netlib.git@master\r\nDownloading/unpacking git+https://github.com/mitmproxy/netlib.git@master\r\n  Cloning https://github.com/mitmproxy/netlib.git (to master) to /tmp/pip-Dwf0Lo-build\r\n  Running setup.py (path:/tmp/pip-Dwf0Lo-build/setup.py) egg_info for package from git+https://github.com/mitmproxy/netlib.git@master\r\n\r\n  Requirement already satisfied (use --upgrade to upgrade): netlib==0.17 from git+https://github.com/mitmproxy/netlib.git@master in /usr/local/lib/python2.7/dist-packages\r\nRequirement already satisfied (use --upgrade to upgrade): mitmproxy>=0.17 in /usr/local/lib/python2.7/dist-packages (from netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): backports.ssl-match-hostname<3.6,>=3.5.0.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): blinker<1.5,>=1.4 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): click<7.0,>=6.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): certifi>=2015.11.20.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): configargparse<0.11,>=0.10 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): construct<2.6,>=2.5.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): cryptography<1.3,>=1.2.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): Flask<0.11,>=0.10.1 in ./.local/lib/python2.7/site-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): h2<3.0,>=2.1.2 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): hpack<3.0,>=2.1.0 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): html2text==2016.1.8 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): hyperframe<4.0,>=3.2.0 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): Pillow<3.2,>=3.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): passlib<1.7,>=1.6.5 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pyasn1<0.2,>=0.1.9 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pyOpenSSL<0.16,>=0.15.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pyparsing<2.2,>=2.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pyperclip<1.6,>=1.5.22 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): requests<2.10,>=2.9.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): six<1.11,>=1.10 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): tornado<4.4,>=4.3 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): urwid<1.4,>=1.3.1 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): watchdog<0.9,>=0.8.3 in /usr/local/lib/python2.7/dist-packages (from mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): idna>=2.0 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): setuptools>=1.0 in /usr/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): enum34 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): ipaddress in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): cffi>=1.4.1 in /usr/local/lib/python2.7/dist-packages (from cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): Werkzeug>=0.7 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): Jinja2>=2.4 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): itsdangerous>=0.21 in /usr/local/lib/python2.7/dist-packages (from Flask<0.11,>=0.10.1->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): singledispatch in /usr/local/lib/python2.7/dist-packages (from tornado<4.4,>=4.3->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): backports-abc>=0.4 in /usr/local/lib/python2.7/dist-packages (from tornado<4.4,>=4.3->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): PyYAML>=3.10 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): argh>=0.24.1 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pathtools>=0.1.1 in /usr/local/lib/python2.7/dist-packages (from watchdog<0.9,>=0.8.3->mitmproxy>=0.17->netlib==0.17)\r\nRequirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python2.7/dist-packages (from cffi>=1.4.1->cryptography<1.3,>=1.2.2->mitmproxy>=0.17->netlib==0.17)\r\nCleaning up...\r\n```\r\n What can i do to fix this issue? THANKS very much!!"}}