ustwo / mastermind

Man in the middle testing
MIT License
385 stars 66 forks source link

Installing mastermind failed #14

Closed martinstolz closed 8 years ago

martinstolz commented 8 years ago

I am using Mac OSX El Cap with Python 2.7.10 I installed pip with Homebrew pip 8.0.2 from /usr/local/lib/python2.7/site-packages (python 2.7)

When installing mastermind via pip I get following error:

Collecting mastermind from git+https://github.com/ustwo/mastermind.git@v0.7.0#egg=mastermind
  Cloning https://github.com/ustwo/mastermind.git (to v0.7.0) to /private/var/folders/5t/pg2t0h8x11dgy1tjcbvt20dc0000gn/T/pip-build-fG_zfm/mastermind
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/5t/pg2t0h8x11dgy1tjcbvt20dc0000gn/T/pip-build-fG_zfm/mastermind/setup.py", line 10, in <module>
        from mastermind.version import *
      File "mastermind/__init__.py", line 3, in <module>
        from libmproxy.main import mitmdump
    ImportError: No module named libmproxy.main

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/5t/pg2t0h8x11dgy1tjcbvt20dc0000gn/T/pip-build-fG_zfm/mastermind
martinstolz commented 8 years ago

Solution for to install mitmproxy with following command:

STATIC_DEPS=true pip install mitmproxy

Possibly another solution could be to make sure you have Xcode tools installed:

xcode-select --install