{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/1885","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1885/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1885/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1885/events","html_url":"https://github.com/mne-tools/mne-python/pull/1885","id":63430163,"number":1885,"title":"Bem commands [WIP]","user":{"login":"lorenzo-desantis","id":8113283,"avatar_url":"https://avatars.githubusercontent.com/u/8113283?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo-desantis","html_url":"https://github.com/lorenzo-desantis","followers_url":"https://api.github.com/users/lorenzo-desantis/followers","following_url":"https://api.github.com/users/lorenzo-desantis/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo-desantis/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo-desantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo-desantis/subscriptions","organizations_url":"https://api.github.com/users/lorenzo-desantis/orgs","repos_url":"https://api.github.com/users/lorenzo-desantis/repos","events_url":"https://api.github.com/users/lorenzo-desantis/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo-desantis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":41,"created_at":"2015-03-21T17:18:57Z","updated_at":"2015-06-05T17:11:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/1885","html_url":"https://github.com/mne-tools/mne-python/pull/1885","diff_url":"https://github.com/mne-tools/mne-python/pull/1885.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/1885.patch"},"body":"Converting bash scripts\r\nAdded mne/commands/mne_watershed_bem.py"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/109366642","html_url":"https://github.com/mne-tools/mne-python/pull/1885#issuecomment-109366642","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/1885","id":109366642,"user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T17:11:06Z","updated_at":"2015-06-05T17:11:06Z","body":"I got an error:\r\n```\r\n======================================================================\r\nERROR: Test mne watershed bem\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/nose/case.py\", line 197, in runTest\r\n    self.test(*self.arg)\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/utils.py\", line 616, in dec\r\n    return function(*args, **kwargs)\r\n  File \"/home/larsoner/.local/lib/python2.7/site-packages/numpy/testing/decorators.py\", line 146, in skipper_func\r\n    return f(*args, **kwargs)\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/commands/tests/test_commands.py\", line 205, in test_watershed_bem\r\n    mne_watershed_bem.run()\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/commands/mne_watershed_bem.py\", line 58, in run\r\n    gcaatlas=gcaatlas, preflood=preflood, verbose=verbose)\r\n  File \"<string>\", line 2, in make_watershed_bem\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/utils.py\", line 541, in verbose\r\n    return function(*args, **kwargs)\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/bem.py\", line 426, in make_watershed_bem\r\n    run_subprocess(cmd, env=env, stdout=sys.stdout)\r\n  File \"<string>\", line 2, in run_subprocess\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/utils.py\", line 541, in verbose\r\n    return function(*args, **kwargs)\r\n  File \"/home/larsoner/custombuilds/mne-python/mne/utils.py\", line 783, in run_subprocess\r\n    p = subprocess.Popen(command, *args, **kwargs)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 702, in __init__\r\n    errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 1136, in _get_handles\r\n    c2pwrite = stdout.fileno()\r\nAttributeError: StringIO instance has no attribute 'fileno'\r\n```\r\nSince this error is in `subprocess`, you might need to use something other than `StringIO`, like actually create a temporary file (yuck) or something."}}