Code Monkey home page Code Monkey logo

Comments (3)

cortesi avatar cortesi commented on May 9, 2024

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

from mitmproxy.

cortesi avatar cortesi commented on May 9, 2024

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

from mitmproxy.

carlj avatar carlj commented on May 9, 2024

Hi,

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

from mitmproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.