[PYTHON] Work memo when introducing mitmproxy

I was interested in the articles around here, so I installed it.

Introduction to mitmproxy for mobile app developers Use mitmproxy to force the API of the app to the development environment

I got some errors before the introduction, so I will keep a work record though it is appropriate. Someone who doesn't know python is working, so please let me know if you do something strange.

environment

software version
OS Max OSX 10.9.5
python 2.7.5
pip 1.5.6
mitmproxy 0.11.1

Rough work

[1] Download and install pip https://pip.pypa.io/en/latest/installing.html

[2] Encountered the error DistributionNotFound when running pip http://qiita.com/saicologic/items/90667c36f780cf6e2bb1

――Upgrading pip fixed it ――I intended to put in the latest version, but why?

[3] pip install mitmproxy related to libxml? Get angry without the header http://qiita.com/namakecat/items/5fa0327ae7f33c2ca2f3

--Fixed by installing xcode command line tools and libxml

[4] pip install mitmproxy http://qiita.com/hkurokawa/items/9034274cc1b9e1405c68

[5] The version of pyopenssl is said to be old (0.14 or earlier) and does not work https://github.com/dutzi/tamper/wiki/Troubleshooting

--From the pip list, it says 0.14, but I get the above error --Have you seen the old version? When I renamed the old one as shown below, the error disappeared.

$sudo mv /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/OpenSSL /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_OpenSSL

Recommended Posts

Work memo when introducing mitmproxy
When send_keys doesn't work
When dropbox-sdk-python doesn't work
[Memo] Start marketing work
[Django memo] Failure when installing modal
UWSGI setting memo when operating properly
Star Cluster environment construction work memo
Problems that occurred when introducing rpy2
When matplotlib doesn't work with python2.7