{"action":"created","issue":{"url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/157","labels_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/157/comments","events_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/157/events","html_url":"https://github.com/tomerfiliba/plumbum/issues/157","id":47006267,"number":157,"title":"Working on mint 17 but not on ubuntu 12.04","user":{"login":"kgoedert","id":310626,"avatar_url":"https://avatars.githubusercontent.com/u/310626?v=3","gravatar_id":"","url":"https://api.github.com/users/kgoedert","html_url":"https://github.com/kgoedert","followers_url":"https://api.github.com/users/kgoedert/followers","following_url":"https://api.github.com/users/kgoedert/following{/other_user}","gists_url":"https://api.github.com/users/kgoedert/gists{/gist_id}","starred_url":"https://api.github.com/users/kgoedert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgoedert/subscriptions","organizations_url":"https://api.github.com/users/kgoedert/orgs","repos_url":"https://api.github.com/users/kgoedert/repos","events_url":"https://api.github.com/users/kgoedert/events{/privacy}","received_events_url":"https://api.github.com/users/kgoedert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-28T09:46:46Z","updated_at":"2015-01-30T18:12:40Z","closed_at":"2015-01-30T18:12:40Z","body":"Hi,\r\n\r\nI have two boxes, one running linux mint 17 (based on ubuntu 14.04) and another box with ubuntu 12.04. Both have plumbum 1.4.2 installed. In my script I have \r\n\r\nrelease = lsb_release['-a'] | grep['^Description']\r\n\r\nWhen I run release(), in the mint box I get the expected result, no errors. But in the ubuntu 12.04 I get this error:\r\n\r\n```\r\nFile \"/usr/local/lib/python2.7/dist-packages/plumbum/commands/base.py\", line 90, in __call__\r\n    return self.run(args, **kwargs)[1]\r\n  File \"/usr/local/lib/python2.7/dist-packages/plumbum/commands/base.py\", line 213, in run\r\n    return p.run()\r\n  File \"/usr/local/lib/python2.7/dist-packages/plumbum/commands/base.py\", line 176, in runner\r\n    return run_proc(p, retcode, timeout)\r\n  File \"/usr/local/lib/python2.7/dist-packages/plumbum/commands/processes.py\", line 207, in run_proc\r\n    stdout, stderr)\r\nplumbum.commands.processes.ProcessExecutionError: Command line: ['/bin/grep', '^Description']\r\nExit code: 1\r\n```"},"comment":{"url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/comments/72244426","html_url":"https://github.com/tomerfiliba/plumbum/issues/157#issuecomment-72244426","issue_url":"https://api.github.com/repos/tomerfiliba/plumbum/issues/157","id":72244426,"user":{"login":"tomerfiliba","id":53122,"avatar_url":"https://avatars.githubusercontent.com/u/53122?v=3","gravatar_id":"","url":"https://api.github.com/users/tomerfiliba","html_url":"https://github.com/tomerfiliba","followers_url":"https://api.github.com/users/tomerfiliba/followers","following_url":"https://api.github.com/users/tomerfiliba/following{/other_user}","gists_url":"https://api.github.com/users/tomerfiliba/gists{/gist_id}","starred_url":"https://api.github.com/users/tomerfiliba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomerfiliba/subscriptions","organizations_url":"https://api.github.com/users/tomerfiliba/orgs","repos_url":"https://api.github.com/users/tomerfiliba/repos","events_url":"https://api.github.com/users/tomerfiliba/events{/privacy}","received_events_url":"https://api.github.com/users/tomerfiliba/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T18:12:40Z","updated_at":"2015-01-30T18:12:40Z","body":"well, i'm running on 14.04 and everything works as expected:\r\n```\r\n>>> from plumbum.cmd import lsb_release, grep\r\n>>> lsb_release(\"-a\")\r\nu'Distributor ID:\\tUbuntu\\nDescription:\\tUbuntu 14.04.1 LTS\\nRelease:\\t14.04\\nCodename:\\ttrusty\\n'\r\n>>> (lsb_release[\"-a\"] | grep[\"^Description\"])()\r\nu'Description:\\tUbuntu 14.04.1 LTS\\n'\r\n```\r\n\r\nif lsb_release works on its own, you can just run `[l for l in lsb_release(\"-a\").splitlines() if l.startswith(\"Description\")][0]`. can't help you any further.\r\n"}}