{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/1428","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/1428/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/1428/events","html_url":"https://github.com/xonsh/xonsh/issues/1428","id":165385425,"number":1428,"title":"OSError on strating xonsh from captured subprocess operator","user":{"login":"laerus","id":6930157,"avatar_url":"https://avatars.githubusercontent.com/u/6930157?v=3","gravatar_id":"","url":"https://api.github.com/users/laerus","html_url":"https://github.com/laerus","followers_url":"https://api.github.com/users/laerus/followers","following_url":"https://api.github.com/users/laerus/following{/other_user}","gists_url":"https://api.github.com/users/laerus/gists{/gist_id}","starred_url":"https://api.github.com/users/laerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laerus/subscriptions","organizations_url":"https://api.github.com/users/laerus/orgs","repos_url":"https://api.github.com/users/laerus/repos","events_url":"https://api.github.com/users/laerus/events{/privacy}","received_events_url":"https://api.github.com/users/laerus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xonsh/xonsh/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/xonsh/xonsh/milestones/5","html_url":"https://github.com/xonsh/xonsh/milestones/v0.5","labels_url":"https://api.github.com/repos/xonsh/xonsh/milestones/5/labels","id":1848323,"number":5,"title":"v0.5","description":"","creator":{"login":"scopatz","id":320553,"avatar_url":"https://avatars.githubusercontent.com/u/320553?v=3","gravatar_id":"","url":"https://api.github.com/users/scopatz","html_url":"https://github.com/scopatz","followers_url":"https://api.github.com/users/scopatz/followers","following_url":"https://api.github.com/users/scopatz/following{/other_user}","gists_url":"https://api.github.com/users/scopatz/gists{/gist_id}","starred_url":"https://api.github.com/users/scopatz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scopatz/subscriptions","organizations_url":"https://api.github.com/users/scopatz/orgs","repos_url":"https://api.github.com/users/scopatz/repos","events_url":"https://api.github.com/users/scopatz/events{/privacy}","received_events_url":"https://api.github.com/users/scopatz/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":46,"state":"open","created_at":"2016-06-25T15:59:08Z","updated_at":"2016-07-14T16:02:13Z","due_on":"2016-08-03T04:00:00Z","closed_at":null},"comments":4,"created_at":"2016-07-13T18:09:50Z","updated_at":"2016-07-14T17:26:43Z","closed_at":null,"body":"```\r\n$ $(python3 -m xonsh)\r\nTraceback (most recent call last):\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/interface.py\", line 387, in run\r\n    self._redraw()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/interface.py\", line 346, in _redraw\r\n    self.renderer.render(self, self.layout, is_done=self.is_done)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/renderer.py\", line 398, in render\r\n    size = output.get_size()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_output.py\", line 359, in get_size\r\n    rows, columns = _get_size(stdout.fileno())\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_output.py\", line 317, in _get_size\r\n    fcntl.ioctl(fileno, termios.TIOCGWINSZ, buf, True)\r\nOSError: [Errno 25] Inappropriate ioctl for device\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/runpy.py\", line 170, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/usr/lib/python3.4/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/xonsh/__main__.py\", line 2, in <module>\r\n    main()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/xonsh/__amalgam__.py\", line 16767, in main\r\n    shell.shell.cmdloop()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/xonsh/ptk/shell.py\", line 115, in cmdloop\r\n    line = self.singleline(auto_suggest=auto_suggest)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/xonsh/ptk/shell.py\", line 84, in singleline\r\n    line = self.prompter.prompt(**prompt_args)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/xonsh/ptk/shortcuts.py\", line 109, in prompt\r\n    document = cli.run(reset_current_buffer=False)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/interface.py\", line 399, in run\r\n    self._redraw()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/interface.py\", line 346, in _redraw\r\n    self.renderer.render(self, self.layout, is_done=self.is_done)\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/renderer.py\", line 398, in render\r\n    size = output.get_size()\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_output.py\", line 359, in get_size\r\n    rows, columns = _get_size(stdout.fileno())\r\n  File \"/home/laerus/.local/lib/python3.4/site-packages/prompt_toolkit/terminal/vt100_output.py\", line 317, in _get_size\r\n    fcntl.ioctl(fileno, termios.TIOCGWINSZ, buf, True)\r\nOSError: [Errno 25] Inappropriate ioctl for device\r\n'\\x1b]2;laerus@_ai1337_: ~ | xonsh\\x07\\x1b[6n'\r\n```"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/232733973","html_url":"https://github.com/xonsh/xonsh/issues/1428#issuecomment-232733973","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/1428","id":232733973,"user":{"login":"laerus","id":6930157,"avatar_url":"https://avatars.githubusercontent.com/u/6930157?v=3","gravatar_id":"","url":"https://api.github.com/users/laerus","html_url":"https://github.com/laerus","followers_url":"https://api.github.com/users/laerus/followers","following_url":"https://api.github.com/users/laerus/following{/other_user}","gists_url":"https://api.github.com/users/laerus/gists{/gist_id}","starred_url":"https://api.github.com/users/laerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laerus/subscriptions","organizations_url":"https://api.github.com/users/laerus/orgs","repos_url":"https://api.github.com/users/laerus/repos","events_url":"https://api.github.com/users/laerus/events{/privacy}","received_events_url":"https://api.github.com/users/laerus/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T17:26:43Z","updated_at":"2016-07-14T17:26:43Z","body":"Hey @jonathanslenders, this came up when trying to solve another issue and it was used when experimenting with the enviroment swap feature like this:\r\n\r\n```\r\nwith ${...}.swap(XONSH_DEBUG=1):\r\n    $(python3 -m xonsh)\r\n```"}}
{"actor":{"display_login":"laerus"}}