title: building and running mitmproxy in python windows: possible at all?
body: <p>I was attempting to install mitmproxy and run the "mitmproxy" and "mitmdump" from the Scripts folder.</p>
  
  <p>However, I get tons of errors that a lot of modules are not found.</p>
  
  <p>From the error messages I tried to install all the missing modules</p>
  
  <ul>
  <li>Pry</li>
  <li>PyOpenSSL</li>
  <li>Pyasn</li>
  <li>urwid</li>
  </ul>
  
  <p>I stopped after that as I am not sure this will lead me to success. </p>
  
  <p>a) is running and building mitmproxy on windows possible at all? <br />
  b) how can I get all the dependant modules and install them?</p>
  
  <p>I reached the point where the package "urwid" is needed. However that fails with: "Unable to find vcvarsall.bat" </p>
  
  <p>EDIT: it seems running mitmproxy is not really possible as the urwid package provides the terminal GUI which does not work for windows. However, I only need mitmdump. When I try running it I get:</p>
  
  <pre><code>C:\Python27\Scripts&gt;C:\Python27\python.exe mitmdump -w out.txt
  Traceback (most recent call last): File "mitmdump", line 41, in &lt;module&gt;
  proxyconfig = proxy.process_proxy_options(parser, options)
  File "C:\Python27\lib\site-packages\libmproxy\proxy.py", line 527, in process_
  proxy_options certutils.dummy_ca(cacert)
  File "C:\Python27\lib\site-packages\libmproxy\certutils.py", line 44, in dummy_castdin=subprocess.PIPE
  File "C:\Python27\lib\subprocess.py", line 493, in call
  return Popen(*popenargs, **kwargs).wait()
  File "C:\Python27\lib\subprocess.py", line 679, in __init__errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 893, in _execute_childstartupinfo)
  WindowsError: [Error 2] System can not find file
  C:\Python27\Scripts&gt;
  </code></pre>
  
  <p>Maybe it can not find <a href="http://mitmproxy.org/doc/ssl.html" rel="nofollow">this certificate dummy file</a> that is created. However, it didnt create the "mitmproxy-ca-cert.p12"</p>
  
  <p>Help needed</p>