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

Crash when the PAGER is less -R #79

Closed
alexdong opened this issue Dec 17, 2012 · 1 comment · Fixed by #81
Closed

Crash when the PAGER is less -R #79

alexdong opened this issue Dec 17, 2012 · 1 comment · Fixed by #81

Comments

@alexdong
Copy link

> echo $PAGER
less -R

Then if I use < or > to navigate, I will get the following exception.

› mitmproxy -nr game_subway-bmx

Traceback (most recent call last):
  File "/usr/local/bin/mitmproxy", line 67, in <module>
    m.run()
  File "/Library/Python/2.7/site-packages/libmproxy/console/__init__.py", line 583, in run
    self.ui.run_wrapper(self.loop)
  File "/Library/Python/2.7/site-packages/urwid/raw_display.py", line 242, in run_wrapper
    return fn()
  File "/Library/Python/2.7/site-packages/libmproxy/console/__init__.py", line 812, in loop
    k = self.view.keypress(size, k)
  File "/Library/Python/2.7/site-packages/urwid/container.py", line 1103, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/Library/Python/2.7/site-packages/libmproxy/console/flowview.py", line 546, in keypress
    self.master.spawn_external_viewer(conn.content, t)
  File "/Library/Python/2.7/site-packages/libmproxy/console/__init__.py", line 546, in spawn_external_viewer
    subprocess.call(cmd, shell=shell)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 493, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1228, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
@kanzure
Copy link
Contributor

kanzure commented Dec 22, 2012

I bet this is because it's trying to call "less -R" instead of "less".

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

Successfully merging a pull request may close this issue.

3 participants