Description of problem: executing this instruction: $ curl -s http://httpbin.org/ip | python -mjson.tool grep origin Version-Release number of selected component: python-libs-2.7.5-14.fc20 Additional info: reporter: libreport-2.2.3 cmdline: python -mjson.tool grep origin executable: /usr/lib64/python2.7/json/tool.py kernel: 3.16.6-203.fc20.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: tool.py:24:main:IOError: [Errno 2] No such file or directory: 'grep' Traceback (most recent call last): File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/lib64/python2.7/json/tool.py", line 40, in <module> main() File "/usr/lib64/python2.7/json/tool.py", line 24, in main infile = open(sys.argv[1], 'rb') IOError: [Errno 2] No such file or directory: 'grep' Local variables in innermost frame:
Created attachment 952495 [details] File: backtrace
Created attachment 952496 [details] File: environ
True that this is a crash in the json module. But don't you actually want to run: curl -s http://httpbin.org/ip | python -mjson.tool | grep origin Note the ^
I see this is the desired behaviour. The user input was wrong.
*** Bug 1167416 has been marked as a duplicate of this bug. ***