Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on Mac OS X 10.7.3 #37

Closed
carlj opened this issue Mar 19, 2012 · 3 comments
Closed

Installing on Mac OS X 10.7.3 #37

carlj opened this issue Mar 19, 2012 · 3 comments

Comments

@carlj
Copy link

carlj commented Mar 19, 2012

Hi,

i downloaded the source and installed mitmproxy with the following command:
sudo python setup.py install

If i try to start mitmproxy with:
./mitmproxy -p 8899

I get the following errors:

Traceback (most recent call last):
File "./mitmproxy", line 19, in
from libmproxy import proxy, console, cmdline
File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/proxy.py", line 24, in
import utils, flow, certutils
File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/certutils.py", line 2, in
from pyasn1.type import univ, constraint, char, namedtype, tag
ImportError: No module named pyasn1.type

How can i fix the errors?

@cortesi
Copy link
Member

cortesi commented Mar 19, 2012

Hi Carl,

On 20/03/2012, at 11:22 AM, Carl Jahn wrote:

i downloaded the source and installed mitmproxy with the following command:
sudo python setup.py install

If i try to start mitmproxy with:
./mitmproxy -p 8899

I get the following errors:

Traceback (most recent call last):
File "./mitmproxy", line 19, in
from libmproxy import proxy, console, cmdline
File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/proxy.py", line 24, in
import utils, flow, certutils
File "/Users/carl.jahn/Downloads/cortesi-mitmproxy-bc3ba4c/libmproxy/certutils.py", line 2, in
from pyasn1.type import univ, constraint, char, namedtype, tag
ImportError: No module named pyasn1.type

The current development version of mitmproxy has two new dependencies - pyasn1 and PyOpenSSL. You will have to install those first if you want to run the github master. If you have pip installed on your system, this should be as simple as going "pip install pyasn1" and "pip install pyopenssl". If not, it's probably easiest to download them from the original sites.

The most recent release does not require these two dependencies, so just downloading 0.7 from mitmproxy.org is also an option.

Cheers,

Aldo

Aldo Cortesi
blog: http://corte.si
twitter: @cortesi
work: www.nullcube.com
+64 210 718 900

@cortesi cortesi closed this as completed Mar 19, 2012
@cortesi
Copy link
Member

cortesi commented Mar 19, 2012

Hey Carl,

Did you sort this out? This comment seems to have disappeared from the bug report.

Aldo

On 20/03/2012, at 11:38 AM, Carl Jahn wrote:

Hi Cortesi,

i downloaded the 0.7 Version from mitmproxy.org and installed with:

sudo python setup.py instal

if i start mitmproxy with:

./mitmproxy -p 8899

I get the following errors if a client connects:

Traceback (most recent call last):
File "./mitmproxy", line 61, in
m.run()
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/console/init.py", line 509, in run
self.ui.run_wrapper(self.loop)
File "/Users/test/Downloads/mitmproxy-0.7/urwid/raw_display.py", line 237, in run_wrapper
return fn()
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/console/init.py", line 707, in loop
changed = self.tick(self.masterq)
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/flow.py", line 1298, in tick
return controller.Master.tick(self, q)
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/controller.py", line 77, in tick
self.handle(msg)
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/controller.py", line 97, in handle
m(msg)
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/flow.py", line 1376, in handle_clientconnect
self.add_event("Connect from: %s:%s"%cc.address)
File "/Users/test/Downloads/mitmproxy-0.7/libmproxy/console/init.py", line 893, in add_event
self.eventlist.set_focus(len(self.eventlist))
File "/Users/test/Downloads/mitmproxy-0.7/urwid/listbox.py", line 177, in set_focus
raise IndexError, "No widget at position %s" % (position,)
IndexError: No widget at position 1


Reply to this email directly or view it on GitHub:
https://github.com/cortesi/mitmproxy/issues/37#issuecomment-4585370

Aldo Cortesi
blog: http://corte.si
twitter: @cortesi
work: www.nullcube.com
+64 210 718 900

@carlj
Copy link
Author

carlj commented Mar 20, 2012

Hi,

yes i solved the problem. thanks for your help.
maybe you should a installation guide/section at the description.

mhils added a commit to mhils/mitmproxy that referenced this issue Feb 15, 2016
[requires.io] dependency update on master branch
mhils pushed a commit that referenced this issue Feb 15, 2016
More accurate host, port parsing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants