{"action":"created","issue":{"url":"https://api.github.com/repos/Yelp/mrjob/issues/1308","repository_url":"https://api.github.com/repos/Yelp/mrjob","labels_url":"https://api.github.com/repos/Yelp/mrjob/issues/1308/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/mrjob/issues/1308/comments","events_url":"https://api.github.com/repos/Yelp/mrjob/issues/1308/events","html_url":"https://github.com/Yelp/mrjob/issues/1308","id":152878031,"number":1308,"title":"tilde in include path not working in 0.5.1","user":{"login":"j4y","id":36337,"avatar_url":"https://avatars.githubusercontent.com/u/36337?v=3","gravatar_id":"","url":"https://api.github.com/users/j4y","html_url":"https://github.com/j4y","followers_url":"https://api.github.com/users/j4y/followers","following_url":"https://api.github.com/users/j4y/following{/other_user}","gists_url":"https://api.github.com/users/j4y/gists{/gist_id}","starred_url":"https://api.github.com/users/j4y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j4y/subscriptions","organizations_url":"https://api.github.com/users/j4y/orgs","repos_url":"https://api.github.com/users/j4y/repos","events_url":"https://api.github.com/users/j4y/events{/privacy}","received_events_url":"https://api.github.com/users/j4y/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Yelp/mrjob/labels/Bug","name":"Bug","color":"d95757"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Yelp/mrjob/milestones/25","html_url":"https://github.com/Yelp/mrjob/milestones/v0.5.2","labels_url":"https://api.github.com/repos/Yelp/mrjob/milestones/25/labels","id":1739236,"number":25,"title":"v0.5.2","description":"","creator":{"login":"davidmarin","id":50076,"avatar_url":"https://avatars.githubusercontent.com/u/50076?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmarin","html_url":"https://github.com/davidmarin","followers_url":"https://api.github.com/users/davidmarin/followers","following_url":"https://api.github.com/users/davidmarin/following{/other_user}","gists_url":"https://api.github.com/users/davidmarin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmarin/subscriptions","organizations_url":"https://api.github.com/users/davidmarin/orgs","repos_url":"https://api.github.com/users/davidmarin/repos","events_url":"https://api.github.com/users/davidmarin/events{/privacy}","received_events_url":"https://api.github.com/users/davidmarin/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":1,"state":"open","created_at":"2016-04-29T19:57:33Z","updated_at":"2016-05-09T21:02:13Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-05-03T21:24:48Z","updated_at":"2016-05-09T21:14:41Z","closed_at":null,"body":"We have a nested `-include` in the mrjob.conf, which uses the tilde to load '~/.mrjob.conf'.  That is the mrjob.conf file includes another include file 'foo.conf', which includes '~/.mrjob.conf':\r\n\r\n```\r\ninclude:\r\n- ~/.mrjob.conf\r\n```\r\n\r\nThis works in version 0.4.5, but does not work in 0.4.6 to 0.5.1\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mrjob\", line 11, in <module>\r\n    sys.exit(main())\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/cmd.py\", line 68, in main\r\n    commands[args[1]](args[2:])\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/cmd.py\", line 93, in _create_jf\r\n    main(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/tools/emr/create_job_flow.py\", line 25, in main\r\n    real_main(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/tools/emr/create_cluster.py\", line 206, in main\r\n    runner = EMRJobRunner(**_runner_kwargs(args))\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/emr.py\", line 573, in __init__\r\n    super(EMRJobRunner, self).__init__(**kwargs)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/runner.py\", line 341, in __init__\r\n    self._opts = self.OPTION_STORE_CLASS(self.alias, opts, conf_paths)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/emr.py\", line 382, in __init__\r\n    super(EMRRunnerOptionStore, self).__init__(alias, opts, conf_paths)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/runner.py\", line 172, in __init__\r\n    alias, conf_paths=conf_paths)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/conf.py\", line 429, in load_opts_from_mrjob_confs\r\n    runner_alias, path, already_loaded=already_loaded) + results\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/conf.py\", line 393, in load_opts_from_mrjob_conf\r\n    runner_alias, include, already_loaded) + inherited\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/conf.py\", line 393, in load_opts_from_mrjob_conf\r\n    runner_alias, include, already_loaded) + inherited\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/conf.py\", line 358, in load_opts_from_mrjob_conf\r\n    conf = _conf_object_at_path(conf_path)\r\n  File \"/usr/local/lib/python2.7/site-packages/mrjob/conf.py\", line 315, in _conf_object_at_path\r\n    with open(conf_path) as f:\r\nIOError: [Errno 2] No such file or directory: '/Users/jprall/Code/hadoop-jobs/~/.mrjob.conf'\r\n```"},"comment":{"url":"https://api.github.com/repos/Yelp/mrjob/issues/comments/217992030","html_url":"https://github.com/Yelp/mrjob/issues/1308#issuecomment-217992030","issue_url":"https://api.github.com/repos/Yelp/mrjob/issues/1308","id":217992030,"user":{"login":"davidmarin","id":50076,"avatar_url":"https://avatars.githubusercontent.com/u/50076?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmarin","html_url":"https://github.com/davidmarin","followers_url":"https://api.github.com/users/davidmarin/followers","following_url":"https://api.github.com/users/davidmarin/following{/other_user}","gists_url":"https://api.github.com/users/davidmarin/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmarin/subscriptions","organizations_url":"https://api.github.com/users/davidmarin/orgs","repos_url":"https://api.github.com/users/davidmarin/repos","events_url":"https://api.github.com/users/davidmarin/events{/privacy}","received_events_url":"https://api.github.com/users/davidmarin/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T21:14:41Z","updated_at":"2016-05-09T21:14:41Z","body":"The issue is that we're joining it to the directory of the including file before expanding (resolving `~` etc.) the path. Subtle!"}}