{"action":"created","issue":{"url":"https://api.github.com/repos/torch/trepl/issues/31","labels_url":"https://api.github.com/repos/torch/trepl/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/torch/trepl/issues/31/comments","events_url":"https://api.github.com/repos/torch/trepl/issues/31/events","html_url":"https://github.com/torch/trepl/pull/31","id":108353795,"number":31,"title":"skip readline when HOME is not present in environment","user":{"login":"zhengwy888","id":1190730,"avatar_url":"https://avatars.githubusercontent.com/u/1190730?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengwy888","html_url":"https://github.com/zhengwy888","followers_url":"https://api.github.com/users/zhengwy888/followers","following_url":"https://api.github.com/users/zhengwy888/following{/other_user}","gists_url":"https://api.github.com/users/zhengwy888/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengwy888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengwy888/subscriptions","organizations_url":"https://api.github.com/users/zhengwy888/orgs","repos_url":"https://api.github.com/users/zhengwy888/repos","events_url":"https://api.github.com/users/zhengwy888/events{/privacy}","received_events_url":"https://api.github.com/users/zhengwy888/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T16:00:55Z","updated_at":"2015-09-25T16:01:51Z","closed_at":"2015-09-25T16:01:41Z","pull_request":{"url":"https://api.github.com/repos/torch/trepl/pulls/31","html_url":"https://github.com/torch/trepl/pull/31","diff_url":"https://github.com/torch/trepl/pull/31.diff","patch_url":"https://github.com/torch/trepl/pull/31.patch"},"body":"this is the error when I was running th under a shell that doesn't have HOME set. (specifically supervisord)\r\n```\r\nluajit: init.lua:519: attempt to concatenate a nil value\r\nstack traceback:\r\n        init.lua:519: in main chunk\r\n        [C]: at 0x004050b0\r\n```\r\nIt's ok to call luajit directly, but some Torch code expects Penlight library (like 'path'). So it might helps just skip the readline loading and still preserves the same lua environment."},"comment":{"url":"https://api.github.com/repos/torch/trepl/issues/comments/143261570","html_url":"https://github.com/torch/trepl/pull/31#issuecomment-143261570","issue_url":"https://api.github.com/repos/torch/trepl/issues/31","id":143261570,"user":{"login":"soumith","id":1310570,"avatar_url":"https://avatars.githubusercontent.com/u/1310570?v=3","gravatar_id":"","url":"https://api.github.com/users/soumith","html_url":"https://github.com/soumith","followers_url":"https://api.github.com/users/soumith/followers","following_url":"https://api.github.com/users/soumith/following{/other_user}","gists_url":"https://api.github.com/users/soumith/gists{/gist_id}","starred_url":"https://api.github.com/users/soumith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumith/subscriptions","organizations_url":"https://api.github.com/users/soumith/orgs","repos_url":"https://api.github.com/users/soumith/repos","events_url":"https://api.github.com/users/soumith/events{/privacy}","received_events_url":"https://api.github.com/users/soumith/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T16:01:51Z","updated_at":"2015-09-25T16:01:51Z","body":"first time I've seen no HOME present :)"}}