アプリ開発にあたり、mitmproxyを利用したいと考えています。
この状態からどうすれば起動できるようになるでしょうか。
環境は以下の様になっています。
OS MAC el capitan 10.11.6 pyenv -v pyenv 20150601-6-g22ecefd python --version Python 2.7.10 pip --version pip 8.1.2 from /Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages (python 2.7) cd /Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages ls ConfigArgParse-0.10.0-py2.7.egg-info Cryptodome Flask-0.10.1-py2.7.egg-info Flask_Cors-2.1.2-py2.7.egg-info Jinja2-2.8.dist-info MarkupSafe-0.23-py2.7.egg-info OpenSSL PIL Pillow-3.2.0-py2.7.egg-info PyDispatcher-2.0.5-py2.7.egg-info PyYAML-3.11-py2.7.egg-info README Scrapy-1.1.1.dist-info Twisted-16.3.0-py2.7.egg-info Werkzeug-0.11.10.dist-info _cffi_backend.so _dummy_thread _markerlib _markupbase _thread _watchdog_fsevents.so argh argh-0.26.2.dist-info argparse-1.2.1-py2.7.egg-info argparse.py argparse.pyc attr attrs-16.0.0.dist-info backports backports.ssl_match_hostname-3.5.0.1-py2.7.egg-info backports_abc-0.4.dist-info backports_abc.py backports_abc.pyc blinker blinker-1.4-py2.7.egg-info builtins certifi certifi-2016.2.28.dist-info cffi cffi-1.7.0-py2.7.egg-info click click-6.6-py2.7.egg-info configargparse.py configargparse.pyc configparser construct construct-2.5.2.dist-info copyreg cryptography-1.4-py2.7-macosx-10.11-x86_64.egg cssselect cssselect-0.9.2.dist-info easy-install.pth easy_install.py easy_install.pyc enum enum34-1.1.6.dist-info flask flask_cors future future-0.15.2-py2.7.egg-info geopy geopy-1.11.0.dist-info google gpsoauth gpsoauth-0.3.0-py2.7.egg-info h2 h2-2.4.0.dist-info hpack hpack-2.2.0.dist-info html html2text html2text-2016.4.2-py2.7.egg-info http hyperframe hyperframe-3.2.0.dist-info idna idna-2.1.dist-info ipaddress-1.0.16.dist-info ipaddress.py ipaddress.pyc itsdangerous-0.24-py2.7.egg-info itsdangerous.py itsdangerous.pyc jinja2 libfuturize libpasteurize lxml lxml-3.6.1-py2.7.egg-info markupsafe mitmproxy mitmproxy-0.17.dist-info netlib parsel parsel-1.0.3.dist-info passlib passlib-1.6.5.dist-info past pathod pathtools pathtools-0.1.2-py2.7.egg-info peewee-2.8.1-py2.7.egg-info peewee.py peewee.pyc pip pip-8.1.2.dist-info pkg_resources playhouse protobuf-2.6.1-py2.7-nspkg.pth protobuf-2.6.1-py2.7.egg-info protobuf_to_dict-0.1.0-py2.7.egg-info protobuf_to_dict.py protobuf_to_dict.pyc pwiz.py pwiz.pyc pyOpenSSL-16.0.0-py2.7.egg pyOpenSSL-16.0.0.dist-info pyasn1 pyasn1-0.1.9.dist-info pyasn1_modules pyasn1_modules-0.0.8.dist-info pycparser pycparser-2.14-py2.7.egg-info pycryptodomex-3.4.2-py2.7.egg-info pydispatch pyparsing-2.1.5.dist-info pyparsing.py pyparsing.pyc pyperclip pyperclip-1.5.27-py2.7.egg-info queue queuelib queuelib-1.4.2.dist-info reprlib requests requests-2.9.2.dist-info s2sphere s2sphere-0.2.4.dist-info scrapy service_identity service_identity-16.0.0.dist-info setuptools setuptools-15.2.dist-info singledispatch-3.4.0.3.dist-info singledispatch.py singledispatch.pyc singledispatch_helpers.py singledispatch_helpers.pyc six-1.10.0.dist-info six.py six.pyc socketserver tkinter tornado tornado-4.3-py2.7.egg-info twisted urwid urwid-1.3.1-py2.7.egg-info w3lib w3lib-1.15.0.dist-info watchdog watchdog-0.8.3-py2.7.egg-info werkzeug winreg xmlrpc yaml zope zope.interface-4.2.0-py2.7-nspkg.pth zope.interface-4.2.0.dist-info
mitmproxyを起動しようとしても、このようなエラーが発生してしまいます。
mitmproxy -p 8080 Traceback (most recent call last): File "/Users/shiho/.pyenv/versions/2.7.10/bin/mitmproxy", line 7, in <module> from mitmproxy.main import mitmproxy File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/mitmproxy/main.py", line 6, in <module> from netlib.version_check import check_pyopenssl_version, check_mitmproxy_version File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/netlib/version_check.py", line 12, in <module> import OpenSSL File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module> from OpenSSL import rand, crypto, SSL File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/OpenSSL/rand.py", line 12, in <module> from OpenSSL._util import ( File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/OpenSSL/_util.py", line 6, in <module> from cryptography.hazmat.bindings.openssl.binding import Binding File "/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 15, in <module> from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: dlopen(/Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so, 2): Symbol not found: _BIO_new_CMS Referenced from: /Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so Expected in: flat namespace in /Users/shiho/.pyenv/versions/2.7.10/lib/python2.7/site-packages/cryptography/hazmat/bindings/_openssl.so
あなたの回答
tips
プレビュー