{"action":"created","issue":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/266","repository_url":"https://api.github.com/repos/xonsh/xonsh","labels_url":"https://api.github.com/repos/xonsh/xonsh/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/xonsh/xonsh/issues/266/comments","events_url":"https://api.github.com/repos/xonsh/xonsh/issues/266/events","html_url":"https://github.com/xonsh/xonsh/issues/266","id":87803843,"number":266,"title":"xonsh startup script fails on some platforms","user":{"login":"otakucode","id":2532847,"avatar_url":"https://avatars.githubusercontent.com/u/2532847?v=3","gravatar_id":"","url":"https://api.github.com/users/otakucode","html_url":"https://github.com/otakucode","followers_url":"https://api.github.com/users/otakucode/followers","following_url":"https://api.github.com/users/otakucode/following{/other_user}","gists_url":"https://api.github.com/users/otakucode/gists{/gist_id}","starred_url":"https://api.github.com/users/otakucode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otakucode/subscriptions","organizations_url":"https://api.github.com/users/otakucode/orgs","repos_url":"https://api.github.com/users/otakucode/repos","events_url":"https://api.github.com/users/otakucode/events{/privacy}","received_events_url":"https://api.github.com/users/otakucode/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xonsh/xonsh/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/xonsh/xonsh/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/xonsh/xonsh/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/xonsh/xonsh/milestones/4","html_url":"https://github.com/xonsh/xonsh/milestones/v0.4.0","labels_url":"https://api.github.com/repos/xonsh/xonsh/milestones/4/labels","id":1779851,"number":4,"title":"v0.4.0","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":139,"closed_issues":223,"state":"closed","created_at":"2016-05-20T22:54:44Z","updated_at":"2016-08-17T19:06:19Z","due_on":"2016-06-30T04:00:00Z","closed_at":"2016-06-25T15:58:55Z"},"comments":12,"created_at":"2015-06-12T17:52:02Z","updated_at":"2016-08-17T19:06:19Z","closed_at":"2016-08-17T19:06:19Z","body":"Hello all, I just found out about xonsh yesterday and have been checking it out.  After installing it (cloned from github, then used pip install . in the cloned directory) my first discovery was that it wasn't put anywhere on my path.  Then I found the 'xonsh' script in the scripts directory.  Upon executing it, I get:\r\n\r\n/usr/bin/env: python -u: No such file or directory\r\n\r\nThe problem is the shebang at the top of the script.  It called /usr/bin/env python -u.  Aside from the fact that 'python' on my system will get you Python 2.7 and Python 3 is called python3 (a common configuration when legacy and current Python are both installed), the real issue is that using parameters like that in a shebang doesn't work on many systems.  After doing some reading, it appears that this would work OK on OSX but fail on most (if not all) Linux systems.  The system processes \"python -u\" as a single string and looks for an executable with that whole name.\r\n\r\nI'm not sure how you'd like this fixed.  Personally I set the PYTHONUNBUFFERED environment variable to 1 before launching the script after changing the shebang to be #!/usr/bin/env python3.  I don't think that's a good general answer, though.  It would fail on systems which have python3 as just 'python' and not guarantee unbuffered access.  Perhaps the disabling of buffering should be handled in code?"},"comment":{"url":"https://api.github.com/repos/xonsh/xonsh/issues/comments/240514526","html_url":"https://github.com/xonsh/xonsh/issues/266#issuecomment-240514526","issue_url":"https://api.github.com/repos/xonsh/xonsh/issues/266","id":240514526,"user":{"login":"gforsyth","id":3596999,"avatar_url":"https://avatars.githubusercontent.com/u/3596999?v=3","gravatar_id":"","url":"https://api.github.com/users/gforsyth","html_url":"https://github.com/gforsyth","followers_url":"https://api.github.com/users/gforsyth/followers","following_url":"https://api.github.com/users/gforsyth/following{/other_user}","gists_url":"https://api.github.com/users/gforsyth/gists{/gist_id}","starred_url":"https://api.github.com/users/gforsyth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gforsyth/subscriptions","organizations_url":"https://api.github.com/users/gforsyth/orgs","repos_url":"https://api.github.com/users/gforsyth/repos","events_url":"https://api.github.com/users/gforsyth/events{/privacy}","received_events_url":"https://api.github.com/users/gforsyth/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T19:06:19Z","updated_at":"2016-08-17T19:06:19Z","body":"I'm closing this issue as it seems to be resolved, but please reopen if that isn't the case."}}
{"actor":{"display_login":"gforsyth"}}