{"action":"created","issue":{"url":"https://api.github.com/repos/conda/conda/issues/1364","labels_url":"https://api.github.com/repos/conda/conda/issues/1364/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/1364/comments","events_url":"https://api.github.com/repos/conda/conda/issues/1364/events","html_url":"https://github.com/conda/conda/issues/1364","id":86350136,"number":1364,"title":"conda command not found after running conda update package","user":{"login":"mpesavento","id":154588,"avatar_url":"https://avatars.githubusercontent.com/u/154588?v=3","gravatar_id":"","url":"https://api.github.com/users/mpesavento","html_url":"https://github.com/mpesavento","followers_url":"https://api.github.com/users/mpesavento/followers","following_url":"https://api.github.com/users/mpesavento/following{/other_user}","gists_url":"https://api.github.com/users/mpesavento/gists{/gist_id}","starred_url":"https://api.github.com/users/mpesavento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpesavento/subscriptions","organizations_url":"https://api.github.com/users/mpesavento/orgs","repos_url":"https://api.github.com/users/mpesavento/repos","events_url":"https://api.github.com/users/mpesavento/events{/privacy}","received_events_url":"https://api.github.com/users/mpesavento/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-08T22:09:19Z","updated_at":"2015-08-07T16:38:23Z","closed_at":null,"body":"Using conda 3.10.1-py34_0 on OS10.10.3, I wanted to update one of our in-house packages, and so created the package appropriately, and ran:\r\n$ conda update my-package\r\n\r\nIn this update, it found the new version of conda (3.13.0-py34_0), downloaded that and continued the update. The update failed in the package linking step, citing an \"unexpected error\". Further explorations after the crash revealed that the command 'conda' was no longer in anaconda/bin/\r\nIt does not seem like a good thing that rebuilding a package and updating conda in the process deletes the binary that actually does the updating and doesnt replace it.\r\n\r\nMy traceback is below.\r\n\r\n---------------------------------------------------------------------\r\nFetching package metadata: ......\r\nSolving package specifications: .\r\nPackage plan for installation in environment /Users/mpesavento/anaconda:\r\n\r\nThe following packages will be downloaded:\r\n\r\n    package                    |            build\r\n    ---------------------------|-----------------\r\n    zeromq-4.0.5               |                0         451 KB\r\n    boto-2.38.0                |           py34_0         1.4 MB\r\n    conda-env-2.2.0            |           py34_0          21 KB\r\n    pyzmq-14.6.0               |           py34_0         293 KB\r\n    requests-2.7.0             |           py34_0         623 KB\r\n    3scan-shared-0.4.1         |           py34_6         171 KB\r\n    conda-3.13.0               |           py34_0         172 KB\r\n    ------------------------------------------------------------\r\n                                           Total:         3.1 MB\r\n\r\nThe following packages will be UPDATED:\r\n\r\n    3scan-shared: 0.4.0-py34_20 --> 0.4.1-py34_6 \r\n    boto:         2.37.0-py34_0 --> 2.38.0-py34_0\r\n    conda:        3.10.1-py34_0 --> 3.13.0-py34_0\r\n    conda-env:    2.1.4-py34_0  --> 2.2.0-py34_0 \r\n    pip:          6.1.1-py34_0  --> 7.0.3-py34_0 \r\n    pyzmq:        14.5.0-py34_0 --> 14.6.0-py34_0\r\n    requests:     2.6.0-py34_0  --> 2.7.0-py34_0 \r\n    setuptools:   15.0-py34_0   --> 17.0-py34_0  \r\n    zeromq:       4.0.4-0       --> 4.0.5-0      \r\n\r\nProceed ([y]/n)? \r\n\r\nFetching packages ...\r\nzeromq-4.0.5-0 100% |##################################################################################################| Time: 0:00:00 527.84 kB/s\r\nboto-2.38.0-py 100% |##################################################################################################| Time: 0:00:00   1.69 MB/s\r\nconda-env-2.2. 100% |##################################################################################################| Time: 0:00:00 252.09 kB/s\r\npyzmq-14.6.0-p 100% |##################################################################################################| Time: 0:00:00 388.10 kB/s\r\nrequests-2.7.0 100% |##################################################################################################| Time: 0:00:00   1.01 MB/s\r\n3scan-shared-0 100% |##################################################################################################| Time: 0:00:00   1.21 MB/s\r\nconda-3.13.0-p 100% |##################################################################################################| Time: 0:00:00 323.26 kB/s\r\nExtracting packages ...\r\n[      COMPLETE      ]|#####################################################################################################################| 100%\r\nUnlinking packages ...\r\n[      COMPLETE      ]|#####################################################################################################################| 100%\r\nLinking packages ...\r\nAn unexpected error has occurred, please consider sending the########################################                                       |  66%\r\nfollowing traceback to the conda GitHub issue tracker at:\r\n\r\n    https://github.com/conda/conda/issues\r\n\r\nInclude the output of the command 'conda info' in your report.\r\n\r\n\r\nTraceback (most recent call last):\r\n  File \"/Users/mpesavento/anaconda/bin/conda\", line 5, in <module>\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/cli/main.py\", line 202, in main\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/cli/main.py\", line 207, in args_func\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/cli/main_update.py\", line 40, in execute\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/cli/install.py\", line 420, in install\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/plan.py\", line 502, in execute_actions\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/instructions.py\", line 141, in execute_instructions\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/instructions.py\", line 84, in LINK_CMD\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/instructions.py\", line 80, in link\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/site-packages/conda/install.py\", line 523, in link\r\n  File \"/Users/mpesavento/anaconda/lib/python3.4/os.py\", line 237, in makedirs\r\n    mkdir(name, mode)\r\nNotADirectoryError: [Errno 20] Not a directory: '/Users/mpesavento/anaconda/lib/python3.4/site-packages/KESMShared-0.4.1-py3.4.egg/EGG-INFO'"},"comment":{"url":"https://api.github.com/repos/conda/conda/issues/comments/128758932","html_url":"https://github.com/conda/conda/issues/1364#issuecomment-128758932","issue_url":"https://api.github.com/repos/conda/conda/issues/1364","id":128758932,"user":{"login":"meawoppl","id":579782,"avatar_url":"https://avatars.githubusercontent.com/u/579782?v=3","gravatar_id":"","url":"https://api.github.com/users/meawoppl","html_url":"https://github.com/meawoppl","followers_url":"https://api.github.com/users/meawoppl/followers","following_url":"https://api.github.com/users/meawoppl/following{/other_user}","gists_url":"https://api.github.com/users/meawoppl/gists{/gist_id}","starred_url":"https://api.github.com/users/meawoppl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meawoppl/subscriptions","organizations_url":"https://api.github.com/users/meawoppl/orgs","repos_url":"https://api.github.com/users/meawoppl/repos","events_url":"https://api.github.com/users/meawoppl/events{/privacy}","received_events_url":"https://api.github.com/users/meawoppl/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T16:38:22Z","updated_at":"2015-08-07T16:38:22Z","body":"I did a little more reading, and this is highly related to this issue: https://github.com/conda/conda/issues/337  Especially comments from @pzwang and @teoliphant in that thread.\r\n\r\nconda and conda-build are not even on that deps graph for that update, but still upgraded.  \r\n\r\n"}}