{"action":"created","issue":{"url":"https://api.github.com/repos/amoffat/sh/issues/263","labels_url":"https://api.github.com/repos/amoffat/sh/issues/263/labels{/name}","comments_url":"https://api.github.com/repos/amoffat/sh/issues/263/comments","events_url":"https://api.github.com/repos/amoffat/sh/issues/263/events","html_url":"https://github.com/amoffat/sh/issues/263","id":88542735,"number":263,"title":"Bug on OS X 10.8.4?","user":{"login":"nox1203","id":12901756,"avatar_url":"https://avatars.githubusercontent.com/u/12901756?v=3","gravatar_id":"","url":"https://api.github.com/users/nox1203","html_url":"https://github.com/nox1203","followers_url":"https://api.github.com/users/nox1203/followers","following_url":"https://api.github.com/users/nox1203/following{/other_user}","gists_url":"https://api.github.com/users/nox1203/gists{/gist_id}","starred_url":"https://api.github.com/users/nox1203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nox1203/subscriptions","organizations_url":"https://api.github.com/users/nox1203/orgs","repos_url":"https://api.github.com/users/nox1203/repos","events_url":"https://api.github.com/users/nox1203/events{/privacy}","received_events_url":"https://api.github.com/users/nox1203/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-15T21:13:50Z","updated_at":"2015-06-17T21:55:23Z","closed_at":null,"body":"A little background information:\r\n- I am trying to compile a kivy application for IOS on OS X.\r\n- this is done with a python program that uses the sh package.\r\n- i managed to make a simple test program that fails:\r\n\r\nimport sys\r\nimport os\r\n\r\ncurdir = os.path.dirname(__file__)\r\nsys.path.insert(0, os.path.join(curdir, \"tools\", \"external\"))\r\n\r\nimport sh\r\n\r\ntest = sh.xcrun(\"--sdk\", \"iphoneos\", \"--show-sdk-path\").strip()\r\nprint(test)\r\n\r\nDescription of a problem:\r\n- when i run the program for the first time after machine boot\r\nthe program is waiting with no output.\r\n- i kill the program\r\n- i can now run the program and it outputs the path of sdk every time\r\n\r\nI changed the sh.py program a little so that it writes the debug messages to a file.\r\nDebug files attached. I renamed them to png but are text files.\r\nThe test-fail is first run. I think that streamreader gets the data on kill but i may be wrong.\r\nThe test-ok is second run. This one works.\r\n\r\n![test-fail](https://cloud.githubusercontent.com/assets/12901756/8170767/5759d918-13b3-11e5-8c67-ca5347162e32.png)\r\n![test-ok](https://cloud.githubusercontent.com/assets/12901756/8170771/658f4eb4-13b3-11e5-8054-6ddbeb3e6469.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/amoffat/sh/issues/comments/112962128","html_url":"https://github.com/amoffat/sh/issues/263#issuecomment-112962128","issue_url":"https://api.github.com/repos/amoffat/sh/issues/263","id":112962128,"user":{"login":"amoffat","id":259113,"avatar_url":"https://avatars.githubusercontent.com/u/259113?v=3","gravatar_id":"","url":"https://api.github.com/users/amoffat","html_url":"https://github.com/amoffat","followers_url":"https://api.github.com/users/amoffat/followers","following_url":"https://api.github.com/users/amoffat/following{/other_user}","gists_url":"https://api.github.com/users/amoffat/gists{/gist_id}","starred_url":"https://api.github.com/users/amoffat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amoffat/subscriptions","organizations_url":"https://api.github.com/users/amoffat/orgs","repos_url":"https://api.github.com/users/amoffat/repos","events_url":"https://api.github.com/users/amoffat/events{/privacy}","received_events_url":"https://api.github.com/users/amoffat/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T21:55:23Z","updated_at":"2015-06-17T21:55:23Z","body":"I managed to get on an apple machine.  I can't reproduce the problem.  I added a `--no-cache` option to xcrun to prevent it from running quickly, but It never hangs for me.  I'm using OSX 10.10.3.  I should've asked this sooner, but what version of python are you on?  I tried both 2.7 and 3.4, both using sh 1.11."}}