{"action":"created","issue":{"url":"https://api.github.com/repos/Yelp/mrjob/issues/802","labels_url":"https://api.github.com/repos/Yelp/mrjob/issues/802/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/mrjob/issues/802/comments","events_url":"https://api.github.com/repos/Yelp/mrjob/issues/802/events","html_url":"https://github.com/Yelp/mrjob/issues/802","id":21842254,"number":802,"title":"Fails to setup working dir for mapreducer which is extended by another one","user":{"login":"jbasko","id":632910,"avatar_url":"https://avatars.githubusercontent.com/u/632910?v=3","gravatar_id":"","url":"https://api.github.com/users/jbasko","html_url":"https://github.com/jbasko","followers_url":"https://api.github.com/users/jbasko/followers","following_url":"https://api.github.com/users/jbasko/following{/other_user}","gists_url":"https://api.github.com/users/jbasko/gists{/gist_id}","starred_url":"https://api.github.com/users/jbasko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbasko/subscriptions","organizations_url":"https://api.github.com/users/jbasko/orgs","repos_url":"https://api.github.com/users/jbasko/repos","events_url":"https://api.github.com/users/jbasko/events{/privacy}","received_events_url":"https://api.github.com/users/jbasko/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-10-30T17:17:24Z","updated_at":"2015-03-11T01:03:35Z","closed_at":"2015-03-11T01:03:35Z","body":"I used to have one mapreducer X (which lives in x.py) which was working fine.\r\nNow I added another mapreducer SomethingX which extends X and lives in something_x.py where there is \"import x\".\r\nThis breaks mapreducer X in mapper_final stage with the following error.\r\nCould it be that mrjob doesn't do a great job in generating temporary names?\r\n\r\n```\r\n2013-10-30 17:09:07,956 [INFO] ... mapper_final\r\nTraceback (most recent call last):\r\n  File \"do_run.py\", line 23, in <module>\r\n    class_obj.run()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/job.py\", line 500, in run\r\n    mr_job.execute()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/job.py\", line 518, in execute\r\n    super(MRJob, self).execute()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/launch.py\", line 146, in execute\r\n    self.run_job()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/launch.py\", line 207, in run_job\r\n    runner.run()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/runner.py\", line 458, in run\r\n    self._run()\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/sim.py\", line 182, in _run\r\n    self._invoke_step(step_num, 'mapper')\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/sim.py\", line 248, in _invoke_step\r\n    self._setup_working_dir(working_dir)\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/sim.py\", line 147, in _setup_working_dir\r\n    self._symlink_to_file_or_copy(path, dest)\r\n  File \".../venv/lib/python2.7/site-packages/mrjob-0.4.1-py2.7.egg/mrjob/sim.py\", line 130, in _symlink_to_file_or_copy\r\n    os.symlink(path, dest)\r\nOSError: [Errno 17] File exists\r\n```"},"comment":{"url":"https://api.github.com/repos/Yelp/mrjob/issues/comments/78181613","html_url":"https://github.com/Yelp/mrjob/issues/802#issuecomment-78181613","issue_url":"https://api.github.com/repos/Yelp/mrjob/issues/802","id":78181613,"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":"2015-03-11T01:03:35Z","updated_at":"2015-03-11T01:03:35Z","body":"Okay, closing this as a non-issue."}}