# Setup help needed

**URL:** <https://discourse.mitmproxy.org/t/setup-help-needed/181>\
**Category:** help\
**Created:** [September 27, 2016, 4:43pm UTC](https://discourse.mitmproxy.org/t/setup-help-needed/181 "2016-09-27T16:43:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dozens](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@dozens](https://discourse.mitmproxy.org/u/dozens)\
**Post date:** [September 27, 2016, 4:43pm UTC](https://discourse.mitmproxy.org/t/setup-help-needed/181/1 "2016-09-27T16:43:38Z")

</div>

Hello.

I am trying to get mitmproxy setup on Ubuntu 16.04.

My py.test hangs in test\_server.py and has a “F” instead of a “.” for test\_proxy.py (see below). The tox test also fails for py35 despite having python3 installed.

How do I go about debugging what is wrong with my setup?

# py.test

================================================================================================== test session starts ==================================================================================================  
platform linux2 – Python 2.7.12, pytest-3.0.2, py-1.4.31, pluggy-0.3.1  
rootdir: /root/GH/mitmproxy, inifile: setup.cfg  
plugins: xdist-1.15.0, cov-2.3.1, faulthandler-1.3.0, timeout-1.0.0  
collected 1014 items

test/mitmproxy/test\_addons.py .  
test/mitmproxy/test\_app.py …  
test/mitmproxy/test\_cmdline.py …  
test/mitmproxy/test\_contentview.py …  
test/mitmproxy/test\_contrib\_tnetstring.py …  
test/mitmproxy/test\_controller.py …  
test/mitmproxy/test\_custom\_contentview.py .  
test/mitmproxy/test\_dump.py …  
test/mitmproxy/test\_examples.py …  
test/mitmproxy/test\_filt.py …  
test/mitmproxy/test\_flow.py …  
test/mitmproxy/test\_flow\_export.py …  
test/mitmproxy/test\_flow\_format\_compat.py …  
test/mitmproxy/test\_fuzzing.py …  
test/mitmproxy/test\_optmanager.py …  
test/mitmproxy/test\_platform\_pf.py .  
test/mitmproxy/test\_proxy.py …F…  
test/mitmproxy/test\_proxy\_config.py …  
test/mitmproxy/test\_server.py .

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [September 29, 2016, 1:59am UTC](https://discourse.mitmproxy.org/t/setup-help-needed/181/2 "2016-09-29T01:59:04Z")

</div>

That’s weird - our Linux tests are on Ubuntu/Debian, and that works just fine. Do you see a stack trace after the tests have finished? Can you pass `--no-capture -v` to py.test to find out which specific test fails?

---

<div class="post-metadata">

**Author:** ![dozens](https://avatars.discourse-cdn.com/v4/letter/d/cc9497/32.png) [@dozens](https://discourse.mitmproxy.org/u/dozens)\
**Post date:** [September 29, 2016, 3:20pm UTC](https://discourse.mitmproxy.org/t/setup-help-needed/181/3 "2016-09-29T15:20:44Z")

</div>

> [@mhils](#):
>
> –no-capture -v

–no-capture was rejected as an argument but -v produced the output below and it is stuck on the last test.

test/mitmproxy/test\_proxy.py::TestProcessProxyOptions::test\_upstream\_trusted\_ca PASSED  
test/mitmproxy/test\_proxy.py::TestProxyServer::test\_err FAILED  
test/mitmproxy/test\_proxy.py::TestProxyServer::test\_err\_2 PASSED  
test/mitmproxy/test\_proxy.py::TestDummyServer::test\_simple PASSED  
test/mitmproxy/test\_proxy.py::TestConnectionHandler::test\_fatal\_error PASSED  
test/mitmproxy/test\_proxy\_config.py::test\_parse\_server\_spec PASSED  
test/mitmproxy/test\_proxy\_config.py::test\_parse\_upstream\_auth PASSED  
test/mitmproxy/test\_server.py::TestHTTP::test\_large PASSED  
test/mitmproxy/test\_server.py::TestHTTP::test\_replay
